HT68F04 Holtek Semiconductor, HT68F04 Datasheet - Page 79

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 7~6
Bit 5~4
Bit 3
TM2C2 Register
Name
POR
R/W
Bit
T2BM1
T2BM1~T2BM0: Select TM2 CCRB 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 T2BM1 and T2BM0 bits. In the
Timer/Counter Mode, the TM output pin control must be disabled.
T2BIO1~T2BIO0: Select TP2B 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.
In the Compare Match Output Mode, the T2BIO1 and T2BIO0 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 T2BOC bit in the
TM2C2 register. Note that the output level requested by the T2BIO1 and T2BIO0 bits must be
different from the initial value setup using the T2BOC 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 T2ON bit from low to high.
T2BOC: TP2B Output control bit
Compare Match Output Mode
PWM Mode/ Single Pulse Output Mode
This is the output control bit for the TM output pin. Its operation depends upon whether TM is
being used in the Compare Match Output Mode or in the PWM Mode/ Single Pulse Output Mode.
It has no effect if the TM is in the Timer/Counter Mode. In the Compare Match Output Mode it
determines the logic level of the TM output pin before a compare match occurs. In the PWM
Mode it determines if the PWM signal is active high or active low.
R/W
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 TP2B
01: Input capture at falling edge of TP2B
10: Input capture at falling/rising edge of TP2B
11: Input capture disabled
Unused
0: Initial low
1: Initial high
0: Active low
1: Active high
7
0
T2BM0
R/W
6
0
T2BIO1
R/W
5
0
T2BIO0
HT66F03/HT66F04/HT68F03/HT68F04
79
R/W
4
0
T2BOC
R/W
3
0
T2BPOL
R/W
2
0
T2PWM1
R/W
1
0
April 16, 2010
T2PWM0
www.DataSheet4U.com
R/W
0
0

Related parts for HT68F04