G E N m o d u l e r e g i s t e r s

PORTA Configuration register

Address: FFB0 0020

The PORTA register configures the PORTA general-purpose input/output (GPIO) pins.

Each of the PORTA GPIO pins can be individually programmed — as general-purpose input or output, or special function input or output — as applicable. Table 29 describes the PORTA register; Table 30 shows the different configurations for each bit.

31

30

29

28

27

26

25

24

23

22

21

20

19

18

17

16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AMODE

 

 

 

 

 

 

 

ADIR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Reserved

 

 

 

 

 

 

ADATA

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Register bit assignment

Bits

Access

Mnemonic

Reset

Description

 

 

 

 

 

D31:24

R/W

AMODE

0

PORTA mode configuration

 

 

 

 

0

Selects GPIO mode

 

 

 

 

1

Selects special function mode

 

 

 

 

Configures the individual PORTA pins. Each bit in

 

 

 

 

the AMODE field corresponds to one of the PORTA

 

 

 

 

bits; D31 controls PORTA7, D30 controls

 

 

 

 

PORTA6, and so on.

 

 

 

 

 

D23:16

R/W

ADIR

0

PORTA data direction

 

 

 

 

0

Selects input mode

 

 

 

 

1

Selects output mode

 

 

 

 

Configures the individual PORTA pins. Each bit in

 

 

 

 

the ADIR field corresponds to one of the PORTA

 

 

 

 

bits; D23 controls PORTA7, D22 controls

 

 

 

 

PORTA6, and so on.

 

 

 

 

 

D15:08

N/A

Reserved

N/A

N/A

Table 29: PORTA register bit definition

7 4

N S 7 5 2 0 H a r d w a r e R e f e r e n c e , R e v . D 0 3 / 2 0 0 6

Page 88
Image 88
Digi NS7520 Porta Configuration register, Porta register bit definition, Porta mode configuration, Porta data direction