PIC16F1829 analog 0 don`t works
Posted: Wed May 06, 2020 9:33 am
Hello,
I soldered a trimmer to analog 0, read out the value and send it out over rs232.
The voltage on the trimmer is 0 Volts. Setting the U-reference to VDD and VCC, the trimmer voltage is changing by turning.
I thought, that setting up the reference in the trimmer component is OK, but it don`t works. The rs232 sends out only 0x01. The trimmer
at the pic can`t change the value anywhere. 2 other tested analog channels are running well.
Is there a bug in the component?
In simulation it works fine.
Best regards
Jörg
Solution for me: I switch over the adc component to analog 1 for plan b. It works! Then I switch back to analog 0 and it works, too.
Is there a toggle bit error in the component? All other analog channels works advanced.
I soldered a trimmer to analog 0, read out the value and send it out over rs232.
The voltage on the trimmer is 0 Volts. Setting the U-reference to VDD and VCC, the trimmer voltage is changing by turning.
I thought, that setting up the reference in the trimmer component is OK, but it don`t works. The rs232 sends out only 0x01. The trimmer
at the pic can`t change the value anywhere. 2 other tested analog channels are running well.
Is there a bug in the component?
In simulation it works fine.
Best regards
Jörg
Solution for me: I switch over the adc component to analog 1 for plan b. It works! Then I switch back to analog 0 and it works, too.
Is there a toggle bit error in the component? All other analog channels works advanced.