Renesas M16C/6NK Informações Técnicas Página 146

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 412
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 145
Rev.2.10 Apr 14, 2006 page 122 of 378
REJ09B0124-0210
M16C/6N Group (M16C/6NK, M16C/6NM) 13. Timers
Item Specification
Count source Two-phase pulse signals input to TAiIN or TAiOUT pins
Count operation Up-count or down-count can be selected by two-phase pulse signal
When the timer overflows or underflows, it reloads the reload register
contents and continues counting. When operating in free-running mode,
the timer continues counting without reloading.
Divide ratio 1/ (FFFFh - n + 1) for up-count
1/ (n + 1) for down-count n : set value of the TAi register 0000h to FFFFh
Count start condition Set the TAiS bit in the TABSR register to 1 (count starts)
Count stop condition Set the TAiS bit to 0 (count stops)
Interrupt request generation timing
Timer overflow or underflow
TAiIN pin function Two-phase pulse input
TAiOUT pin function Two-phase pulse input
Read from timer Count value can be read by reading the TAi register
Write to timer When not counting and until the 1st count source is input after counting start
Value written to TAi register is written to both reload register and counter
When counting (after 1st count source input)
Value written to TAi register is written to reload register
(Transferred to counter when reloaded next)
Select function
(1)
Normal processing operation (timers A2 and A3)
The timer counts up rising edges or counts down falling edges on TAjIN
pin when input signals on TAjOUT pin is H.
Table 13.3
Event Counter Mode Specifications (when using two-phase pulse signal processing with timers A2, A3, and A4)
Counter initialization by Z-phase input (timer A3)
The timer count value is initialized to 0 by Z-phase input.
Up-
count
Up-
count
Up-
count
Down-
count
Down-
count
Down-
count
TAjOUT
TAjIN
Count up all edges
Count up all edges
Count down all edges
Count down all edges
TAkOUT
TAkIN
Multiply-by-4 processing operation (timers A3 and A4)
If the phase relationship is such that TAkIN pin goes H when the input
signal on TAkOUT pin is H, the timer counts up rising and falling edges
on pins TAkOUT and TAkIN. If the phase relationship is such that TAkIN
pin goes L when the input signal on TAkOUT pin is H, the timer counts
down rising and falling edges on pins TAkOUT and TAkIN.
i = 2 to 4
j = 2, 3
k = 3, 4
NOTE:
1. Only timer A3 is selectable. Timer A2 is fixed to normal processing operation, and timer A4 is fixed to
multiply-by-4 processing operation.
Vista de página 145
1 2 ... 141 142 143 144 145 146 147 148 149 150 151 ... 411 412

Comentários a estes Manuais

Sem comentários