Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

PIC18F23K22-E/ML Datasheet(PDF) 345 Page - Microchip Technology

Part # PIC18F23K22-E/ML
Description  28/40/44-Pin, Low-Power, High-Performance Microcontrollers with nanoWatt XLP Technology
PDF  496 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC18F23K22-E/ML Datasheet(HTML) 345 Page - Microchip Technology

Back Button PIC18F23K22-E/ML Datasheet HTML 341Page - Microchip Technology PIC18F23K22-E/ML Datasheet HTML 342Page - Microchip Technology PIC18F23K22-E/ML Datasheet HTML 343Page - Microchip Technology PIC18F23K22-E/ML Datasheet HTML 344Page - Microchip Technology PIC18F23K22-E/ML Datasheet HTML 345Page - Microchip Technology PIC18F23K22-E/ML Datasheet HTML 346Page - Microchip Technology PIC18F23K22-E/ML Datasheet HTML 347Page - Microchip Technology PIC18F23K22-E/ML Datasheet HTML 348Page - Microchip Technology PIC18F23K22-E/ML Datasheet HTML 349Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 345 / 496 page
background image
 2010 Microchip Technology Inc.
Preliminary
DS41412C-page 345
PIC18(L)F2X/4XK22
23.2
HLVD Setup
To set up the HLVD module:
1.
Select the desired HLVD trip point by writing the
value to the HLVDL<3:0> bits.
2.
Set the VDIRMAG bit to detect high voltage
(VDIRMAG = 1) or low voltage (VDIRMAG = 0).
3.
Enable the HLVD module by setting the
HLVDEN bit.
4.
Clear the HLVD interrupt flag (PIR2<2>), which
may have been set from a previous interrupt.
5.
If interrupts are desired, enable the HLVD
interrupt by setting the HLVDIE and GIE/GIEH
bits (PIE2<2> and INTCON<7>, respectively).
An interrupt will not be generated until the
IRVST bit is set.
23.3
Current Consumption
When the module is enabled, the HLVD comparator
and voltage divider are enabled and consume static
current. The total current consumption, when enabled,
is specified in Section 27.0 “Electrical Characteris-
tics”. Depending on the application, the HLVD module
does not need to operate constantly. To reduce current
requirements, the HLVD circuitry may only need to be
enabled for short periods where the voltage is checked.
After such a check, the module could be disabled.
23.4
HLVD Start-up Time
The internal reference voltage of the HLVD module,
specified
in
Section 27.0
“Electrical
Characteristics”, may be used by other internal
circuitry, such as the programmable Brown-out Reset.
If the HLVD or other circuits using the voltage reference
are disabled to lower the device’s current consumption,
the reference voltage circuit will require time to become
stable before a low or high-voltage condition can be
reliably detected. This start-up time, TIRVST, is an
interval that is independent of device clock speed.
The HLVD interrupt flag is not enabled until TIRVST has
expired and a stable reference voltage is reached. For
this reason, brief excursions beyond the set point may
not be detected during this interval (see Figure 23-2 or
Figure 23-3).
FIGURE 23-2:
LOW-VOLTAGE DETECT OPERATION (VDIRMAG = 0)
Note:
Before changing any module settings
(VDIRMAG, HLVDL<3:0>), first disable the
module (HLVDEN = 0), make the changes
and re-enable the module. This prevents
the generation of false HLVD events.
VHLVD
VDD
HLVDIF
VHLVD
VDD
Enable HLVD
TIRVST
HLVDIF may not be set
Enable HLVD
HLVDIF
HLVDIF cleared in software
HLVDIF cleared in software
HLVDIF cleared in software,
CASE 1:
CASE 2:
HLVDIF remains set since HLVD condition still exists
TIRVST
Internal Reference is stable
Internal Reference is stable
IRVST
IRVST



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com