i am using pic16f1825 and wants to generate vref 4.096V as output on pin 13. The settings of registers by me are:
i got output something 1.37V. can anybody tell me why does i got the 1/3rd output of the actual voltage?OSCCON = 0x7a;
ANSELA = 0x11;
FVRCON = 0x8c ;
delay_ms(1);
FVRCON.FVRRDY = 1;
DACCON0 = 0X68;
DACCON1 = 0B11111;
How does i set up the controller to get the vref as 4.096V.
Please help me out.