PIC16HV540 Microchip Technology, PIC16HV540 Datasheet - Page 15

no-image

PIC16HV540

Manufacturer Part Number
PIC16HV540
Description
Enhanced PIC16C54 EPROM-Based 8-Bit CMOS Microcontroller
Manufacturer
Microchip Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16HV540-04/P
Manufacturer:
Microchip
Quantity:
1 736
Part Number:
PIC16HV540-04/SO
Manufacturer:
Microchip
Quantity:
485
Part Number:
PIC16HV540-04I/P
Manufacturer:
MICROCHIP
Quantity:
664
Part Number:
PIC16HV540-04I/SO
Manufacturer:
Maxim
Quantity:
41
Part Number:
PIC16HV540-20/P
Quantity:
5
4.5
The OPTION2 register is a 6-bit wide, write-only regis-
ter which contains various control bits to configure the
added features on the PIC16HV540. A Power-on Reset
sets the OPTION2<5:0> bits.
Example 4-2 illustrates how to initialize the OPTION2
register.
EXAMPLE 4-2:
movlw
tris
REGISTER 4-3: OPTION2 REGISTER (TRIS 07H)
Note:
bit7
2000 Microchip Technology Inc.
bit 7-6:
bit 5:
bit 4:
bit 3:
bit 2:
bit 1:
bit 0:
U-0
OPTION2 Register
All Power-on Resets will disable the
Brown-out Detect circuit. All subsequent
resets will not disable the Brown-out
Detect if enabled.
‘0001 0111’b
0x07
Unimplemented
PCWU: Wake-up on Pin Change
1 = Disabled
0 = Enabled
SWDTEN: Software Controlled WDT Enable bit
1 = WDT is turned off it the WDTEN configuration bit = 0
0 = WDT is on if the WDTEN configuration bit = 0; if WDTEN bit = 1, then SWDTEN is ‘don’t care’
RL: Regulated Voltage Level Select bit
1 = 5 volt
0 = 3 volt
SL: Sleep Voltage Level Select bit
1 = RL bit setting
0 = 3 volt
BODL: Brown-out Voltage Level Select bit
1 = RL bit setting, but SL during SLEEP
0 = 3 volt
BODEN: Brown-out Enabled
1 = Disabled
0 = Enabled
U-0
INSTRUCTIONS FOR INITIALIZING OPTION2 REGISTER
PCWU
W-1
; load OPTION2 setup value into W
; initialize OPTION2 register
SWDTEN
W-1
W-1
RL
Preliminary
W-1
SL
BODL
W-1
BODEN
W-1
0
PIC16HV540
W = Writable bit
U = Unimplemented bit
- n = Value at POR reset
DS40197B-page 15

Related parts for PIC16HV540