Div32 is not used with longs as all division is 32 bit using longs
Div32 is not used with longs as all division is 32 bit using longs
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
DT's Interrupts have nothing to do with this problem.
It seems that whenever a div32 is used with longs, I get the error.
To simplify things, I am using Bruce's temperature conversion routine, reading a DS18B20, and it uses a DIV32 statement.
This all works fine, except when I want to use LONGS for another variable elsewhere in the program, then I get the error.
If I comment out the DIV32, there is not a compile error, but of course the temperature is screwed up.
I can display the LONG variable just fine in either case.
Yes, I do have the LONG box selected.
I guess I just will not attempt to use a LONG variable with a program that uses DIV32.
Ken
Found the problem - - RTFM - -
Bottom of page 40 of the PBP manual
Ken
Bookmarks