Contents
6.2.9 IOCD0 (Pull-high Control Register)...................................................................22
6.2.10 IOCE0 (WDT Control & Interrupt Mask Registers 2) ........................................22
6.2.11 IOCF0 (Interrupt Mask Register).......................................................................23
6.2.12 IOC51 (TCCA Counter).....................................................................................24
6.2.13 IOC61 (TCCB Counter).....................................................................................24
6.2.14 IOC71 (TCCBH/MSB Counter) .........................................................................25
6.2.15 IOC81 (TCCC Counter).....................................................................................25
6.2.16 IOC91 (Low-Time Register) ..............................................................................26
6.2.17 IOCA1 (High Time Register) .............................................................................26
6.2.18 IOCB1 High/Low Time Scale Control Register) ................................................26
6.2.19 IOCC1 (TCC Prescaler Counter) ......................................................................27
6.3 TCC/WDT and Prescaler.................................................................................. 28
6.4 I/O Ports ........................................................................................................... 29
6.4.1 Usage of Port 5 Input Change Wake-up/Interrupt Function..............................32
6.5 RESET and Wake-up ....................................................................................... 32
6.5.1 RESET and Wake-up Operation .......................................................................32
6.5.1.1 Wake-Up and Interrupt Modes Operation Summary..........................35
6.5.1.2 Register Initial Values after Reset......................................................37
6.5.1.3 Controller Reset Block Diagram.........................................................42
6.5.2 The T and P Status under STATUS Register ....................................................42
6.6 Interrupt............................................................................................................ 42
6.7 Analog-To-Digital Converter (ADC) .................................................................. 45
6.7.1 ADC Control Register (AISR/R8, ADCON/R9, ADOC/RA) ...............................45
6.7.1.1 R8 (AISR: ADC Input Select Register)...............................................45
6.7.1.2 R9 (ADCON: ADC Control Register)..................................................46
6.7.1.3 RA (ADOC: ADC Offset Calibration Register)....................................47
6.7.2 ADC Data Register (ADDATA/RB, ADDATA1H/RC, ADDATA1L/RD)...............48
6.7.3 ADC Sampling Time..........................................................................................48
6.7.4 AD Conversion Time .........................................................................................48
6.7.5 ADC Operation during Sleep Mode...................................................................48
6.7.6 Programming Process/Considerations..............................................................49
6.7.6.1 Programming Process........................................................................49
6.7.6.2 Sample Demo Programs....................................................................50
6.8 Infrared Remote Control Application/PWM Waveform Generation................... 52
6.8.1 Overview ...........................................................................................................52
6.8.2 Function Description..........................................................................................53
6.8.3 Programming the Related Registers................................................................55
6.9 Timer/Counter................................................................................................... 56
6.9.1 Overview ...........................................................................................................56
6.9.2 Function Description..........................................................................................56
6.9.3 Programming the Related Registers.................................................................58
iv •
Product Specification (V1.0) 06.16.2005