Digi NS7520 DJ Equipment User Manual


 
www.digi.com
      77
GEN Module
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.
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
13121110987654321015 14
31 29 28 27 26 25 24 23 22 21 20 19 18 17 1630
CMODE CDIR
CSF CDATA