Fujitsu FR60 Hardware Manual page 276

Hide thumbs Also See for FR60:
Table of Contents

Advertisement

CHAPTER 6 8/16-bit Up/Down Counters/Timer and U-Timers
[Bits 1 and 0] UDF1 and UDF0: Up/down flag
These bits indicate the type of a counting operation (up or down) immediately preceding the current
operation. Only reading is allowed. No writing is allowed.
UDF1
0
0
1
1
■ Up/Down Count Register 0/1 (UDCR 0/1)
The bit configuration of the up/down count register 0/1 (UDCR0/1) is shown below.
Address : 0000B2
This register is an 8-bit count register. Up/down counting is performed with an input from internal circuit,
an internal prescaler or an input through the AIN pin or BIN pin. In 16-bit counting mode, this bit operates
as a 16-bit count register.
Values cannot be written to this register directly. To write a value to this register, the RCR must be used.
First write the value to write to this register to the RCR, then set the CTUT bit of the CCRL register to "1".
The value will then be transferred from the RCR to this register (in a reload-operation by software).
In 16-bit mode, perform a 16-bit read operation for this register once.
■ Reload/Compare Register 0/1 (RCR 0/1)
The bit configuration of the reload/compare register 0/1 (RCR0/1) is shown below.
Address : 0000B0
This register is an 8-bit reload/compare register. This register sets the reload value and compare value. The
reload value and compare value are the same. Starting the reload function and compare function enables
counting up or down between 00
down between 0000
Only writing is allowed for this register. This register cannot be read. By setting the CTUT bit of the
CCR0/1 register to "1" while counting is stopped, the value of this register can be transferred to the UDCR
(reloaded by software).
In 16-bit mode (when M16E = 1), write a 16-bit value to this register once.
258
UDF0
0
No input (initial value)
1
Down count
0
Up count
1
Both up and down counting was performed simultaneously.
bit
15
14
D15
D14
H
0000B3
R
R
H
7
6
D07
D06
R
R
bit
15
14
D15
D14
H
0000B1
W
W
H
7
6
D07
D06
W
W
and the value of this register (In 16-bit operation mode: counting up and
H
and the value of this register).
H
Detection edge
13
12
11
10
D13
D12
D11
D10
R
R
R
R
5
4
3
2
D05
D04
D03
D02
R
R
R
R
13
12
11
10
D13
D12
D11
D10
W
W
W
W
5
4
3
2
D05
D04
D03
D02
W
W
W
W
9
8
Initial value
D09
D08
00000000
B
R
R
1
0
Initial value
D01
D00
00000000
B
R
R
9
8
Initial value
D09
D08
00000000
B
W
W
1
0
Initial value
D01
D00
00000000
B
W
W

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb91350a series

Table of Contents