Renesas M16C/6NK Hardware Manual page 154

16-bit single-chip microcomputer m16c family / m16c/60 series
Table of Contents

Advertisement

Under development
This document is under development and its contents are subject to change.
M16C/6N Group (M16C/6NK, M16C/6NM)
Timer Bi Mode Register (i = 0 to 5)
b7
b6
b5
b4
b3
b2
b1
1
NOTE:
1. This flag is indeterminate after reset. When the TBiS bit = 1 (start counting), 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. The TB0S to TB2S bits are assigned to the bit 5 to bit 7 in the TABSR register, and the TB3S to TB5S bits are assigned
to the bit 5 to bit 7 in the TBSR register.
Figure 13.20 TB0MR to TB5MR Registers in Pulse Period and Pulse Width Measurement Mode
Rev.2.00
Nov 28, 2005
REJ09B0124-0200
Symbol
b0
TB0MR to TB2MR
0
TB3MR to TB5MR
Bit Symbol
Bit Name
TMOD0
Operation Mode
Select Bit
TMOD1
MR0
Measurement Mode
Select Bit
MR1
TB0MR and TB3MR registers
Set to "0" in pulse period and pulse width measurement mode
MR2
TB1MR, TB2MR, TB4MR, TB5MR registers
Nothing is assigned. When write, set to "0".
When read, its content turns out to be indeterminate.
Timer Bi Overflow
MR3
(1)
Flag
TCK0
Count Source
Select Bit
TCK1
page 136 of 378
Address
After Reset
039Bh to 039Dh
00XX0000b
00XX0000b
01DBh to 01DDh
b1 b0
1 0 : Pulse period / pulse width
measurement mode
b3 b2
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
0 : Timer did not overflow
1 : Timer has overflown
b7 b6
0 0 : f1 or f2
0 1 : f8
1 0 : f32
1 1 : fC32
Function
13. Timers
RW
RW
RW
RW
RW
RW
-
RO
RW
RW

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/6nm

Table of Contents