Motorola MCF5281 ユーザーズマニュアル

ページ / 816
26-8
MCF5282 User’s Manual
MOTOROLA
 
Memory Map/Register Definition  
26.3.2 Register Descriptions
26.3.2.1 Port Output Data Registers (PORTn)
The PORTn registers store the data to be driven on the corresponding port n pins when the
pins are configured for digital output.
Most PORTn registers have a full 8-bit implementation, as shown in Figure 26-2. The
remaining PORTn registers use fewer than eight bits. Their bit definitions are shown in
Figure 26-3, Figure 26-4, and Figure 26-5.
At reset, all bits in the PORTn registers are set.
Reading a PORTn register returns the current values in the register, not the port n pin
values.
PORTn bits can be set by setting the PORTn register, or by setting the corresponding bits
in the PORTnP/SETn register. They can be cleared by clearing the PORTn register, or by
clearing the corresponding bits in the CLRn register.
7
6
5
4
3
2
1
0
Field
PORTn7
PORTn6
PORTn5
PORTn4
PORTn3
PORTn2
PORTn1
PORTn0
Reset
1111_1111
R/W:
R/W
Address
IPSBAR + 0x10_0000 (PORTA), 0x10_0001 (PORTB), 0x10_0002 (PORTC), 0x10_0003 (PORTD), 
0x10_0004 (PORTE), 0x10_0005 (PORTF), 0x10_0006 (PORTG), 0x10_0007 (PORTH), 0x10_0008 
(PORTJ), 0x10_0009 (PORTDD), 0x10_000A (PORTEH), 0x10_000B (PORTEL)
Figure 26-2. Port Output Data Registers (8-bit)
7
6
5
4
3
2
1
0
Field
PORTn6
PORTn5
PORTn4
PORTn3
PORTn2
PORTn1
PORTn0
Reset
0011_1111
R/W:
R
R/W
Address
IPSBAR + 0x10_000D (PORTQS)
Figure 26-3. Port Output Data Register (7-bit)
7
6
5
4
3
2
1
0
Field
PORTn5
PORTn4
PORTn3
PORTn2
PORTn1
PORTn0
Reset
0011_1111
R/W:
R
R/W
Address
IPSBAR + 0x10_000C (PORTAS), 0x10_000E (PORTSD)
Figure 26-4. Port Output Data Registers (6-bit)