Dummy = 500*1000 ' Produce intermediate result of 500000
Result = DIV32 133
lcdout $FE,2, "Duty:", dec Result
... still getting 65535 as output
Thats all I have in the program, no interrupt nothing else !
then I initialized my parameters this way:
a var word
b var word
a= 500
b = 1000
Dummy VAR word
Result VAR WORD
Divider con 145
Dummy = a * b ' Produce intermediate result of 500000
Result = DIV32 133
and its now working.. Dummy doesnt like numbers![]()




Bookmarks