Datasheet

Table Of Contents
PIC10F220/222
DS41270E-page 14 © 2007 Microchip Technology Inc.
4.3 Data Memory Organization
Data memory is composed of registers or bytes of
RAM. Therefore, data memory for a device is specified
by its register file. The register file is divided into two
functional groups: Special Function Registers (SFR)
and General Purpose Registers (GPR).
The Special Function Registers include the TMR0 reg-
ister, the Program Counter (PCL), the STATUS register,
the I/O register (GPIO) and the File Select Register
(FSR). In addition, Special Function Registers are used
to control the I/O port configuration and prescaler
options.
The General Purpose Registers are used for data and
control information under command of the instructions.
For the PIC10F220, the register file is composed of 9
Special Function Registers and 16 General Purpose
Registers (Figure 4-3, Figure 4-4).
For the PIC10F222, the register file is composed of 9
Special Function Registers and 23 General Purpose
Registers (Figure 4-4).
4.3.1 GENERAL PURPOSE REGISTER
FILE
The General Purpose Register file is accessed, either
directly or indirectly, through the File Select Register
(FSR). See Section 4.9 “Indirect Data Addressing;
INDF and FSR Registers”.
FIGURE 4-3: PIC10F220 REGISTER
FILE MAP
FIGURE 4-4: PIC10F222 REGISTER
FILE MAP
4.3.2 SPECIAL FUNCTION REGISTERS
The Special Function Registers (SFRs) are registers
used by the CPU and peripheral functions to control the
operation of the device (Table 4-1).
The Special Function Registers can be classified into
two sets. The Special Function Registers associated
with the “core” functions are described in this section.
Those related to the operation of the peripheral
features are described in the section for each
peripheral feature.
File Address
00h
01h
02h
03h
04h
05h
06h
07h
10h
INDF
(1)
TMR0
PCL
STATUS
FSR
OSCCAL
GPIO
General
Purpose
Registers
Note 1: Not a physical register. See Section 4.9
“Indirect Data Addressing; INDF and
FSR Registers”.
2: Unimplemented, read as 00h.
08h
ADCON0
0Fh
1Fh
Unimplemented
(2)
ADRES
09h
File Address
00h
01h
02h
03h
04h
05h
06h
07h
1Fh
INDF
(1)
TMR0
PCL
STATUS
FSR
OSCCAL
GPIO
Note 1: Not a physical register. See Section 4.9
“Indirect Data Addressing; INDF and
FSR Registers”.
08h
ADRES
09h
ADCON0
General
Purpose
Registers