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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 412
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 160
Rev.2.10 Apr 14, 2006 page 137 of 378
REJ09B0124-0210
M16C/6N Group (M16C/6NK, M16C/6NM) 13. Timers
Figure 13.22 Operation Timing When Measuring Pulse Width
Figure 13.21 Operation Timing When Measuring Pulse Period
Count source
Measurement pulse
TBiS bit
IR bit in
TBiIC register
Timing at which counter
reaches 0000h
"H"
1
Transfer
(undefined value)
"L"
0
0
MR3 bit in
TBiMR register
1
0
i = 0 to 5
NOTES:
1. Counter is initialized at completion of measurement.
2. Timer has overflowed.
3. This timing diagram is for the case where bits MR1 to MR0 in the TBiMR register are 00b (measure the interval
from falling edge to falling edge of the measurement pulse).
(NOTE 1)(NOTE 1)
(NOTE 2)
Transfer
(measured value)
1
Reload register counter
transfer timing
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.
Set to 0 upon accepting an interrupt request or by writing in program
Measurement pulse
"H"
Count source
Timing at which counter
reaches 0000h
1
1
Transfer
(measured value)
Transfer
(measured value)
"L"
0
0
1
0
(NOTE 1)(NOTE 1)(NOTE 1)
Transfer
(measured
value)
(NOTE 1)
(NOTE 2)
Transfer
(undefined
value)
Reload register counter
transfer timing
TBiS bit
Set to 0 upon accepting an interrupt request or by
writing in program
i = 0 to 5
NOTES:
1. Counter is initialized at completion of measurement.
2. Timer has overflowed.
3. This timing diagram is for the case where the MR1 to MR0 bits in the TBiMR register are 10b (measure the
interval from a falling edge to the next rising edge and the interval from a rising edge to the next falling edge
of the measurement pulse).
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.
MR3 bit in
TBiMR register
IR bit in
TBiIC register
Vista de página 160
1 2 ... 156 157 158 159 160 161 162 163 164 165 166 ... 411 412

Comentários a estes Manuais

Sem comentários