English
Language : 

PIC16HV540 Datasheet, PDF (6/36 Pages) Microchip Technology – Enhanced PIC16C54 EPROM-Based 8-Bit CMOS Microcontroller With On-Chip Voltage Regulator
PIC16HV540
4.0 MEMORY ORGANIZATION
FIGURE 4-1: PIC16HV540 PROGRAM
MEMORY MAP AND STACK
PC<8:0>
9
CALL, RETLW
Stack Level 1
Stack Level 2
Stack Level 3
Stack Level 4
000h
On-chip
Program
Memory
0FFh
100h
Reset Vector
1FFh
FIGURE 4-2: PIC16HV540 REGISTER FILE
MAP
File Address
00h
01h
02h
03h
04h
05h
06h
07h
08h
INDF(1)
TMR0
PCL
STATUS
FSR
PORTA
PORTB
TRISA
TRISB
OPTION2
0Fh
General
10h
Purpose
Registers
1Fh
Note 1: Not a physical register.
TABLE 4-1: SPECIAL FUNCTION REGISTER SUMMARY
Address
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on
Power-On
Reset
Value on
MCLR and
WDT Reset
N/A
TRIS
I/O control registers (TRISA, TRISB)
1111 1111 1111 1111
N/A
OPTION Contains control bits to configure Timer0 and Timer0/WDT prescaler
--11 1111 --11 1111
N/A
OPTION2 Contains control bits to configure pin changes, software enabled WDT, xx11 1111 xx11 1111
regulation and brown-out
00h
INDF
Uses contents of FSR to address data memory (not a physical register) xxxx xxxx uuuu uuuu
01h
TMR0
8-bit real-time clock/counter
xxxx xxxx uuuu uuuu
02h(1)
PCL
Low order 8 bits of PC
1111 1111 1111 1111
03h
STATUS
PCF PA1 PA0
TO
PD
Z
DC
C
1001 1xxx 100q quuu
04h
FSR
Indirect data memory address pointer
1xxx xxxx 1uuu uuuu
05h
PORTA
—
—
—
—
RA3 RA2 RA1 RA0 ---- xxxx ---- uuuu
06h
PORTB
RB7 RB6 RB5 RB4 RB3 RB2 RB1 RB0 xxxx xxxx uuuu uuuu
Legend: Shaded boxes = unimplemented or unused, – = unimplemented, read as '0' (if applicable)
x = unknown, u = unchanged, q = value depends on condition.
Note 1: The upper byte of the Program Counter is not directly accessible. See Section 4.5 of the PIC16C5X data sheet (DS30453)
for an explanation of how to access these bits.
2: File address 07h is a general purpose register on the PIC16HV540.
3: PCF This bit is set to 1 after power up-reset (POR) or sleep command.
4: PCF This bit is set to 0 after a wake up on pin change event.
DS40197A-page 6
Preliminary
© 1998 Microchip Technology Inc.