Hi all
I have a decimal readout from a device which is giving me
a 16bit value (65535) for 1 resolution (360 deg)
I want to enter serially degrees.xx and convert this to a 16 bit value and also to a 12bit value
Decimal_value_16bit var word '(0-65535)
Decimal_value_12bit var word '(0-4098)
degrees var word '(0-360)
degrees_fraction var byte '(.xx)
serin2 rxd,84,[degrees,wait ".",degrees_fraction]
Any idea how this can be done ? pse I dont want to use "longs"
Bookmarks