What is confusing me is why we have an EXT variable and then this huge formula in assembly. Why?
Preumably because it can't fit into 16 bit integer maths even with DIV32
In assembler on the 12F1822 do we have 32 bit maths?
Code:
Vref_AD5 CON EXT ; Calculate FVref A/D reading when VDD = VDD_Nom
@Vref_AD5 = (_FVrefMV*100000) / (VDD_Nom*1000000/(1023 << (_VDD_Res-10)))
Bookmarks