Contents
6.4 I/O Port............................................................................................................. 41
6.5 Reset and Wake-up.......................................................................................... 42
6.6 Oscillator .......................................................................................................... 52
6.6.1 Oscillator Modes................................................................................................52
6.6.2 Crystal Oscillator/Ceramic Resonators (Crystal)...............................................52
6.6.3 RC Oscillator Mode with Internal Capacitor ......................................................54
6.6.4 Phase Lock Loop (PLL Mode)...........................................................................55
6.7 Power-on Considerations................................................................................. 56
6.7.1 External Power-on Reset Circuit.......................................................................56
6.7.2 Residue-Voltage Protection...............................................................................57
6.8 Interrupt............................................................................................................ 58
6.9 LCD Driver........................................................................................................ 59
6.9.1 R5 LCDCR (LCD Control Register)...................................................................60
6.9.2 R6 LCDADDR (LCD Address Register)............................................................61
6.9.3 R7 LCDBR (LCD Data Buffer)...........................................................................62
6.9.4 R8 LCDVCR (LCD Voltage Control Register)...................................................62
6.10 A/D Converter................................................................................................... 70
6.10.1 ADC Data Register............................................................................................71
6.10.2 A/D Sampling Time............................................................................................71
6.10.3 A/D Conversion Time ........................................................................................71
6.11 UART (Universal Asynchronous Receiver/Transmitter).................................... 72
6.11.1 UART Mode.......................................................................................................73
6.11.2 Transmitting.......................................................................................................74
6.11.3 Receiving...........................................................................................................74
6.11.4 Baud Rate Generator........................................................................................75
6.11.5 UART Timing .....................................................................................................75
6.12 SPI (Serial Peripheral Interface)....................................................................... 76
6.12.1 Overview & Features.........................................................................................76
6.12.2 SPI Function Description...................................................................................78
6.12.3 SPI Signal & Pin Description.............................................................................79
6.12.4 Programming the Related Registers.................................................................81
6.12.5 SPI Mode Timing...............................................................................................84
6.13 Timer/Counter 1................................................................................................ 85
6.13.1 Timer Mode .......................................................................................................86
6.13.2 T1OUT Mode.....................................................................................................86
6.13.3 Capture Mode....................................................................................................86
6.13.4 PWM Mode........................................................................................................87
6.13.5 16-Bit Mode.......................................................................................................87
6.14 Timer 2 ............................................................................................................. 88
6.14.1 Timer Mode .......................................................................................................89
6.14.2 PWM Mode........................................................................................................89
6.15 Code Options ................................................................................................... 90
6.16 Instruction Set .................................................................................................. 92
Product Specification (V0.9) 09.12.2006
• v