Memory Map/Register Definition

26.3.2 Register Descriptions

26.3.2.1Port 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.

Field

Reset

R/W:

Address

7

6

5

4

3

2

1

0

PORTn7

PORTn6

PORTn5

PORTn4

PORTn3

PORTn2

PORTn1

PORTn0

 

 

 

 

 

 

 

 

1111_1111

R/W

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)

Field

Reset

R/W:

Address

Field

Reset

R/W:

Address

7

6

5

4

3

2

1

0

PORTn6 PORTn5 PORTn4 PORTn3 PORTn2 PORTn1 PORTn0

0011_1111

R

R/W

 

 

IPSBAR + 0x10_000D (PORTQS)

Figure 26-3. Port Output Data Register (7-bit)

7

6

5

4

3

2

1

0

PORTn5 PORTn4 PORTn3 PORTn2 PORTn1 PORTn0 0011_1111

R

R/W

 

 

IPSBAR + 0x10_000C (PORTAS), 0x10_000E (PORTSD)

Figure 26-4. Port Output Data Registers (6-bit)

26-8

MCF5282 User’s Manual

MOTOROLA

Page 566
Image 566
Motorola MCF5282, MCF5281 user manual Port Output Data Registers PORTn, Port Output Data Registers 8-bit