I noticed that when using the stimulus window to set AN0 to 234(mV) the figure read was in fact 47 not 234 as expected.
This is odd because I had set it up to use the FVR at 1.024V so the reading should have been 234. The figure of 47 looks like it's using 5V as the reference.
So, to cut a long story short, I found that the simulator was not setting bit 6 of FVRCON with the movwf command and even when I "went-to-town" and used bsf to set the bit as well, it just left this bit at zero though it set the others as instructed.
Can the simulator only use a 5V reference or should another register be setup differently somewhere?
Thank you.
(I'm using the 16F1827 and MPASM)