DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

MC80F0804D View Datasheet(PDF) - Unspecified

Part Name
Description
Manufacturer
MC80F0804D
Unspecified
Unspecified 
MC80F0804D Datasheet PDF : 120 Pages
First Prev 51 52 53 54 55 56 57 58 59 60 Next Last
MC80F0704/0708/0804/0808
13.1 8-bit Timer / Counter Mode
The MC80F0704/0708/0804/0808 has four 8-bit Timer/
Counters, Timer 0, Timer 1, Timer 2, Timer 3. The Timer 0, Tim-
er 1 are shown in Figure 13-3 and Timer 2, Timer 3 are shown in
Figure 13-4 .
The “timer” or “counter” function is selected by control registers
TM0, TM1, TM2, TM3 as shown in Figure 13-1 . To use as an 8-
bit timer/counter mode, bit CAP0, CAP1, CAP2, or CAP3 of
TMx should be cleared to “0” and 16BIT and PWM1E or
PWM3E of TM1 or TM3 should be cleared to "0" (Figure 13-3 ).
These timers have each 8-bit count register and data register. The
count register is increased by every internal or external clock in-
put. The internal clock has a prescaler divide ratio option of 1, 2,
4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048 or external clock (se-
lected by control bits TxCK0, TxCK1, TxCK2 of register TMx).
TM0
TM1
7
6
5
4
3
2
1
0
-
- CAP0 T0CK2 TB0TCCKL1 T0CK0 T0CN T0ST
-
-
0
X
X
X
X
X
ADDRESS: 0D0H
INITIAL VALUE: --00 0000B
X means don’t care
7
6
5
4
3
2
1
0
POL 16BIT PWM1E CAP1 TB1TCCKL1 T1CK0 T1CN T1ST
X0
0
0
X
X
X
X
ADDRESS: 0D2H
INITIAL VALUE: 00H
X means don’t care
EC0 PIN
XIN PIN
EDGE
DETECTOR
T0CK[2:0]
111
÷ 2 000
÷4
001
÷8
010
÷ 32 011
÷ 128
100
÷ 512 101
÷ 2048 110
MUX
T1CK[1:0]
11
÷1
00
÷2
01
÷ 8 10
MUX
T0CN
TIMER 0
T0ST
0: Stop
1: Clear and start
T0 (8-bit)
clear
Comparator
TDR0 (8-bit)
T0IF
TIMER 0
INTERRUPT
F/F
R05 / T0O
T1CN
TIMER 1
T1ST
0: Stop
1: Clear and start
T1 (8-bit)
clear
Comparator
TDR1 (8-bit)
T1IF
TIMER 1
INTERRUPT
Figure 13-3 8-bit Timer/Counter 0, 1
October 31, 2011 Ver 1.03
53

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]