dsPIC30F6014A - ADC reading problem
Posted: Tue Nov 22, 2022 10:51 am
Hi all,
I got a problem with the analog pins of dsPIC30F6014A controller. I think it reads the voltage at the ADC pins wrong. I am using Flowcode 9.3 and reading the ADC pins with component macro's GetVoltage.
I checked the voltage directly at the ADC pin of controller with a multimeter and its correct. I used a decision block that lights up a LED if the read voltage is not in the wanted interval, but it lights up the LED even read voltage is in the interval. I do not know if there is an offset on the controller's ADC pins.
It happened with different PCBs with same design and circuits with different designs using same controller. It happened with all cases.
Also there is an interesting situation here, when I used Flowcode 7, it reads the ADC pin closer to the real value.
Thanks.
I got a problem with the analog pins of dsPIC30F6014A controller. I think it reads the voltage at the ADC pins wrong. I am using Flowcode 9.3 and reading the ADC pins with component macro's GetVoltage.
I checked the voltage directly at the ADC pin of controller with a multimeter and its correct. I used a decision block that lights up a LED if the read voltage is not in the wanted interval, but it lights up the LED even read voltage is in the interval. I do not know if there is an offset on the controller's ADC pins.
It happened with different PCBs with same design and circuits with different designs using same controller. It happened with all cases.
Also there is an interesting situation here, when I used Flowcode 7, it reads the ADC pin closer to the real value.
Thanks.