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

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 412
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 156
Rev.2.10 Apr 14, 2006 page 133 of 378
REJ09B0124-0210
M16C/6N Group (M16C/6NK, M16C/6NM) 13. Timers
Item Specification
Count source f1, f2, f8, f32, fC32
Count operation Down-count
When the timer underflows, it reloads the reload register contents and
continues counting
Divide ratio 1/(n+1) n: set value of the TBi register 0000h to FFFFh
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 generation timing
Timer underflow
TBiIN pin function I/O port
Read from timer Count value can be read by reading the TBi register
Write to timer When not counting and until the 1st count source is input after counting start
Value written to the TBi register is written to both reload register and counter
When counting (after 1st count source input)
Value written to the TBi register is written to only reload register
(Transferred to counter when reloaded next)
13.2.1 Timer Mode
In timer mode, the timer counts a count source generated internally.
Table 13.6 lists the Timer Mode Specifications. Figure 13.18 shows Registers TB0MR to TB5MR in Timer Mode.
Table 13.6 Timer Mode Specifications
Symbol After Reset
TB0MR to TB2MR 00XX0000b
TB3MR to TB5MR 00XX0000b
Bit Name Function
Bit Symbol
RW
b7 b6 b5 b4 b3 b2 b1 b0
Operating mode select bits
0 0 : Timer mode
b1 b0
TMOD1
TMOD0
MR0
Has no effect in timer mode
Can be set to 0 or 1
MR2
MR1
MR3
0 0 : f1 or f2
(1)
0 1 : f8
1 0 : f32
1 1 : fC32
TCK1
TCK0
Count source select bits
00
Registers TB0MR and TB3MR
Set to 0 in timer mode
b7 b6
RW
RW
RW
RW
RW
-
RW
RW
RO
Registers TB1MR, TB2MR, TB4MR, and TB5MR
Nothing is assigned. If necessary, set to 0.
When read, the content is undefined.
If necessary, set to 0 in timer mode.
When read in timer mode, the content is undefined.
Address
039Bh to 039Dh
01DBh to 01DDh
Timer Bi Mode Register (i = 0 to 5)
NOTE:
1. Selected by the PCLK0 bit in the PCLKR register.
i = 0 to 5
NOTE:
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.
Figure 13.18 Registers TB0MR to TB5MR in Timer Mode
Vista de pagina 156
1 2 ... 152 153 154 155 156 157 158 159 160 161 162 ... 411 412

Comentarios a estos manuales

Sin comentarios