Qdatasheet_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

HT66F016 View Datasheet(PDF) - Holtek Semiconductor

Part Name
Description
MFG CO.
HT66F016
Holtek
Holtek Semiconductor Holtek
'HT66F016' PDF : 116 Pages View PDF
HT66F016/HT66F017/HT68F016/HT68F017
HT66F016R/HT66F017R/HT68F016R/HT68F017R
· TM1C1 Register
Bit
Name
R/W
POR
7
T1M1
R/W
0
6
T1M0
R/W
0
5
T1IO1
R/W
0
4
T1IO0
R/W
0
3
T1OC
R/W
0
2
T1POL
R/W
0
1
T1DPX
R/W
0
0
T1CCLR
R/W
0
Bit 7~6
Bit 5~4
T1M1~T1M0: select TM1 operating mode
00: Compare match output mode
01: Capture input mode
10: PWM mode or single pulse output 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 T1M1 and T1M0 bits. In the
Timer/Counter Mode, the TM output pin control must be disabled.
T1IO1~T1IO0: select TP1 output function
Compare match output mode
00: no change
01: output low
10: output high
11: toggle output
PWM mode/single pulse output mode
00: PWM output inactive state
01: PWM output active state
10: PWM output
11: Single pulse output
Capture input mode
00: input capture at rising edge of TP1
01: input capture at falling edge of TP1
10: input capture at falling/rising edge of TP1
11: input capture disabled
Timer/counter mode
Unused
These two bits are used to determine how the TM output pin changes state when a certain
condition is reached. The function that these bits select depends upon in which mode the TM is
running.
In the Compare Match Output Mode, the T1IO1 and T1IO0 bits determine how the TM output
pin changes state when a compare match occurs from the Comparator A. The TM output pin can
be setup to switch high, switch low or to toggle its present 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 TM output pin should be setup using the T1OC bit in the TM1C1
register. Note that the output level requested by the T1IO1 and T1IO0 bits must be different from
the initial value setup using the T1OC bit otherwise no change will occur on the TM output pin
when a compare match occurs. After the TM output pin changes state it can be reset to its initial
level by changing the level of the T1ON bit from low to high.
In the PWM Mode, the T1IO1 and T1IO0 bits determine how the TM output pin changes state
when a certain compare match condition occurs. The PWM output function is modified by
changing these two bits. It is necessary to change the values of the T1IO1 and T1IO0 bits only
after the TM has been switched off. Unpredictable PWM outputs will occur if the T1IO1 and
T1IO0 bits are changed when the TM is running
Rev. 1.40
64
November 22, 2016
Share Link: GO URL

All Rights Reserved © qdatasheet.com  [ Privacy Policy ] [ Contact Us ]