Contents
iv • Product Specification (V1.2) 05.18.2007
6.2.13 IOC61 (TCCB Counter)...................................................................................23
6.2.14 IOC71 (TCCBH/MSB Counter)........................................................................24
6.2.15 IOC81 (TCCC Counter)...................................................................................24
6.2.16 IOC91 (Low Time Register).............................................................................25
6.2.17 IOCA1 (High Time Register)............................................................................25
6.2.18 IOCB1 High/Low Time Scale Control Register)...............................................25
6.2.19 IOCC1 (TCC Prescaler Counter).....................................................................26
6.3 TCC/WDT and Prescaler.................................................................................. 27
6.4 I/O Ports ........................................................................................................... 28
6.4.1 Usage of Port 5 Input Change Wake-up/Interrupt Function .............................31
6.5 Reset and Wake-up..........................................................................................31
6.5.1 Reset and Wake-up Operation ........................................................................31
6.5.1.1 Wake-Up and Interrupt Modes Operation Summary .........................34
6.5.1.2 Register Initial Values after Reset.....................................................36
6.5.1.3 Controller Reset Block Diagram........................................................40
6.5.2 The T and P Status under STATUS (R3) Register ...........................................41
6.6 Interrupt............................................................................................................41
6.7 Analog-To-Digital Converter (ADC) ..................................................................44
6.7.1 ADC Control Register (AISR/R8, ADCON/R9, ADOC/RA)...............................44
6.7.1.1 R8 (AISR: ADC Input Select Register)..............................................44
6.7.1.2 R9 (ADCON: AD Control Register) ...................................................45
6.7.1.3 RA (ADOC: AD Offset Calibration Register)......................................46
6.7.2 ADC Data Register (ADDATA/RB, ADDATA1H/RC, ADDATA1L/RD)..............47
6.7.3 ADC Sampling Time........................................................................................47
6.7.4 AD Conversion Time .......................................................................................47
6.7.5 ADC Operation during Sleep Mode.................................................................47
6.7.6 Programming Process/Considerations ............................................................48
6.7.6.1 Programming Process......................................................................48
6.7.6.2 Sample Demo Programs ..................................................................49
6.8 Infrared Remote Control Application/PWM Waveform Generation................... 51
6.8.1 Overview.........................................................................................................51
6.8.2 Function Description........................................................................................52
6.8.3 Programming the Related Registers................................................................54
6.9 Timer/Counter................................................................................................... 55
6.9.1 Overview.........................................................................................................55
6.9.2 Function Description........................................................................................55
6.9.3 Programming the Related Registers................................................................57
6.10 Comparator .....................................................................................................57
6.10.1 External Reference Signal...............................................................................58
6.10.2 Comparator Output..........................................................................................58
6.10.3 Using a Comparator as an Operation Amplifier ...............................................59
6.10.4 Comparator Interrupt.......................................................................................59
6.10.5 Wake-up from Sleep Mode..............................................................................59