Hi guys I'm having trouble to get this code works. I want to multiply and divide and I use the following code: valor1=ADC0; valor1=valor1*2; valor1=valor1*12; valor1=valor1/5; valor1=valor1/4095; with valor1 as float but the variable valor1 never is the right number. what is wrong?? can be another way to do this multiplication: valor1*2*2.42/4095 Thanks
The curious thing is when i put breakpoints the value is correct in valor1 variable but when I jump this set of operations I got a wrong number. print both ADC result and result after calculation. I have a string feeling that is IS noise. Erik