16-Bit Timer Register (Tmr0/Tmr1) - Fujitsu MB90460 Series Hardware Manual

F2mc-16lx 16-bit microcontroller
Table of Contents

Advertisement

12.4.3

16-bit Timer Register (TMR0/TMR1)

The 16-bit timer register (TMR0/TMR1) is always able to read the count value from the
16-bit down counter.
■ 16-bit Timer Register (TMR0/TMR1)
Figure 12.4-4 shows the 16-bit timer registers (TMR0/TMR1).
16-bit Timer Register (Upper)
Address: ch.0 000085
ch.1 000089
Read/write
Initial value
16-bit Timer Register (Lower)
Address: ch.0 000084
ch.1 000088
Read/write
Initial value
The 16-bit timer register is able to read the counter value from the 16-bit down counter.
When counting is enabled (TMCSRL0/TMCSRL1:CNTE = 1) to start counting, the value written to the 16-
bit reload register is loaded into this register, and counting down starts. This register value is stored in the
counter stop status (TMCSRL0/TMCSRL1:CNTE = 0).
Notes:
• This register is able to read the count value even during counting. It should always be read with a
word transfer instruction (MOVW A, 003AH, etc.).
• Although the 16-bit timer register (TMR0/TMR1) is a read-only register, it is allocated to the same
address as the address of the write-only 16-bit reload register (TMRD0/TMRD1). Accordingly,
writing to this register has no effect on the TMR0/TMR1 value, although writing to TMRD0/TMRD1
is done.
Figure 12.4-4 16-bit Timer Register (TMR0/TMR1)
bit
15
14
13
H
D13
D14
D15
H
R
R
R
X
X
X
bit
7
6
5
H
D07
D06
D05
H
R
R
X
X
CHAPTER 12 16-BIT RELOAD TIMER
12
11
10
D12
D11
D10
R
R
R
X
X
X
4
3
2
D04
D03
D02
R
R
R
R
X
X
X
X
9
8
D09
D08
TMR0/TMR1
R
R
X
X
1
0
D01
D00
TMR0/TMR1
R
R
X
X
241

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb90465 series

Table of Contents