Contents
6.2.10 IOCE0 (WDT Control & Interrupt Mask Registers 2)........................................ 25
6.2.11 IOCF0 (Interrupt Mask Register) ...................................................................... 26
6.2.12 IOC51 (TCCA Counter) .................................................................................... 27
6.2.13 IOC61 (TCCB Counter) .................................................................................... 28
6.2.14 IOC71 (TCCBH/MSB Counter)......................................................................... 28
6.2.15 IOC81 (TCCC Counter).................................................................................... 28
6.2.16 IOC91 (Low-Time Register).............................................................................. 29
6.2.17 IOCA1 (High Time Register)............................................................................. 29
6.2.18 IOCB1 High/Low Time Scale Control Register)................................................ 29
6.2.19 IOCC1 (TCC Prescaler Counter)...................................................................... 30
6.2.20 IOCD1 (LVD Control Register) ......................................................................... 31
6.2.21 IOCE1 (Output Sink Select Control Register) .................................................. 32
6.2.21 IOCF1 (Pull-high Control Register)................................................................... 33
6.3 TCC/WDT and Prescaler ................................................................................ 33
6.4 I/O Ports ......................................................................................................... 35
6.4.1 Usage of Port 5 Input Change Wake-up/Interrupt Function ............................. 37
6.5 Reset and Wake-up........................................................................................ 37
6.5.1 Reset and Wake-up Operation ......................................................................... 37
6.5.1.1 Wake-up and Interrupt Modes Operation Summary.......................... 40
6.5.1.2 Register Initial Values after Reset ..................................................... 46
6.5.1.3 Controller Reset Block Diagram ........................................................ 51
6.5.2 The T and P Status under Status (R3) Register ............................................... 51
6.6 Interrupt.......................................................................................................... 52
6.7 Analog-To-Digital Converter (ADC)................................................................. 55
6.7.1 ADC Control Register (AISR/R8, ADCON/R9, ADOC/RA)............................... 55
6.7.1.1 R8 (AISR: ADC Input Select Register) .............................................. 55
6.7.1.2 R9 (ADCON: AD Control Register).................................................... 56
6.7.1.3 RA (ADOC: AD Offset Calibration Register)...................................... 57
6.7.3 ADC Sampling Time ......................................................................................... 58
6.7.4 AD Conversion Time......................................................................................... 58
6.7.5 ADC Operation during Sleep Mode.................................................................. 59
6.7.6 Programming Process/Considerations............................................................. 59
6.7.6.1 Programming Process....................................................................... 59
6.7.6.2 Sample Demo Programs ................................................................... 60
6.8 Infrared Remote Control Application/PWM Waveform Generation .................. 62
6.8.1 Overview........................................................................................................... 62
6.8.2 Function Description......................................................................................... 63
6.8.3 Programming the Related Registers ............................................................... 65
6.9 Timer/Counter................................................................................................. 66
6.9.1 Overview........................................................................................................... 66
6.9.2 Function Description......................................................................................... 66
6.9.3 Programming the Related Registers ................................................................ 68
iv •
Product Specification (V1.0) 12.01.2006