Programming considerations
This topic presents programming considerations for the Digi Connect SP and Digi Connect Wi-SP and
the NS7520 processor on which these products are based.
General Purpose I/O (GPIO) control
General purpose I/O (GPIO) control is available as GPIOxx if using the Digi Connect SP and Digi
Connect Wi-SP with NET+OS firmware. See the NET+OS documentation and the
for more details.
LEDs
The device server has two types of LEDs:
n
LEDs connected directly to GPIO pins on the processor and controlled directly in software
n
LEDs connected to other hardware components, normally the Ethernet hardware, and not
directly programmable by the operating system
The development kit supplies software to control the LEDs. This behavior can often be modified by
manipulating the LED table in the BSP code. In the development kit, see the file gpio.c for details.
As with any GPIO output, the GPIO register must be properly configured in order to assert values on
the pin. The appropriate bits should be configured as:
n
CMODE
= 0
n
CDIR
= 1
n
CSF
= 0
The device server has three LEDs:
n
The
green
LED is wired directly to the Ethernet hardware and indicates that a link has been
established.
n
The
yellow
LED is wired directly to the Ethernet hardware and signals Ethernet activity.
n
The
red
LED is software-programmable. It is wired to processor GPIO register bit PORTC6. The
LED is wired to be active high. The development kit software is implemented by default so that
this LED reflects "power” (and is, therefore, always lit).
Digi Connect SP and Digi Connect Wi-SP Hardware Reference
13