Renesas Single-Chip Microcomputer M37531T-ADS Informacje Techniczne Strona 13

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 57
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 12
Timer A
Mitsubishi microcomputer
s
M16C / 62A Grou
p
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTE
R
2-3
(1) To clear reset, the count start flag is set to 0. Set a value in the timer Ai register, then set the
flag to 1.
(2) Reading the timer Ai register while a count is in progress allows reading, with arbitrary timing,
the value of the counter. Reading the timer Ai register with the reload timing shown in Figure
2.2.29 gets FFFF16 by underflow or 000016 by overflow. Reading the timer Ai register after
setting a value in the timer Ai register with a count halted but before the counter starts count-
ing gets a proper value.
(3) Please note the standards for the differences between the 2 pulses used in the 2-phase pulse
signals input signals to the TAiIN pin and TAiOUT pin (i = 2, 3, 4), as shown in Figure 2.2.30.
(4) When free run type is selected, if count is stopped, set a value in the timer Ai register again.
2.2.14 Precautions for Timer A (event counter mode)
Figure 2.2.30. Standard of 2-phase pulses
210
n
n 1
Counter value
(Hex.)
210
FFFF
Read value
(Hex.)
Reload
Time
n = reload register content
(1) Down count
FFFD
FFFE FFFF
n
n + 1
Counter value
(Hex.)
FFFD FFFE FFFF
0000
n + 1
Read value
(Hex.)
Reload
Time
n = reload register content
(2) Up count
n 1
Figure 2.2.29. Reading timer Ai register
T1
T2 T3
TA2
OUT
TA3
OUT
TA4
OUT
TA2
IN
TA3
IN
TA4
IN
T1
(Min.)
T2, T3
(Min.)
Vcc = 5V, f(X
IN
) = 16MHz
800ns 200ns
T1
(Min.)
T2, T3
(Min.)
Vcc = 3V, f(X
IN
) = 10MHz, one-wai
t
2µs 500ns
Przeglądanie stron 12
1 2 ... 8 9 10 11 12 13 14 15 16 17 18 ... 56 57

Komentarze do niniejszej Instrukcji

Brak uwag