Periodic Type Tm - Ptm - Holtek BS83B24C Manual

Touch flash mcu
Table of Contents

Advertisement

BS83B24C/BS83C40C
Touch Flash MCU
Periodic Type TM – PTM
The Periodic Type TM contains five operating modes, which are Compare Match Output, Timer/
Event Counter, Capture Input, Single Pulse Output and PWM Output modes. The Periodic Type TM
can also be controlled with two external input pins and can drive two external output pin.
10-�it Compa�ato� P
f
/4
000
SYS
f
001
SYS
f
/16
010
H
f
/64
011
10-�it Co�nt-�p Co�nte�
H
f
100
SUB
f
101
PTON
SUB
PTPAU
110
PTCK
111
10-�it Compa�ato� A
PTCK�~PTCK0
Note: The PTPB is the inverted output of the PTP pin.
Periodic TM Operation
The size of Periodic Type TM is 10-bit wide and its core is a 10-bit count-up counter which is
driven by a user selectable internal or external clock source. There are also two internal comparators
with the names, Comparator A and Comparator P. These comparators will compare the value in the
counter with CCRP and CCRA registers. The CCRP and CCRA comparators are 10-bit wide whose
value is respectively compared with all counter bits.
The only way of changing the value of the 10-bit counter using the application program is to
clear the counter by changing the PTON bit from low to high. The counter will also be cleared
automatically by a counter overflow or a compare match with one of its associated comparators.
When these conditions occur, a PTM interrupt signal will also usually be generated. The Periodic
Type TM can operate in a number of different operational modes, can be driven by different clock
sources including an input pin and can also control the output pins. All operating setup conditions
are selected using relevant internal registers.
Rev. 1.00
CCRP
Compa�ato� P Match
�0~�9
Co�nte� Clea�
0
1
PTCCLR
�0~�9
Compa�ato� A Match
PTIO1~PTIO0
Edge
CCRA
Detecto�
10-bit Periodic Type TM Block Diagram
�9
PTMP� Inte���pt
PTOC
O�tp�t
Pola�it�
Pin
Cont�ol
Cont�ol
Cont�ol
PTM1~PTM0
PTPOL
PxSn
PTIO1~PTIO0
PTMA� Inte���pt
PTCAPTS
PTPI
0
1
�e���a�� 0�� �01�
PTP
PTPB

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