Contents
Contents
1
2
3
4
GENERAL DESCRIPTION ......................................................................................... 1
FEATURES ................................................................................................................. 1
PIN ASSIGNMENT ..................................................................................................... 2
FUNCTION DESCRIPTION........................................................................................ 4
4.1 Operational Registers......................................................................................... 4
4.1.1 R0 (Indirect Addressing Register) .......................................................................4
4.1.2 R1 (Time Clock /Counter)....................................................................................4
4.1.3 R2 (Program Counter) & Stack ...........................................................................5
4.1.4 R3 (Status Register)............................................................................................6
4.1.5 R4 (RAM Select Register)...................................................................................7
4.1.6 R5 ~ R6 (Port 5 ~ Port 6) ....................................................................................7
4.1.7 RF (Interrupt Status Register) .............................................................................7
4.1.8 R10 ~ R3F...........................................................................................................7
4.2 Special Purpose Registers ................................................................................. 8
4.2.1 A (Accumulator)...................................................................................................8
4.2.2 CONT (Control Register).....................................................................................8
4.2.3 IOC5 ~ IOC6 (I/O Port Control Register) ............................................................8
4.2.4 IOCA (Prescaler Counter Register).....................................................................9
4.2.5 IOCB (Pull-down Control Register) .....................................................................9
4.2.6 IOCC (Open-drain Control Register)...................................................................9
4.2.7 IOCD (Pull-high Control Register).....................................................................10
4.2.8 IOCE (WDT Control Register)...........................................................................10
4.2.9 IOCF (Interrupt Mask Register).........................................................................11
4.3 TCC/WDT & Prescaler ..................................................................................... 11
4.4 I/O Ports ........................................................................................................... 12
4.5 RESET and Wake-up ....................................................................................... 15
4.5.1 RESET ..............................................................................................................15
4.5.2 The Status of RST, T, and P of STATUS Register.............................................19
4.6 Interrupt............................................................................................................ 20
4.7 Oscillator .......................................................................................................... 22
4.7.1 Oscillator Modes................................................................................................22
4.7.2 .Crystal Oscillator/Ceramic Resonators(XTAL).................................................22
4.7.3 External RC Oscillator Mode.............................................................................23
4.8 CODE Option Register..................................................................................... 25
4.9 Power On Considerations ................................................................................ 25
4.10 External Power On Reset Circuit...................................................................... 26
4.11 Residue-Voltage Protection.............................................................................. 26
4.12 Instruction Set .................................................................................................. 27
4.13 Timing Diagrams .............................................................................................. 30
Product Specification (V1.3) 07.29.2004
• iii