Hi I have some difficulties to program 8 bit pic controller for math division like (1-100/132). I did find some examples in assembly codes, but there's not many examples in C.
I am using mplab X with XC8 compiler.
I use ADC value1 divded by ADC value 2, and do the equation 1 - values /value2, and I got 0 for the answer even I have used float.
Can anyone please provide me some advice or examples?
Thank you.
I am using mplab X with XC8 compiler.
I use ADC value1 divded by ADC value 2, and do the equation 1 - values /value2, and I got 0 for the answer even I have used float.
Can anyone please provide me some advice or examples?
Thank you.