139
MC96F6432S
ABOV Semiconductor Co., Ltd.
11.8 Timer 3, 4
11.8.1 Overview
Timer 3 and timer 4 can be used either two 8-bit timer/counter or one 16-bit timer/counter with combine them.Each 8-
bit timer/event counter module has multiplexer, comparator, 8-bit timer data register, 8-bit counter register, control
register and capture data register(T3CNT, T3DR, T3CAPR, T3CR, T4CNT, T4DR, T4CAPR, and T4CR). For PWM, it
has PWM register (T4PPRL. T4PPRH, T4ADRL, T4ADRH, T4BDRL, T4BDRH, T4CDRL, T4CDRH, T4DLYA,
T4DLYB, T4DLYC).
It has five operating modes:
−
8-bit timer/counter mode
−
8-bit capture mode
−
16-bit timer/counter mode
−
16-bit capture mode
−
10-bit PWM mode
The timer/counter 3 and 4can be clocked by an internal or an external clock source (EC3).The clock source is selected
by clock selection logic which is controlled by the clock selection bits (T3CK[2:0], T4CK[3:0]). Also the timer/counter 4
can use more clock sources than timer/counter 3.
−
TIMER 3 clock source: f
X
/2, f
X
/4,f
X
/8,f
X
/32, f
X
/128, f
X
/512, f
X
/2048 and EC3
−
TIMER 4 clock source: f
X
/1, f
X
/2, f
X
/4, f
X
/8, f
X
/16, f
X
/32, f
X
/64, f
X
/128,f
X
/256, f
X
/512, f
X
/1024, f
X
/2048, f
X
/4096,
f
X
/8192, f
X
/16384 and T3 clock
In the capture mode, by EINT0/EINT1, the data is captured into input capture data register (T3CAPR, T4CAPR).
In 8-bit timer/counter 3/4 mode, whenever counter value is equal to T3DR/T4DR, T3O/T4O port toggles. Also In 16-bit
timer/counter 3 mode,
The timer 3 outputs the comparison result between counter and data register through T3O port.The PWM wave form
to PWMAA, PWMAB, PWMBA, PWMBB, PWMCA, PWMCB Port(6-channel) in the PWM mode.
16BIT
T3MS
T4MS
PWM4E
T3CK[2:0]
T4CK[3:0]
Timer 3
Timer 4
0
0
0
0
XXX
XXXX
8-bit Timer/Counter Mode
8-bit Timer/Counter Mode
0
1
1
0
XXX
XXXX
8-bit Capture Mode
8-bit Capture Mode
1
0
0
0
XXX
XXXX
16-bit Timer/Counter Mode
1
1
1
0
XXX
XXXX
16-bit Capture Mode
0
X
X
1
XXX
XXXX
10-bit PWM Mode
Table 11.11
Timer 3, 4 Operating Modes
Summary of Contents for MC96F6432S Series
Page 15: ...15 MC96F6432S ABOV Semiconductor Co Ltd 4 Package Diagram Figure 4 1 44 Pin MQFP Package...
Page 16: ...16 MC96F6432S ABOV Semiconductor Co Ltd Figure 4 2 32 Pin LQFP Package...
Page 17: ...17 MC96F6432S ABOV Semiconductor Co Ltd Figure 4 3 32 Pin SOP Package...
Page 18: ...18 MC96F6432S ABOV Semiconductor Co Ltd Figure 4 4 28 Pin SOP Package...
Page 19: ...19 MC96F6432S ABOV Semiconductor Co Ltd Figure 4 5 28 Pin TSSOP Package...