PIC16F62X
DS40300C-page 60
Preliminary
2003 Microchip Technology Inc.
EXAMPLE 10-1:
VOLTAGE REFERENCE
CONFIGURATION
10.2
Voltage Reference Accuracy/Error
The full range of V
SS to VDD cannot be realized due to
the construction of the module. The transistors on the
top and bottom of the resistor ladder network
REF from approaching VSS or VDD.
The Voltage Reference is VDD derived and therefore,
the VREF output changes with fluctuations in VDD. The
tested absolute accuracy of the Voltage Reference can
be found in Table 17-2.
10.3
Operation During SLEEP
When the device wakes-up from SLEEP through an
interrupt or a Watchdog Timer timeout, the contents of
the VRCON register are not affected. To minimize
current consumption in SLEEP mode, the Voltage
Reference should be disabled.
10.4
Effects of a RESET
A device RESET disables the Voltage Reference by
clearing bit V
REN (VRCON<7>). This RESET also
disconnects the reference from the RA2 pin by clearing
bit V
ROE (VRCON<6>) and selects the high voltage
range by clearing bit V
RR (VRCON<5>). The VREF
value select bits, VRCON<3:0>, are also cleared.
10.5
Connection Considerations
The
Voltage
Reference
module
operates
independently of the Comparator module. The output
of the reference generator may be connected to the
RA2 pin if the TRISA<2> bit is set and the V
ROE bit,
VRCON<6>, is set. Enabling the Voltage Reference
output onto the RA2 pin with an input signal present will
increase current consumption. Connecting RA2 as a
digital output with V
REF enabled will also increase
current consumption.
The RA2 pin can be used as a simple D/A output with
limited drive capability. Due to the limited drive
capability, a buffer must be used in conjunction with the
Voltage Reference output for external connections to
V
REF. Figure 10-2 shows an example buffering
technique.
FIGURE 10-2:
VOLTAGE REFERENCE OUTPUT BUFFER EXAMPLE
TABLE 10-1:
REGISTERS ASSOCIATED WITH VOLTAGE REFERENCE
MOVLW
0x02
; 4 Inputs Muxed
MOVWF
CMCON
; to 2 comps.
BSF
STATUS,RP0
; go to Bank 1
MOVLW
0x07
; RA3-RA0 are
MOVWF
TRISA
; outputs
MOVLW
0xA6
; enable VREF
MOVWF
VRCON
; low range
; set VR<3:0>=6
BCF
STATUS,RP0
; go to Bank 0
CALL
DELAY10
; 10
s delay
Address
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value On
POR
Value On
All Other
RESETS
9Fh
VRCON
VREN
VROE
VRR
—VR3
VR2
VR1
VR0
000- 0000
1Fh
CMCON
C2OUT
C1OUT
C2INV
C1INV
CIS
CM2
CM1
CM0
0000 0000
85h
TRISA
TRISA7 TRISA6 TRISA5
TRISA4
TRISA3
TRISA2
TRISA1
TRISA0
1111 1111
Note 1: — = Unimplemented, read as ‘0’.
Note
1: R is dependent upon the Voltage Reference Configuration VRCON<3:0> and VRCON<5>.
V
REF
Module
R(1)
Voltage
Reference
Output
Impedance
RA2
V
REF Output
+
Op Amp
相关PDF资料
PIC16C58B-20I/P IC MCU OTP 2KX12 18DIP
PIC24FJ16GA002-I/SS IC PIC MCU FLASH 16K 28-SSOP
PIC16C55A-04I/SO IC MCU OTP 512X12 28SOIC
PIC16CR77-I/ML IC PIC MCU 8KX14 44QFN
PIC16CR74T-I/PT IC PIC MCU 4KX14 44TQFP
PIC16F627A-I/ML IC MCU FLASH 1KX14 EEPROM 28QFN
PIC24F08KL401-I/P IC MCU 16BIT 8KB FLASH 20-PDIP
PIC16LF727-I/P IC PIC MCU FLASH 8K 1.8V 40-DIP
相关代理商/技术参数
PIC16F627-04/SO 制造商:Microchip Technology Inc 功能描述:8BIT FLASH MCU SMD 16F627 SOIC18
PIC16F627-04/SO 制造商:Microchip Technology Inc 功能描述:Microcontroller IC Number of I/Os:16
PIC16F627-04/SS 功能描述:8位微控制器 -MCU 1.75KB 224 RAM 16I/O 4MHz SSOP20 RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16F627-04E/P 功能描述:8位微控制器 -MCU 1.75KB 224 RAM 16I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16F627-04E/SO 功能描述:8位微控制器 -MCU 1.75KB 224 RAM 16I/O 4MHz Ext Temp SOIC18 RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16F627-04E/SS 功能描述:8位微控制器 -MCU 1.75KB 224 RAM 16I/O 4MHz Ext Temp SSOP20 RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16F627-04I/P 功能描述:8位微控制器 -MCU 1.75KB 224 RAM 16I/O 4MHz IndTemp PDIP18 RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16F627-04I/P 制造商:Microchip Technology Inc 功能描述:IC 8BIT FLASH MCU 16F627 DIP18