Tm Interrupts; Tm External Pins - Holtek HT67F2350 Manual

Advanced a/d flash mcu with lcd & eeprom
Table of Contents

Advertisement

TM Interrupts

The Standard or Periodic type TM has two internal interrupt, one for each of the internal comparator
A or comparator P, which generate a TM interrupt when a compare match condition occurs. When a
TM interrupt is generated, it can be used to clear the counter and also to change the state of the TM
output pin.

TM External Pins

Each of the TMs, irrespective of what type, has two TM input pins, with the label xTCKn and xTPnI
respectively. The xTMn input pin, xTCKn, is essentially a clock source for the xTMn and is selected
using the xTnCK2~xTnCK0 bits in the xTMnC0 register. This external TM input pin allows an
external clock source to drive the internal TM. The xTCKn input pin can be chosen to have either a
rising or falling active edge. The STCKn and PTCKn pins are also used as the external trigger input
pin in single pulse output mode for the STMn and PTMn respectively.
The other xTM input pin, STPnI or PTPnI, is the capture input whose active edge can be a
rising edge, a falling edge or both rising and falling edges and the active edge transition type is
selected using the STnIO1~STnIO0 or PTnIO1~PTnIO0 bits in the STMnC1 or PTMnC1 register
respectively. There is another capture input, PTCKn, for PTMn capture input mode, which can be
used as the external trigger input source except the PTPnI pin.
The TMs each have one output pin, xTPn. The TM output pin can be selected using the
corresponding pin-shared function selection bits described in the Pin-shared Function section. When
the TM is in the Compare Match Output Mode, these pins can be controlled by the TM to switch to
a high or low level or to toggle when a compare match situation occurs. The external xTPn output
pin is also the pin where the TM generates the PWM output waveform. As the TM output pins are
pin-shared with other functions, the TM output function must first be setup using relevant pin-shared
function selection register. Note that there is no relevant input function selection register, IFSn, to
select the input signal source for the PTCK4~PTCK7 and PTP4I~PTP7I pins in the HT67F2350
device.
Device
HT67F2350
HT67F2360
HT67F2370
HT67F2390
Rev. 1.60
Advanced A/D Flash MCU with LCD & EEPROM
STM
Input
Output
STCK0, STP0I
STP0
STCK1, STP1I
STP1
STCK2, STP2I
STP2
TM External Pins
134
HT67F2350/HT67F2360
HT67F2370/HT67F2390
PTM
Input
Output
PTP0
PTCK0, PTP0I
PTP1
PTCK1, PTP1I
PTP2
PTCK2, PTP2I
PTCK3, PTP3I
PTP3
PTP4
PTCK4, PTP4I
PTP5
PTCK5, PTP5I
PTCK6, PTP6I
PTP6
PTCK7, PTP7I
PTP7
May 16, 2019

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the HT67F2350 and is the answer not in the manual?

This manual is also suitable for:

Ht67f2360Ht67f2370Ht67f2390

Table of Contents