Tm Inte; Tm Exte�Nal Pins - Holtek BS83B24C Manual

Touch flash mcu
Table of Contents

Advertisement

BS83B24C/BS83C40C
Touch Flash MCU
TM Interrupts
The Compact 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 an TM input pin, with the label xTCK. 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
PTCK pin is also used as the external trigger input pin in single pulse output mode for the PTM.
The Periodic type TM has another input pin, PTPI, which 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 PTIO1~PTIO0 bits in the PTMC1 register.
The TMs each has two output pins, xTP and xTPB. 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 xTP and xTPB
output pins are also the pins where the TM generates the PWM output waveform.
As the TM input/output pins are pin-shared with other functions, the TM input/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.
Device
BS�3B�4C
BS�3C40C
Rev. 1.00
CTM
Input
Output
CTCK
CTP� CTPB
TM External Pins
Clock inp�t
CTM
CCR o�tp�t
CTM Function Pin Block Diagram
Clock inp�t
Capt��e inp�t
PTM
CCR o�tp�t
PTM Function Pin Block Diagram
��
PTM
Input
Output
PTCK� PTPI
PTP� PTPB
PTCK� PTPI
PTP� PTPB
CTCK
CTP
CTPB
PTCK
PTPI
PTP
PTPB
�e���a�� 0�� �01�

Advertisement

Table of Contents
loading
Need help?

Need help?

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

This manual is also suitable for:

Bs83c40c

Table of Contents