[Menu]>[Guide to use the PIC]>[628 Hardware]>[SFR]

SFR explanation for PIC16F628(6)

VRCON ( Voltage Reference Control Register ) 9Fh
    This register controls Voltage Reference function.
The value in the parenthesis is in the condition immediately after the turning on.

VREN : VREF Enable
1:VREF circuit powered on
0:VREF circuit powered down, no IDD drain

VRON : VREF Output Enable
1:VREF is output on RA2 pin
0:VREF is disconnected from RA2 pin

VRR : VREF Range selection
1:Low Range
0:High Range

VR3-0 : VREF value selection 0 =< VR [3:0] >= 15
When VRR = 1 (Low Range)VREF = (VR<3:0>/ 24) * VDD
When VRR = 0 (High Range)VREF = 1/4 * VDD + (VR<3:0>/ 32) * VDD

Resistance and Voltage Relationship in case of VDD = 5V
VR3-0Low RangeHigh Range
00000.001.25
00010.211.41
00100.421.56
00110.631.72
01000.831.88
01011.042.03
01101.252.19
01111.462.34
VR3-0Low RabgeHigh Range
10001.672.50
10011.882.66
10102.082.81
10112.292.97
11002.503.13
11012.713.28
11102.923.44
11113.133.59