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

HT66F25D View Datasheet(PDF) - Holtek Semiconductor

Part Name
Description
MFG CO.
HT66F25D
Holtek
Holtek Semiconductor Holtek
'HT66F25D' PDF : 177 Pages View PDF
A/D Flash Type 8-bit MCU with EEPROM
HT66F24D/HT66F25D
Bit 2~0
T0RP2~T0RP0: TM0 CCRP 3-bit register, compare with the TM0 counter bit 9~bit 7
Comparator P Match Period
000: 1024 TM0 clocks
001: 128 TM0 clocks
010: 256 TM0 clocks
011: 384 TM0 clocks
100: 512 TM0 clocks
101: 640 TM0 clocks
110: 768 TM0 clocks
111: 896 TM0 clocks
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 T0CCLR bit is set to
zero. Setting the T0CCLR 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.
TM0C1 Register
Register
Name
TM0C0
TM0C1
TM0DL
7
T0M1
R/W
0
6
T0M0
R/W
0
5
T0IO1
R/W
0
Bit
4
3
T0IO0 T0OC
R/W
R/W
0
0
2
T0POL
R/W
0
1
T0DPX
R/W
0
0
T0CCLR
R/W
0
Bit 7~6
Bit 5~4
T0M1~T0M0: Select TM0 Operation Mode
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.
T0IO1~T0IO0: Select TP0_0, TP0_1, TP0_2 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 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.
Rev. 1.10
77
March 25, 2013
Share Link: GO URL

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