GP IO
20
 
Di g i C o n n e c t S P H a r d w a r e R e f e r e n c e
GPIO Registers
Two registers, named PORTA and PORTC, govern the 16 GPIO pins. Each register is
responsible for eight pins, and each GPIO pin uses the following four bits to completely
describe its behavior:
Mode (CMODE)
Direction (CDIR)
Special function (CSF). This is only applicable to PORTC.
Data value
The first three bits describe the functionality of the GPIO pin. The data bit provides the
current value of the pin when read and allows control of the value of an output pin when
written.
In order to configure a pin as either a GPIO input or GPIO output, the corresponding bit
positions in the appropriate register must be configured according to the information in the
following table:
Since each register controls 8 GPIO pins, it is safest to read the full 32 bit register, modify
the bits corresponding to the pin, and then write the full 32 bits back. In this way, the
behavior of other GPIO pins will be preserved.
For more information regarding the format and programming of the GPIO registers, see the
NS7520 Hardware Reference.
GPIO Configuration
Input
Output
   CMODE = 0
   CDIR = 0
   CSF = 0
   CMODE = 0
   CDIR = 1
   CSF = 0
相关PDF资料
DG-ANT-20DB-BG-B ANTENNA 2.4GHZ DIPOLE 2DBI 25PC
DP-2400 ANTEN PREC DIPOLE 2400-2483.5MHZ
DXP18BN5014TL BALUN FILM 0603 870MHZ
ECT300KIT DEVELOPMENT KIT FOR ECT300
EXB-24ABAE2RX ATTENUATOR 10DB 200 OHM 0404 SMD
F3M-S1225 SENSOR COMB 12" WAFER 25 SLOTS
F3M-S825-1 SENSOR COMB 8" WAFER 25 SLOTS
FIREFLY-TX-IPKIT TX BELT CLIP/O-RING TO IP67
相关代理商/技术参数
DC-ANT-E-24DP-10 功能描述:天线 30cm ext cord w/RP-SMA blkhd conn RoHS:否 制造商:Molex 技术类型:Cellular Antenna 频率: 带宽: 尺寸:106.7 mm L x 13 mm W
DC-ANT-E-24DP-25 功能描述:天线 30cm ext cord w/RP-SMA blkhd conn RoHS:否 制造商:Molex 技术类型:Cellular Antenna 频率: 带宽: 尺寸:106.7 mm L x 13 mm W
DC-ANT-E-24DP-50 功能描述:天线 30cm ext cord w/RP-SMA blkhd conn RoHS:否 制造商:Molex 技术类型:Cellular Antenna 频率: 带宽: 尺寸:106.7 mm L x 13 mm W
DC-ANT-E-24DT 功能描述:天线 30cm Extension Cord w/ RP-SMA Blkhd RoHS:否 制造商:Molex 技术类型:Cellular Antenna 频率: 带宽: 尺寸:106.7 mm L x 13 mm W
DC-ANT-E-24DT-10 功能描述:CORD EXT 30CM W/RP-SMA CONN (10) RoHS:是 类别:RF/IF 和 RFID >> RF配件 系列:- 标准包装:1 系列:*
DC-ANT-E-24DT-25 功能描述:CORD EXT 30CM W/RP-SMA CONN (25) RoHS:是 类别:RF/IF 和 RFID >> RF配件 系列:- 标准包装:1 系列:*
DC-ANT-E-24DT-50 功能描述:CORD EXT 30CM W/RP-SMA CONN (50) RoHS:是 类别:RF/IF 和 RFID >> RF配件 系列:- 标准包装:1 系列:*
DCAP1302 制造商:NEARSON 功能描述:RF Connector Antenna Accessory