Section 19. Voltage Reference



Similar documents
Section bit A/D Converter

Section bit A/D Converter

Section 28. In-Circuit Serial Programming (ICSP )

Section 9. I/O Ports

Section 14. Compare/Capture/PWM (CCP)

Section 27. Device Configuration Bits

Analog-to-Digital Converters

Using The PIC I/O Ports

Section 29. Instruction Set

Section 8. Interrupts

Section 7. Oscillator

SPI. Overview and Use of the PICmicro Serial Peripheral Interface. Getting Started: SPI

Tire pressure monitoring

PIC16F84A. 18-pin Enhanced Flash/EEPROM 8-Bit Microcontroller. Devices Included in this Data Sheet: Pin Diagrams. High Performance RISC CPU Features:

PIC16F526 Data Sheet. 14-Pin, 8-Bit Flash Microcontroller Microchip Technology Inc. Preliminary DS41326A

Getting Started with PIC24F/PIC24H Programming and Interfacing in C

How To Use A Watt Saver On A Microcontroller (Watt Saver) On A Cell Phone Or Mp3 Player

PIC12F629/675 Data Sheet

PIC16F84A Data Sheet. 18-pin Enhanced FLASH/EEPROM 8-bit Microcontroller Microchip Technology Inc. DS35007B

How To Program A Microcontroller With Memory On A Microchip Microcontroller

ETEC Digital Controls PIC Lab 10 Pulse Width Modulation

AN1416. Low-Power Design Guide INTRODUCTION LOW-POWER BASICS. Main Sources of Power Consumption DYNAMIC POWER

Hello and welcome to this training module for the STM32L4 Liquid Crystal Display (LCD) controller. This controller can be used in a wide range of

Design and Construction of Microcontroller Based Charge Controller for Photovoltaic Application

PIC16F62X. FLASH-Based 8-Bit CMOS Microcontrollers. Devices included in this data sheet: Special Microcontroller Features: High Performance RISC CPU:

Digital To Analog Converter with Sine Wave Output

AN736. An I 2 C TM Network Protocol for Environmental Monitoring THE I 2 C BUS SPECIFICATION INTRODUCTION

Hello, welcome to this presentation of the low power timer, or LPTMR, module for Kinetis MCUs. In this session you ll learn about the LPTMR, it s

M68EVB908QL4 Development Board for Motorola MC68HC908QL4

WS2811. Signal line 256 Gray level 3 channal Constant current LED drive IC. Feature. Applications. General description

Conversion Between Analog and Digital Signals

AN111: Using 8-Bit MCUs in 5 Volt Systems

Supply voltage Supervisor TL77xx Series. Author: Eilhard Haseloff

In-Circuit Serial Programming (ICSP ) Guide

PIC16F627A/628A/648A Data Sheet

PC BASED PID TEMPERATURE CONTROLLER

PIC16F627A/628A/648A Data Sheet

Digital to Analog Converter. Raghu Tumati

HANDLING SUSPEND MODE ON A USB MOUSE

TPM Product Type 107-D162-NNT 48-channel digital input and 16-channel digital output module with pluggable terminal

MCP3426/7/8. 16-Bit, Multi-Channel ΔΣ Analog-to-Digital Converter with I 2 C Interface and On-Board Reference. Features.

Analog to Digital Conversion of Sound with the MSP430F2013

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

EMERGING DISPLAY CUSTOMER ACCEPTANCE SPECIFICATIONS 16400(LED TYPES) EXAMINED BY : FILE NO. CAS ISSUE : JAN.19,2000 TOTAL PAGE : 7 APPROVED BY:

AVR1321: Using the Atmel AVR XMEGA 32-bit Real Time Counter and Battery Backup System. 8-bit Microcontrollers. Application Note.

Chapter 6: From Digital-to-Analog and Back Again

EMERGING DISPLAY CUSTOMER ACCEPTANCE SPECIFICATIONS (LED TYPES) EXAMINED BY : FILE NO. CAS ISSUE : DEC.01,1999 TOTAL PAGE : 7 APPROVED BY:

PCAN-MicroMod Universal I/O Module with CAN Interface. User Manual. Document version ( )

Fondamenti su strumenti di sviluppo per microcontrollori PIC

An Introduction to MPLAB Integrated Development Environment

The FT6x06 series ICs include FT6206 /FT6306, the difference of their specifications will be listed individually in this datasheet.

Simple Alarm System WIRELESS AND REMOTE CONTROLLED PERSONAL APPLIANCE CODE WORD ORGANIZATION TRANSMISSION FORMAT

PIC12F508/509/16F505 Data Sheet

DIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION

User s Manual HOW TO USE DDR SDRAM

Series AMLDL-Z Up to 1000mA LED Driver

EMERGING DISPLAY CUSTOMER ACCEPTANCE SPECIFICATIONS 16290(LED TYPES) EXAMINED BY : FILE NO. CAS ISSUE : JUL.03,2001 TOTAL PAGE : 7

TRIPLE PLL FIELD PROG. SPREAD SPECTRUM CLOCK SYNTHESIZER. Features

PACKAGE OUTLINE DALLAS DS2434 DS2434 GND. PR 35 PACKAGE See Mech. Drawings Section

Using Xbee in Serial Communication

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs

Programmable Single-/Dual-/Triple- Tone Gong SAE 800

PHYSICS 111 LABORATORY Experiment #3 Current, Voltage and Resistance in Series and Parallel Circuits

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

Microcomputers. Analog-to-Digital and Digital-to-Analog Conversion

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

Section 29. Real-Time Clock and Calendar (RTCC)

PIC10F200/202/204/206 Data Sheet

Capacitive Touch Sensor Project:

Allows the user to protect against inadvertent write operations. Device select and address bytes are Acknowledged Data Bytes are not Acknowledged

Switch board datasheet EB

HD44780-Based LCD Modules. Introduction to the LM018L

FEATURES DESCRIPTION. PT6321 Fluorescent Display Tube Controller Driver

I 2 C Master Mode Overview and Use of the PICmicro MSSP I 2 C Interface with a 24xx01x EEPROM

MAS.836 HOW TO BIAS AN OP-AMP

Accurate Measurement of the Mains Electricity Frequency

SPREAD SPECTRUM CLOCK GENERATOR. Features

Microprocessor Supervisory Circuits

HT1632C 32 8 &24 16 LED Driver

OLED into Mobile Main Display

Hello, and welcome to this presentation of the STM32L4 reset and clock controller.

Wireless Security Camera

Voltage Measurement with A PIC Microcontroller

5V Tolerance Techniques for CoolRunner-II Devices

Use and Application of Output Limiting Amplifiers (HFA1115, HFA1130, HFA1135)

Small Signal Analysis of a PMOS transistor Consider the following PMOS transistor to be in saturation. Then, 1 2

HT9170 DTMF Receiver. Features. General Description. Selection Table

Spread-Spectrum Crystal Multiplier DS1080L. Features

Micro-Step Driving for Stepper Motors: A Case Study

LC898300XA. Functions Automatic adjustment to the individual resonance frequency Automatic brake function Initial drive frequency adjustment function

1 TO 4 CLOCK BUFFER ICS551. Description. Features. Block Diagram DATASHEET

HDMM01 V1.0. Dual-axis Magnetic Sensor Module With I 2 C Interface FEATURES. Signal Path X

UTC UNISONIC TECHNOLOGIES CO., LTD. 1 DIGITAL ALARM CLOCK

Current Digital to Analog Converter

Chapter 12. Data Converters. à Read Section 19 of the Data Sheet for PIC18F46K20. Updated: 4/19/15

LED board datasheet EB

Environmental Monitoring with Sensors: Hands-on Exercise

HP03 BAROMETER MODULE Version: 1.1

10-Bit Digital Temperature Sensor (AD7416) and Four/Single-Channel ADC (AD7417/AD7418) AD7416/AD7417/AD7418

Features. Modulation Frequency (khz) VDD. PLL Clock Synthesizer with Spread Spectrum Circuitry GND

Transcription:

M Section 19. Voltage Reference HIGHLIGHTS This section of the manual contains the following major topics: 19.1 Introduction...19-2 19.2 Control Register...19-3 19.3 Configuring the Voltage Reference...19-4 19.4 Voltage Reference Accuracy/Error...19-5 19.5 Operation During Sleep...19-5 19.6 Effects of a Reset...19-5 19.7 Connection Considerations...19-6 19.8 Initialization...19-7 19.9 Design Tips...19-8 19.10 Related Application Notes...19-9 19.11 Revision History...19-10 19 Voltage Reference 1997 Microchip Technology Inc. DS31019A page 19-1

PICmicro MID-RANGE MCU FAMILY 19.1 Introduction The Voltage Reference module is typically used in conjunction with the Comparator module. The comparator module s inputs do not require very large drive, and therefore the drive capability of the Voltage Reference is limited. The Voltage Reference is a 16-tap resistor ladder network that provides a selectable voltage reference. The resistor ladder is segmented to provide two ranges of VREF values and has a power-down function to conserve power when the reference is not being used. The VRCON register controls the operation of the reference as shown in Figure 19-1. The block diagram is given in Figure 19-1. Within each range, the 16 steps are monotonic (i.e. each increasing code will result in an increasing output). Figure 19-1: Voltage Reference Block Diagram 16 Stages VREN 8R (1) R (1) R (1) R (1) R (1) 8R (1) VRR VREF 16-1 Analog MUX VR3 (From VRCON<3:0>) VR0 Note 1: See parameter D312 in the Electrical Specifications section of the device data sheet. Table 19-1: Typical Voltage Reference with VDD = 5.0V VR3:VR0 VREF VRR = 1 VRR = 0 0000 0.00 V 1.25 V 0001 0.21 V 1.41 V 0010 0.42 V 1.56 V 0011 0.63 V 1.72 V 0100 0.83 V 1.88 V 0101 1.04 V 2.03 V 0110 1.25 V 2.19 V 0111 1.46 V 2.34 V 1000 1.67 V 2.50 V 1001 1.88 V 2.66 V 1010 2.08 V 2.81 V 1011 2.29 V 2.97 V 1100 2.50 V 3.13 V 1101 2.71 V 3.28 V 1110 2.92 V 3.44 V 1111 3.13 V 3.59 V DS31019A-page 19-2 1997 Microchip Technology Inc.

Section 19. Voltage Reference 19.2 Control Register Register 19-1: VRCON Register R/W-0 R/W-0 R/W-0 U-0 R/W-0 R/W-0 R/W-0 R/W-0 VREN VROE VRR VR3 VR2 VR1 VR0 bit 7 bit 0 bit 7 VREN: VREF Enable 1 = VREF circuit powered on 0 = VREF circuit powered down bit 6 VROE: VREF Output Enable 1 = VREF is internally connected to Comparator module s VREF. This voltage level is also output on the VREF pin 0 = VREF is not connected to the comparator module. This voltage is disconnected from the VREF pin bit 5 VRR: VREF Range selection 1 = 0V to 0.75 VDD, with VDD/24 step size 0 = 0.25 VDD to 0.75 VDD, with VDD/32 step size bit 4 Unimplemented: Read as '0' bit 3:0 VR3:VR0: VREF value selection 0 VR3:VR0 15 When VRR = 1: VREF = (VR<3:0>/ 24) VDD When VRR = 0: VREF = 1/4 * VDD + (VR3:VR0/ 32) VDD Legend R = Readable bit W = Writable bit U = Unimplemented bit, read as 0 - n = Value at POR reset 19 Voltage Reference 1997 Microchip Technology Inc. DS31019A-page 19-3

PICmicro MID-RANGE MCU FAMILY 19.3 Configuring the Voltage Reference The Voltage Reference can output 16 distinct voltage levels for each range. The equations used to calculate the output of the Voltage Reference are as follows: if VRR = 1: VREF = (VR3:VR0/24) x VDD if VRR = 0: VREF = (VDD x 1/4) + (VR3:VR0/32) x VDD The settling time of the Voltage Reference must be considered when changing the VREF output. Example 19-1 shows an example of how to configure the Voltage Reference for an output voltage of 1.25V with VDD = 5.0V. Generally the VREF and VDD of the system will be known and you need to determine the value to load into VR3:VR0. Equation 19-1 shows how to calculate the VR3:VR0 value. There will be some error since VR3:VR0 can only be an integer, and the VREF and VDD levels must be chosen so that the result is not greater then 15. Equation 19-1: Calculating VR3:VR0 When VRR = 1 VR3:VR0 = VREF VDD X 24 When VRR = 0 VR3:VR0 = VREF - VDD/4 VDD X 32 DS31019A-page 19-4 1997 Microchip Technology Inc.

Section 19. Voltage Reference 19.4 Voltage Reference Accuracy/Error 19.5 Operation During Sleep The full range of VSS to VDD cannot be realized due to the construction of the module. The transistors on the top and bottom of the resistor ladder network (Figure 19-1) keep VREF from approaching VSS or VDD. The Voltage Reference is VDD derived and therefore, the VREF output changes with fluctuations in VDD. The absolute accuracy of the Voltage Reference can be found in the Device Data Sheets electrical specification parameter D311. When the device wakes up from sleep through an interrupt or a Watchdog Timer time-out, the contents of the VRCON register are not affected. To minimize current consumption in SLEEP mode, the Voltage Reference should be disabled. 19.6 Effects of a Reset A device reset disables the Voltage Reference by clearing the VREN bit (VRCON<7>). This reset also disconnects the reference from the VREF pin by clearing the VROE bit (VRCON<6>) and selects the high voltage range by clearing the VRR bit (VRCON<5>). The VREF value select bits, VRCON<3:0>, are also cleared. 19 Voltage Reference 1997 Microchip Technology Inc. DS31019A-page 19-5

PICmicro MID-RANGE MCU FAMILY 19.7 Connection Considerations The Voltage Reference Module operates independently of the comparator module. The output of the reference generator may be connected to the VREF pin if the corresponding TRIS bit is set and the VROE bit (VRCON<6>) is set. Enabling the Voltage Reference output onto the VREF pin with an input signal present will increase current consumption. Configuring the VREF as a digital output with VREF enabled will also increase current consumption. The VREF 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 VREF. Figure 19-2 shows an example buffering technique. Figure 19-2: Voltage Reference Output Buffer Example VREF Module R (1) ANx + VREF Output PIC16CXXX Note 1: R is the Voltage Reference Output Impedance and is dependent upon the Voltage Reference Configuration VRCON<3:0> and VRCON<5>. DS31019A-page 19-6 1997 Microchip Technology Inc.

Section 19. Voltage Reference 19.8 Initialization Example 19-1 shows the steps to configure the voltage reference module. Example 19-1: Voltage Reference Configuration MOVLW 0x02 ; 4 Inputs Muxed to 2 comparators MOVWF CMCON ; BSF STATUS,RP0 ; go to Bank1 MOVLW 0x07 ; RA3:RA0 are outputs MOVWF TRISA ; outputs MOVLW 0xA6 ; enable VREF MOVWF VRCON ; low range set VR3:VR0 = 6 BCF STATUS,RP0 ; go to Bank0 CALL DELAY10 ; 10 µs delay 19 Voltage Reference 1997 Microchip Technology Inc. DS31019A-page 19-7

PICmicro MID-RANGE MCU FAMILY 19.9 Design Tips Question 1: My VREF is not what I expect. Answer 1: Any variation of the device VDD will translate directly onto the VREF pin. Also ensure that you have correctly calculated (specified) the VDD divider which generates the VREF. Question 2: I am connecting VREF into a low impedance circuit, and the VREF is not at the expected level. Answer 2: The Voltage Reference module is not intended to drive large loads. A buffer must be used between the PICmicro s VREF pin and the load. DS31019A-page 19-8 1997 Microchip Technology Inc.

Section 19. Voltage Reference 19.10 Related Application Notes This section lists application notes that are related to this section of the manual. These application notes may not be written specifically for the Mid-Range MCU family (that is they may be written for the Base-Line, or High-End families), but the concepts are pertinent, and could be used (with modification and possible limitations). The current application notes related to Voltage Reference are: Title Application Note # Resistance and Capacitance Meter using a PIC16C622 AN611 19 Voltage Reference 1997 Microchip Technology Inc. DS31019A-page 19-9

PICmicro MID-RANGE MCU FAMILY 19.11 Revision History Revision A This is the initial released revision of the Voltage Reference description. DS31019A-page 19-10 1997 Microchip Technology Inc.