pic 16f887 adc vref+ cannot be accessed
Novice in need of help.
I am using mplabx 5.25 with the simulator. PIC 16F887 was chosen for the job. I have set up 8 adc inputs each to be read in turn. I have attempted to use a 4v external reference to pin 3. All inputs are successfully read with the response transferred appropriately . A little arithmetic shows that 5v rail is the unwanted reference. Changing the supply volts confirms this. No matter my code to adcon 1 I am unable to use the external reference. I have varied the value of the reference to other values between 1 and 4.8v without effect. What is my omission??