Contents
Contents
1
2
3
4
5
6
General Description.................................................................................................. 1
Features ..................................................................................................................... 1
Pin Assignment ......................................................................................................... 2
Pin Description.......................................................................................................... 3
Block Diagram........................................................................................................... 5
Function Description ................................................................................................ 6
6.1 Operational Registers......................................................................................... 6
6.1.1 R0 (Indirect Addressing Register) .......................................................................6
6.1.2 R1 (Timer Clock/Counter) ...................................................................................6
6.1.3 R2 (Program Counter) & Stack ...........................................................................6
6.1.4 R3 (Status Register)............................................................................................9
6.1.5 R4 (RAM Select Register)...................................................................................9
6.1.6 R5 ~ R7 (Port 5 ~ Port 7) ....................................................................................9
6.1.7 R8 ~ R9 ...............................................................................................................9
6.1.8 RA (Wake- up Control Register)........................................................................10
6.1.9 RB (EEPROM Control Register) .......................................................................10
6.1.10 RC (128 Bytes EEPROM Address)...................................................................11
6.1.11 RD (128 Bytes EEPROM Data) ........................................................................11
6.1.12 RE (LVD Control Register) ................................................................................11
6.1.13 RF (Interrupt Status Register) ...........................................................................12
6.1.14 R10 ~ R3F.........................................................................................................12
6.2 Special Function Registers............................................................................... 13
6.2.1 A (Accumulator).................................................................................................13
6.2.2 CONT (Control Register)...................................................................................13
6.2.3 IOC5 ~ IOC7 (I/O Port Control Register) ..........................................................14
6.2.4 IOCA (WDT Control Register)...........................................................................14
6.2.5 IOCB (Pull-down Control Register) ...................................................................15
6.2.6 IOCC (Open-drain Control Register).................................................................15
6.2.7 IOCD (Pull-high Control Register).....................................................................16
6.2.8 IOCF (Interrupt Mask Register).........................................................................16
6.3 TCC/WDT & Prescaler ..................................................................................... 17
6.4 I/O Ports ........................................................................................................... 18
6.5 Reset and Wake-up.......................................................................................... 21
6.5.1 Reset.................................................................................................................21
6.5.2 Status of RST, T, and P of the Status Register..................................................27
6.6 Interrupt............................................................................................................ 29
6.7 LVD (Low Voltage Detector) ............................................................................. 30
Product Specification (V1.1) 10.20.2006
iii