Hi,
IntPartOfPos1 = 16bitPosition1 ** 360
FracPartOfPos1 = 16bitPosition1 * 360
FracPartOfPos1 = FracPartOfPos1 ** 1000
LCDOUT DEC3 IntPartOfPos1, ".", DEC3 FracPartOfPos1
The code above starts with two multiplications by 360, one of them isn't really necessary. However i'm a bit unsure of wich internal register contains what after a multiplication. I think the code below will work, but i'm not 100% sure it's the right register. Try it and see.
FracPartOfPos1 = 16bitPosition1 * 360
IntPartOfPos1 = R0
FracPartOfPos1 = FracPartOfPos1 ** 1000
LCDOUT DEC3 IntPartOfPos1, ".", DEC3 FracPartOfPos1
/Ingvar
Bookmarks