Fujitsu MB91460 SERIES FR60 User Manual page 862

32-bit microcontroller
Table of Contents

Advertisement

Chapter 41 Up/Down Counter
4.Register
4.4 UDRC: Up/Down Reload/Compare Register
This register is used to reload a value to Up/Down Counter and for comparison.
This register is also used to write to Up/Down Counter.
• UDRC10 (Up/Down Counter 0/1): Address 0300
• UDRC32 (Up/Down Counter 2/3): Address 0310
Depending on the setting of the 16 bit mode enable bit (CCR.M16E), this register behaves differently.
■ 16 Bit Mode (M16E="1")
In the 16 bit mode, this register functions as 16-bit reload/compare register.
• UDCR10 (Reload compare): Address 00300
• UDCR32 (Reload compare): Address 00310
15
14
D15
D14
0
0
RX, W
RX, W
7
6
D07
D06
0
0
RX, W
RX, W
(For attributes, refer to
• The reload and compare values are same.
When Up/Down Counter counts up, the value in RCR is used as a compare value.
When Up/Down Counter counts down, underflow is generated and the value in RCR is used as a reload
value for reloading.
(Up/Down Counter counts between 0000
In the 16 bit mode, be sure to write by
■ 8 Bit Mode (M16E="0")
In the 8 bit mode, this register functions as 8-bit reload/compare register 0 and 8-bit reload/compare register 1.
• UDCR1 (reload compare 1): Address 00300
• UDCR0 (reload compare 0): Address 00301
• UDCR3 (reload compare 3): Address 00310
• UDCR2 (reload compare 2): Address 00311
7
6
D07
D06
0
0
RX, W
RX, W
(For attributes, refer to
• The reload and compare values are same.
When Up/Down Counter counts up, the value in RCR is used as a compare value.
When Up/Down Counter counts down, underflow is generated and the value in RCR is used as a reload
value for reloading.
(Up/Down Counter counts between 0000
• Perform the following procedure to write to Up/Down Counter.
846
13
12
D13
D12
0
0
RX, W
RX, W
RX, W
5
4
D05
D04
0
0
RX, W
RX, W
RX, W
"Meaning of Bit Attribute Symbols (Page
H
half-word access.
5
4
D05
D04
0
0
RX, W
RX, W
RX, W
"Meaning of Bit Attribute Symbols (Page
H
(Access:
Byte, Half-Word
H
(Access:
Byte, Half-Word
H
(Access: Byte, Half-word)
H
(Access: Byte, Half-word)
H
11
10
D11
D10
D09
0
0
RX, W
RX, W
3
2
D03
D02
D01
0
0
RX, W
RX, W
No.10)".)
and the reload/compare value.)
(Access: Byte, Half-word)
H
(Access: Byte, Half-word)
H
(Access: Byte, Half-word)
H
(Access: Byte, Half-word)
H
3
2
D03
D02
D01
0
0
RX, W
RX, W
No.10)".)
and the reload/compare value.)
)
)
9
8
bit
D08
0
0
Initial value
RX, W
Attribute
1
0
bit
D00
0
0
Initial value
RX, W
Attribute
1
0
bit
D00
0
0
Initial value
RX, W
Attribute

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fr60Mb91460 series

Table of Contents