Rev. 1.00
78
September 11, 2018
Rev. 1.00
79
September 11, 2018
HT45F4050
A/D NFC Flash MCU
HT45F4050
A/D NFC Flash MCU
TM External Pins
Each of the TMs, irrespective of what type, has one or two TM input pins, with the label xTCK
and xTPI respectively. The xTM input pin, xTCK, is essentially a clock source for the xTM and is
selected using the xTCK2~xTCK0 bits in the xTMC0 register. This external TM input pin allows
an external clock source to drive the internal TM. The xTCK input pin can be chosen to have either
a rising or falling active edge. The STCK and PTCK pins are also used as the external trigger input
pin in single pulse output mode for the STM and PTM respectively.
The other xTM input pin, STPI or PTPI, 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 STIO1~STIO0 or PTIO1~PTIO0 bits in the STMC1 or PTMC1 register respectively. There is
another capture input, PTCK, for PTM capture input mode, which can be used as the external trigger
input source except the PTPI pin.
The TMs each have two output pins, xTP and xTPB. The xTPB is the inverted signal of the xTP
output. 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 xTP or xTPB output pin is also the pin where the TM generates the PWM output waveform.
As the TM input and output pins are pin-shared with other functions, the TM output function must
first be setup using relevant pin-shared function selection register. The details of the pin-shared
function selection are described in the pin-shared function section.
CTM
STM
PTM
Input
Output
Input
Output
Input
Output
CTCK
CTP, CTPB
STCK, STPI
STP, STPB
PTCK, PTPI
PTP, PTPB
TM External Pins
CTM
CTCK
CTP
CCR output
CTPB
CTM Function Pin Block Diagram
STM
STCK
STP
STPI
CCR capture input
CCR output
STPB
STM Function Pin Block Diagram