Return uint16 to port variable