Rev. 1.10
92
October 23, 2020
Rev. 1.10
93
October 23, 2020
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
TM Interrupts
The Compact Type, Standard Type and Periodic Type TMs each have two internal interrupts, 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 xTCK and xTPI
respectively. Note that for the CTM there is no CTPI input pin. 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.
For STM and PTM, another 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.
The TMs each has one output pin, xTP. When the TM is in the Compare Match Output Mode, the
pin can be controlled by the TM to switch to a high or low level or to toggle when a compare match
situation occurs. The 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 input and output
functions must first be setup using the relevant pin-shared function selection bits described in the
Pin-shared Function section. 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
STCK, STPI
STP
PTCK, PTPI
PTP
TM External Pins
CTM
CTCK
CTP
CCR output
Clock input
CTM Function Pin Block Diagram