Programming Considerations; General Purpose I/O (Gpio) Control; Leds - Digi Connect SP Hardware Reference Manual

Hide thumbs Also See for Connect SP:
Table of Contents

Advertisement

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
Reference manual

LEDs

The device server has two types of LEDs:
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
n
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:
CMODE = 0
n
CDIR = 1
n
CSF = 0
n
The device server has three LEDs:
The green LED is wired directly to the Ethernet hardware and indicates that a link has been
n
established.
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
n
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
for more details.
NS7520 Hardware
13

Advertisement

Table of Contents
loading

This manual is also suitable for:

Connect wi-sp

Table of Contents