HT68F14 HOLTEK [Holtek Semiconductor Inc], HT68F14 Datasheet - Page 96

no-image

HT68F14

Manufacturer Part Number
HT68F14
Description
Enhanced I/O Flash Type MCU
Manufacturer
HOLTEK [Holtek Semiconductor Inc]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
HT68F14
Quantity:
310
HT68F13/HT68F14/HT68F15
Enhanced I/O Flash Type MCU
Note:
Rev. 1.10
Flag TnAF
Flag TnPF
CCRA Int.
CCRP Int.
TPnA O/P
1. With TnCCLR=1 a Comparator A match will clear the counter
2. The TPnA output pin is controlled only by the TnAF flag
3. The TPnA output pin is reset to its initial state by a TnON bit rising edge
4. The TnPF flag is not generated when TnCCLR=1
TnAPOL
TnPAU
0x3FF
CCRA
CCRP
TnON
Counter Value
Pin
As the name of the mode suggests, after a comparison is made, the TM output pin, will change state.
The TM output pin condition however only changes state when an TnAF or TnBF interrupt request
flag is generated after a compare match occurs from Comparator A or Comparator B. The TnPF
interrupt request flag, generated from a compare match from Comparator P, will have no effect on the
TM output pin. The way in which the TM output pin changes state is determined by the condition of
the TnAIO1 and TnAIO0 bits in the TMnC1 register for ETM CCRA, and the TnBIO1 and TnBIO0
bits in the TMnC2 register for ETM CCRB. The TM output pin can be selected using the TnAIO1,
TnAIO0 bits (for the TPnA pin) and TnBIO1, TnBIO0 bits (for the TPnB_0, TPnB_1 or TPnB_2 pins)
to go high, to go low or to toggle from its present condition when a compare match occurs from
Comparator A or a compare match occurs from Comparator B. The initial condition of the TM output
pin, which is setup after the TnON bit changes from low to high, is setup using the TnAOC or TnBOC
bit for TPnA or TPnB_0, TPnB_1, TPnB_2 output pins. Note that if the TnAIO1,TnAIO0 and
TnBIO1, TnBIO0 bits are zero then no pin change will take place.
Output pin set to
initial Level Low
if TnAOC=0
TnPF not
generated
ETM CCRA Compare Match Output Mode -- TnCCLR = 1
Here TnAIO [1:0] = 11
Toggle Output select
CCRA > 0 Counter cleared by CCRA value
Output Toggle with
TnAF flag
Note TnAIO [1:0] = 10
Active High Output select
96
Pause
Output not affected by
TnAF flag. Remains High
until reset by TnON bit
Resume
TnCCLR = 1; TnAM [1:0] = 00
Stop
Output controlled by
other pin-shared function
CCRA=0
Counter Restart
Output Pin
Reset to Initial value
CCRA = 0
Counter overflow
Output Inverts
when TnAPOL is high
February 9, 2011
No TnAF flag
generated on
CCRA overflow
Output does
not change
Time

Related parts for HT68F14