TM0C1 Register
Bit
7
�a�e
T0M1
R/W
R/W
POR
0
T
M1~T
Bit 7~6
0
00: Compare Match Output Mode
01: Undefined
10: PWM Mode
11: Timer/Counter Mode
These bits setup the required operating mode for the TM. To ensure reliable operation
the TM should be switched off before any changes are made to the T0M1 and T0M0
bits. In the Timer/Counter Mode, the TM output pin control must be disabled.
Bit 5~4
T0IO1~T0IO0: Select TP0_0, TP0_1 output function
Compare Match Output Mode
00: No change
01: Output low
10: Output high
11: Toggle output
PWM Mode
00: PWM Output inactive state
01: PWM Output active state
10: PWM output
11: Undefined
Timer/counter Mode
unused
These two bits are used to determine how the TM
certain condition is reached. The function that these bits select depends upon in which
mode the TM
In the Compare Match Output Mode, the T
TM
The TM
state when a compare match occurs from the Comparator A. When the bits are both
zero, then no change will take place on the output. The initial value of the TM0 output
pin should be setup using the T
level requested by the T
setup using the T0OC bit otherwise no change will occur on the TM
a compare match occurs. After the TM
initial level by changing the level of the T
In the PWM Mode, the T
changes state when a certain compare match condition occurs. The PWM output
function is modified by changing these two bits. It is necessary to only change
the values of the T
Unpredictable PWM outputs will occur if the T
the TM is running.
Rev. 1.40
HT66F20-1/HT66F30-1/HT68F20-1/HT68F30-1
6
5
T0M0
T0IO1
T0IO0
R/W
R/W
R/W
0
0
M0: Select TM
Operating Mode
0
0
is running.
0
output pin changes state when a compare match occurs from the Comparator A.
0
output pin can be setup to switch high, switch low or to toggle its present
0
OC bit in the TM
0
IO1 and T
0
IO1 and T
0
IO1 and T
IO0 bits only after the TM0 has been switched off.
0
0
8�
Flash MCU with EEPROM
4
3
2
T0OC
T0POL
T0DPX
R/W
R/W
0
0
0
output pin changes state when a
0
IO1 and T
IO0 bits determine how the
0
0
C1 register. Note that the output
0
IO0 bits must be different from the initial value
0
output pin changes state it can be reset to its
0
ON bit from low to high.
0
IO0 bits determine how the TM output pin
0
IO1 and T
IO0 bits are changed when
0
0
�ove��e� ��� �01�
1
0
T0CCLR
R/W
R/W
0
0
output pin when
0
Need help?
Do you have a question about the HT66F20-1 and is the answer not in the manual?
Questions and answers