Contents
6.2.9 IOCD0 (Pull-high Control Register)...................................................................22
6.2.10 IOCE0 (WDT Control Register).........................................................................23
6.2.11 IOCF0 (Interrupt Mask Register).......................................................................24
6.2.12 IOC51 (PRD1: PWM1 Time Period)..................................................................25
6.2.13 IOC61 (PRD2: PWM2 Time Period)..................................................................25
6.2.14 IOC71 (PRD3: PWM3 Time Period)..................................................................25
6.2.15 IOC81 (DT1L: the Least Significant Byte (Bit 7 ~ Bit 0) of
PWM1 Duty Cycle)............................................................................................25
6.2.16 IOC91 (DT2L: the Least Significant Byte (Bit 7 ~ Bit 0) of
PWM2 Duty Cycle)............................................................................................25
6.2.17 IOCA1 (DT3L: the Least Significant Byte (Bit 7 ~ Bit 0) of
PWM3 Duty Cycle)............................................................................................25
6.2.18 IOCB1 (DTH: the Most Significant Bits of PWM Duty Cycle)............................25
6.2.19 IOCC1 (TMR1L: the Least Significant Byte (Bit 7 ~ Bit 0) of
PWM1 Timer) ....................................................................................................26
6.2.20 IOCD1 (TMR2L: the Least Significant Byte (Bit 7 ~ Bit 0) of
PWM2 Timer) ....................................................................................................26
6.2.21 IOCE1 (TMR3L: the Least Significant Byte (Bit 7 ~ Bit 0) of
PWM3 Timer) ....................................................................................................26
6.2.22 IOCF1 (TMRH: the Most Significant Bits of PWM Timer) .................................26
6.3 TCC/WDT and Prescaler.................................................................................. 26
6.4 I/O Ports ........................................................................................................... 27
6.4.1 Usage of Port 6 Input Change Wake-up/Interrupt Function..............................30
6.5 RESET and Wake-up ....................................................................................... 30
6.5.1 RESET and Wake-up Operation .......................................................................30
6.5.2 The T and P Status under STATUS Register ....................................................40
6.6 Interrupt............................................................................................................ 41
6.7 Analog-To-Digital Converter (ADC) .................................................................. 42
6.7.1 ADC Control Register (AISR/R8, ADCON/R9, ADOC/RA) ...............................43
6.7.2 ADC Data Register (ADDATA/RB, ADDATA1H/RC, ADDATA1L/RD)...............46
6.7.3 ADC Sampling Time..........................................................................................46
6.7.4 AD Conversion Time .........................................................................................47
6.7.5 ADC Operation during Sleep Mode...................................................................47
6.7.6 Programming Process/Considerations..............................................................47
6.8 Dual Sets of PWM (Pulse Width Modulation)................................................... 50
6.8.1 Overview ...........................................................................................................50
6.8.2 Increment Timer Counter (TMRX: TMR1H/TWR1L, TMR2H
/TWR2L, or TMR3H/TWR3L)............................................................................51
6.8.3 PWM Time Period (PRDX : PRD1 or PRD2) ....................................................51
6.8.4 PWM Duty Cycle (DTX: DT1H/ DT1L, DT2H/ DT2L and
DT3H/DT3L; DLX: DL1H/DL1L, DL2H/DL2L and DL3H/DL3L ) ....................52
6.8.5 Comparator X....................................................................................................52
6.8.6 PWM Programming Process/Steps...................................................................52
iv •
Product Specification (V1.0) 06.23.2005