
Rev. 1.00
146 of ���
�an�a�� 1�� �01�
Standard 8051 8-Bit Flash MCU
HT85F2260/HT85F2270/HT85F2280
Timer 2 with
Additional 4-channel PCA
Compare Modes
Timer 2 has two compare modes, known as Mode 0 and Mode 1. The required mode is selected
using the T2CM bit in the T2CON register. Setting counter data in the Compare modes can
implement the PWM function for various control applications.
Compare Mode 0
In Mode 0, if the Timer 2 counter data is the same as the Compare registers, the compare output
will be set from low to high and the Timer 2 counter overflow will clear the respective output pins,
CCn, to low. In addition, the Module 0 can select the output rising or falling edge interrupt trigger
by the I3FR bit in the T2CON register. The accompanying diagrams illustrate the Basic application
blocks.
CCHn
CCLn
Compa�ato�
TH�
TL�
CCn
Compa�e Match
Ove�flow
“
1
”
“
0
”
Inte���pt
Inte���pt
Note: n=1~3
Compare Mode 0 – Module 1, Module 2, Module 3