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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 412
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 159
Rev.2.10 Apr 14, 2006 page 136 of 378
REJ09B0124-0210
M16C/6N Group (M16C/6NK, M16C/6NM) 13. Timers
Figure 13.20
Registers TB0MR to TB5MR in Pulse Period and Pulse Width Measurement Mode
Timer Bi Mode Register (i = 0 to 5)
Bit NameBit Symbol RW
b7 b6 b5 b4 b3 b2 b1 b0
Operating mode
select bits
1 0 : Pulse period / pulse width measurement mode
b1 b0
TMOD1
TMOD0
MR0
Measurement mode
select bits
MR2
MR1
MR3
TCK1
TCK0
01
0 0 : Pulse period measurement
(Measurement between a falling edge and the
next falling edge of measured pulse)
0 1 : Pulse period measurement
(Measurement between a rising edge and the next
rising edge of measured pulse)
1 0 : Pulse width measurement
(Measurement between a falling edge and the
next rising edge of measured pulse and between
a rising edge and the next falling edge)
1 1 : Do not set a value
Function
b3 b2
Count source
select bits
Timer Bi overflow
flag
(1)
0 : Timer did not overflow
1 : Timer has overflowed
0 0 : f1 or f2
(2)
0 1 : f8
1 0 : f32
1 1 : fC32
b7 b6
RW
RW
RW
RW
RW
-
RW
RW
RO
Registers TB0MR and TB3MR
Set to 0 in pulse period and pulse width measurement mode
Registers TB1MR, TB2MR, TB4MR, and TB5MR
Nothing is assigned. If necessary, set to 0.
When read, the content is undefined.
NOTES:
1. This flag is undefined after reset. When the TBiS bit = 1 (count starts), 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 (overflow). The MR3 bit cannot be set to 1 in a program.
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. Selected by the PCLK0 bit in the PCLKR register.
After Reset
TB0MR to TB2MR 00XX0000b
TB3MR to TB5MR 00XX0000b
Address
039Bh to 039Dh
01DBh to 01DDh
Symbol
Vista de página 159
1 2 ... 155 156 157 158 159 160 161 162 163 164 165 ... 411 412

Comentários a estes Manuais

Sem comentários