G E N M o d u l e

PORTC Configuration register

Address: FFB0 0028

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

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

31

30

29

28

27

26

25

24

23

22

21

20

19

18

17

16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CMODE

 

 

 

 

 

 

 

CDIR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CSF

 

 

 

 

 

 

CDATA

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Register bit assignment

Bits

Access

Mnemonic

Reset

Description

 

 

 

 

 

D31:24

R/W

CMODE

‘h10

PORTC mode

 

 

 

 

Configures the individual PORTC pins. Each bit in

 

 

 

 

the CMODE field corresponds to one of the PORTC

 

 

 

 

bits; D31 controls PORTC7, D30 controls

 

 

 

 

PORTC6, and so on.

 

 

 

 

 

D23:16

R/W

CDIR

‘h10

PORTC data direction

 

 

 

 

Configures the individual PORTC pins. Each bit in

 

 

 

 

the CDIR field corresponds to one of the PORTC

 

 

 

 

bits; D23 controls PORTC7, D22 controls

 

 

 

 

PORTC6, and so on.

 

 

 

 

 

D15:08

R/W

CSF

0

PORTC special function

 

 

 

 

Configures the individual PORTC pins. Each bit in

the CSF field correspond to one of the PORTC bits. D15 controls PORTC7, D14 controls PORTC6, and so on.

Table 31: PORTC register bit definition

w w w . d i g i . c o m

7 7

Page 91
Image 91
Digi NS7520 manual Portc Configuration register, Portc register bit definition, Portc mode, Portc data direction