PIC18C242 MICROCHIP [Microchip Technology], PIC18C242 Datasheet - Page 54

no-image

PIC18C242

Manufacturer Part Number
PIC18C242
Description
High-Performance Microcontrollers with 10-Bit A/D
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18C242-I/SO
Manufacturer:
MICROCHIP
Quantity:
2 000
Part Number:
PIC18C242/JW
Manufacturer:
NS
Quantity:
10
PIC18CXX2
5.1
Several control registers are used in conjunction with
the TBLRD and TBLWT instructions. These include the:
• TBLPTR registers
• TABLAT register
• RCON register
Register 5-1:
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
DS39026B-page 54
Control Registers
bit 7
IPEN: Interrupt Priority Enable
1 = Enable priority levels on interrupts
0 = Disable priority levels on interrupts (16CXXX compatibility mode)
LWRT: Long Write Enable
1 = Enable TBLWT to internal program memory
0 = Disable TBLWT to internal program memory.
Unimplemented: Read as ’0’
RI: Reset Instruction Flag bit
1 = No Reset instruction occurred
0 = A Reset instruction occurred
TO: Time-out bit
1 = After power-up, CLRWDT instruction, or SLEEP instruction
0 = A WDT time-out occurred
PD: Power-down bit
1 = After power-up or by the CLRWDT instruction
0 = By execution of the SLEEP instruction
POR: Power-on Reset Status bit
1 = No Power-on Reset occurred
0 = A Power-on Reset occurred (must be set in software after a Power-on Reset occurs)
BOR: Brown-out Reset Status bit
1 = No Brown-out Reset nor POR reset occurred
0 = A Brown-out Reset nor POR reset occurred
Legend:
R = Readable bit
- n = Value at POR reset
R/W-0
IPEN
Note 1: Only cleared on a POR or MCLR reset.
(must be set in software after a Brown-out Reset occurs)
RCON Register (Address: 08h)
This bit has no effect on TBLWTs to external program memory.
R/W-0
LWRT
U-0
W = Writable bit
’1’ = Bit is set
R/W-1
Preliminary
RI
U = Unimplemented bit, read as ‘0’
’0’ = Bit is cleared
R/W-1
5.1.1
The LWRT bit specifies the operation of Table Writes to
internal memory when the V
MCLR pin. When the LWRT bit is set, the controller
continues to execute user code, but long table writes
are allowed (for programming internal program mem-
ory) from user mode. The LWRT bit can be cleared only
by performing either a POR or MCLR reset.
TO
RCON REGISTER
R/W-1
PD
x = Bit is unknown
R/W-0
POR
7/99 Microchip Technology Inc.
PP
bit 0
voltage is applied to the
R/W-0
BOR

Related parts for PIC18C242