HT68F04 Holtek Semiconductor, HT68F04 Datasheet - Page 77

no-image

HT68F04

Manufacturer Part Number
HT68F04
Description
Small Package Enhanced Flash Type 8-Bit MCU
Manufacturer
Holtek Semiconductor
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
HT68F04
Manufacturer:
ST
Quantity:
14 500
Rev. 1.00
Bit 2~0
¨
Bit 7~6
Bit 5~4
TM2C1 Register
Name
POR
R/W
Bit
T2AM1
If the TM is in the Compare Match Output Mode then the TM output pin will be reset to its initial
condition, as specified by the T2AOC or T2BOC bit, when the T2ON bit changes from low to high.
T2RP2~T2RP0: TM2 CCRP 3-bit register, compared with the TM2 Counter bit 9~bit 7
Comparator P Match Period
These three bits are used to setup the value on the internal CCRP 3-bit register, which are then
compared with the internal counter¢s highest three bits. The result of this comparison can be
selected to clear the internal counter if the T2CCLR bit is set to zero. Setting the T2CCLR bit to
zero ensures that a compare match with the CCRP values will reset the internal counter. As the
CCRP bits are only compared with the highest three counter bits, the compare values exist in 128
clock cycle multiples. Clearing all three bits to zero is in effect allowing the counter to overflow at
its maximum value.
T2AM1~T2AM0: Select TM2 CCRA Operating 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 T2AM1 and T2AM0 bits. In the
Timer/Counter Mode, the TM output pin control must be disabled.
T2AIO1~T2AIO0: Select TP2A output function
Compare Match Output Mode
PWM Mode/ Single Pulse Output Mode
Capture Input Mode
Timer/counter Mode
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.
R/W
000: 1024 TM2 clocks
001: 128 TM2 clocks
010: 256 TM2 clocks
011: 384 TM2 clocks
100: 512 TM2 clocks
101: 640 TM2 clocks
110: 768 TM2 clocks
111: 896 TM2 clocks
00: Compare Match Output Mode
01: Capture Input Mode
10: PWM Mode or Single Pulse Output Mode
11: Timer/Counter Mode
00: No change
01: Output low
10: Output high
11: Toggle output
00: Force inactive state
01: Force active state
10: PWM output
11: Single pulse output
00: Input capture at rising edge of TP2A
01: Input capture at falling edge of TP2A
10: Input capture at falling/rising edge of TP2A
11: Input capture disabled
Unused
7
0
T2AM0
R/W
6
0
T2AIO1
R/W
5
0
T2AIO0
HT66F03/HT66F04/HT68F03/HT68F04
77
R/W
4
0
T2AOC
R/W
3
0
T2APOL
R/W
2
0
T2CDN
R
1
0
April 16, 2010
www.DataSheet4U.com
T2CCLR
R/W
0
0

Related parts for HT68F04