Renesas M16C/6NK Información técnica Pagina 159

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 412
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 158
Rev.2.10 Apr 14, 2006 page 135 of 378
REJ09B0124-0210
M16C/6N Group (M16C/6NK, M16C/6NM) 13. Timers
Item Specification
Count source f1, f2, f8, f32, fC32
Count operation Up-count
Counter value is transferred to reload register at an effective edge of
measurement pulse. The counter value is set to 0000h to continue counting.
Count start condition Set the TBiS bit
(1)
to 1 (count starts)
Count stop condition Set the TBiS bit to 0 (count stops)
Interrupt request When an effective edge of measurement pulse is input
(2)
generation timing Timer overflow. If an overflow occurs, the MR3 bit in the TBiMR register
is set to 1 (overflow) simultaneously. The MR3 bit is set to 0 (no overflow)
by writing to the TBiMR register at the next count timing or later after the
MR3 bit was set to 1. At this time, make sure the TBiS bit is set to 1
(count starts).
TBiIN pin function Measurement pulse input
Read from timer Contents of the reload register (measurement result) can be read by reading
TBi register
(3)
Write to timer Value written to the TBi register is written to neither reload register nor counter
13.2.3 Pulse Period and Pulse Width Measurement Mode
In pulse period and pulse width measurement mode, the timer measures pulse period or pulse width of an
external signal. Table 13.8 lists the Pulse Period and Pulse Width Measurement Mode Specifications.
Figure 13.20 shows Registers TB0MR to TB5MR in Pulse Period and Pulse Width Measurement mode.
Figure 13.21 shows the Operation Timing when Measuring Pulse Period. Figure 13.22 shows the Operation
Timing when Measuring Pulse Width.
Table 13.8 Pulse Period and Pulse Width Measurement Mode Specifications
i = 0 to 5
NOTES:
1.Bits TB0S to TB2S are assigned to bits 5 to 7 in the TABSR register, and bits TB3S to TB5S are
assigned to bits 5 to 7 in the TBSR register.
2. Interrupt request is not generated when the first effective edge is input after the timer started counting.
3. Value read from the TBi register is undefined until the second valid edge is input after the timer starts
counting.
Vista de pagina 158
1 2 ... 154 155 156 157 158 159 160 161 162 163 164 ... 411 412

Comentarios a estos manuales

Sin comentarios