77
MC95FG308 / MC95FG208
ABOV Semiconductor Co., Ltd.
11.5 Timer/PWM
11.5.1 8-bit Timer/Event Counter 0, 1
11.5.1.1
Overview
Timer 0 and timer 1 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, 8-bit timer data register, 8-bit counter register, mode register, input
capture register, comparator. For PWM, it has PWM register (T1PPR, T1ADR, T1BDR, T1CDR, T1PCR, T1PCR2,
T1PCR3, T1PHR, T1DLYA, T1DLYB, T1DLYC, T1ISR, T1IMSK).
It has seven operating modes:
- 8-bit timer/counter mode
- 8-bit capture mode
- 8-bit compare output mode
- 16-bit timer/counter mode
- 16-bit capture mode
- 16-bit compare output mode
- PWM mode
NOTE)
1. TxDR must be set to higher than 0x03 for guaranteeing operation.
The timer/counter can be clocked by an internal or an external clock source (external EC0). The clock source is
selected by clock select logic which is controlled by the clock select (T0CK[2:0], T1CK[3:0]). Also the timer/PWM/event
counter 1 can use more clock sources than timer/event counter 0.
- TIMER0 clock source: fX/2, 4, 8, 32, 128, 512, 2048, EC0
- TIMER1 clock source: fX/1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, T0CK
In the capture mode, by INT0, INT1, the data is captured into Input Capture Register. The timer 0 outputs the compare
result to T0 port in 8/16-bit mode. Also the timer 1 outputs the result to T1 port in the timer mode and the PWM wave
form to PWMA, PWMAB(bar), PWMB, PWMBB, PWMC, PWMCB Port(6-channel) in the PWM mode.
16BIT
CAP0
CAP1
PWM1E
T0CK[2:0]
T1CK[3:0]
T0/1_PE
Timer 0
Timer 1
0
0
0
0
XXX
XXXX
00
8-bit Timer
8-bit Timer
0
0
1
0
111
XXXX
00
8-bit Event Counter
8-bit Capture
0
1
0
0
XXX
XXXX
01
8-bit Capture
8-bit Compare Output
0
0
0
1
XXX
XXXX
11
8-bit Timer/Counter
10-bit PWM
1
0
0
0
XXX
1111
00
16-bit Timer
1
0
0
0
111
1111
00
16-bit Event Counter
1
1
1
0
XXX
1111
00
16-bit Capture
1
0
0
0
XXX
1111
01
16-bit Compare Output
Table 11.5
Timer 0,1 operating modes
Содержание MC95FG208 Series
Страница 14: ...14 MC95FG308 MC95FG208 ABOV Semiconductor Co Ltd 4 Package Diagram Figure 4 1 32 Pin SOP Package...
Страница 15: ...15 MC95FG308 MC95FG208 ABOV Semiconductor Co Ltd Figure 4 2 32 Pin QFN Package...
Страница 16: ...16 MC95FG308 MC95FG208 ABOV Semiconductor Co Ltd Figure 4 3 32 Pin LQFP Package...
Страница 17: ...17 MC95FG308 MC95FG208 ABOV Semiconductor Co Ltd Figure 4 4 28 Pin SOP Package...
Страница 18: ...18 MC95FG308 MC95FG208 ABOV Semiconductor Co Ltd Figure 4 5 28 Pin SOP Package continue...
Страница 19: ...19 MC95FG308 MC95FG208 ABOV Semiconductor Co Ltd Figure 4 6 28 Pin SOP Package...
Страница 20: ...20 MC95FG308 MC95FG208 ABOV Semiconductor Co Ltd Figure 4 7 28 Pin TSSOP Package...
Страница 21: ...21 MC95FG308 MC95FG208 ABOV Semiconductor Co Ltd Figure 4 8 20 Pin SOP Package...
Страница 22: ...22 MC95FG308 MC95FG208 ABOV Semiconductor Co Ltd Figure 4 9 20 Pin TSSOP Package...
Страница 23: ...23 MC95FG308 MC95FG208 ABOV Semiconductor Co Ltd Figure 4 10 16 Pin SOP Package...
Страница 24: ...24 MC95FG308 MC95FG208 ABOV Semiconductor Co Ltd Figure 4 11 16 Pin TSSOP Package...