Port Direction Register (Ddr0 To Ddrb) - Fujitsu F2MC-16LX Hardware Manual

16-bit microcontroller mb90330 series
Hide thumbs Also See for F2MC-16LX:
Table of Contents

Advertisement

8.2.2

Port Direction Register (DDR0 to DDRB)

The configuration and functions of the port direction register are described.
Port Direction Register (DDR0 to DDRB)
Figure 8.2-2 shows the list of the port direction register (DDR0 to DDRB).
DDR0
000010
Address :
DDR1
000011
Address :
DDR2
000012
Address :
DDR3
000013
Address :
DDR4
000014
Address :
DDR5
000015
Address :
DDR6
000016
Address :
DDR7
000017
Address :
DDR8
000018
Address :
DDR9
000019
Address :
DDRA
00001A
Address :
DDRB
00000D
Address :
When each terminal functions as a port
When each terminal functions as a port, controls the corresponding each terminal as follows.
• 0: Input mode.
• 1: Output mode reset sets to "0".
Note:
When accessing the DDR0 to DDRB registers by using the instruction of the read modify write
system (instructions such as bit set) is made, the bit targeted by an instruction becomes the defined
value, while the content of the output register set with the other bit changes to the input value to the
pin. Therefore, be sure to write an expected value into PDR firstly, and then set DDR, and finally
change to the output when changing the input pin to the output pin is made.
Figure 8.2-2 List of Port Direction Register (DDR0 to DDRB)
7
6
5
D07
D06
D05
H
15
14
13
D17
D16
D15
H
7
6
5
D27
D26
D25
H
15
14
13
D37
D36
D35
H
7
6
5
D47
D46
D45
H
15
14
13
D57
D56
D55
H
7
6
5
D67
D66
D65
H
15
14
13
D77
D76 D75
H
7
6
5
D87
D86
D85
H
15
14
13
D96
D95
H
7
6
5
DA7
DA6 DA5
H
15
14
13
DB6 DB5
H
4
3
2
1
D04 D03
D02
D01
12
11
10
9
D14
D13
D12
D11
4
3
2
1
D24
D23
D22
D21
12
11
10
9
D34
D33
D32 D31
4
3
2
1
D44
D43
D42
D41
12
11
10
9
D54
D53
D52
D51
4
3
2
1
D64
D63
D62
D61
12
11
10
9
D74
D73
D72
D71
4
3
2
1
D84
D83
D82
D81
12
11
10
9
D94
D93
D92
D91
4
3
2
1
DA4
DA3 DA2 DA1
12
11
10
9
DB4
DB3
DB2
DB1 DB0
CHAPTER 8 I/O PORT
0
Initial value
Access
00000000
R/W
D00
B
8
R/W
D10
00000000
B
0
D20
00000000
R/W
B
8
00000000
R/W
D30
B
0
00000000
D40
R/W
B
8
00000000
R/W
D50
B
0
D60
R/W
00000000
B
8
R/W
D70
00000000
B
0
R/W
D80
00000000
B
8
D90
R/W
-0000000
B
0
R/W
DA0
00000000
B
8
R/W
-0000000
B
201

Advertisement

Table of Contents
loading

Table of Contents