Digi NS7520 manual Portc configuration, Cdata, Portc data register

Models: NS7520

1 332
Download 332 pages 47.95 Kb
Page 92
Image 92

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

Bits

Access

Mnemonic

Reset

Description

 

 

 

 

 

D07:00

R/W

CDATA

0

PORTC data register

 

 

 

 

Used when a PORTC bit is configured to operate in

 

 

 

 

GPIO mode.

 

 

 

 

Reading the CDATA field provides the current

 

 

 

 

state of the GPIO signal, regardless of its

 

 

 

 

configuration mode.

 

 

 

 

Writing the CDATA field defines the current

 

 

 

 

state of the GPIO signal when the signal is

 

 

 

 

defined to operate in GPIO output mode.

 

 

 

 

Writing the CDATA field when configured in

 

 

 

 

GPIO input mode or special function mode has

 

 

 

 

no effect.

 

 

 

 

Each bit in the CDATA field corresponds to one of

 

 

 

 

the PORTC bits; D07 controls PORTC7, D06

 

 

 

 

controls PORTC6, and so on.

 

 

 

 

 

Table 31: PORTC register bit definition

PORTC configuration

The CSF, CDIR, and CMODE bits together provide independent configuration of each pin. Each column in this table denotes one of the possible configurations for each bit. If there is no entry in one of the columns (for example, PORTC7>CMODE=1>CDIR=0), the bit cannot be used in that configuration.

PORTC

 

 

CSF=0

 

bit

 

 

 

 

CMODE=0

 

CMODE=1

 

 

 

 

 

 

 

 

 

 

CDIR=0

CDIR=1

CDIR=0

CDIR=1

 

 

 

 

 

PORTC7

GPIO IN

GPIO OUT

 

IRQOUT_

 

 

 

 

 

PORTC6

GPIO IN

GPIO OUT

 

DTR_

 

 

 

 

 

PORTC5

GPIO IN

GPIO OUT

 

RTS_

 

 

 

 

 

PORTC4

GPIO IN

GPIO OUT

RIB_

RESET_OUT_

 

 

 

 

 

PORTC3

GPIO IN

GPIO OUT

 

LEVELIRQ3=CDIR3

 

 

 

 

 

PORTC2

GPIO IN

GPIO OUT

 

LEVELIRQ2=CDIR2

 

 

 

 

 

Table 32: PORTC configuration

7 8

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 92
Image 92
Digi NS7520 manual Portc configuration, Cdata, Portc data register