STM8S001J3 setup for AIN2
This is driving me crazy. First time with this processor. I have AFR2 and NAFR2 set properly for AIN2 operation. I can verify that in the watch window and the disassembly window looks like it is working as expected. If I change the channel to AIN7 I can read the 1.2V internal reference correctly. However, the only thing I read on pin 7 (PC4) is 850 to 900 counts. At 2.5V or 0V on that pin it reads the same. I guess I am not reading the pin correctly, maybe there is something different I have to do to get PC4 on that pin or elsewhere in the setup. Using Cosmic compiler. What is the proper way to get PC4 on pin 7? I assumed when AFR2 was set that did it, but maybe not. Any help is appreciated.
