User's Manual

Roving Networks Wifly RN-111B User Guide Version 1.16
www.rovingnetworks.com
support@rovingnetworks.com
Phone 408-395-6539
- 21 -
4.4 Setting PIO directions, Disabling LED drivers
The table below shows the usage of the PIO pins and their default values:
Use the command: s
et sys mask <hex val> to enable or disable certain pins as outputs.
For example, set sys mask 0 will default all pins to INPUT.
Note that PIO 7, and 8 are used internally by the module and cannot be changed.
Setting or clearing bits in these locations will be ignored.
4.5 Alternate IO functions
There are a number of alternate IO functions that can be enabled. These functions override
the default IO function given in section 4.4, and described in the LED table of section 2.3.
If no bits are set for a particular PIO pin, that pin is available to be used as general purpose
input or output, based on the IOMASK setting.
set sys iofunc <value> sets numerous alternate functions. Bit-mapped value.
Bit Function
1 PIO4 - Output. HIGH once associated/authenticated and have IP address.
2 PIO5 - Input. HIGH value triggers TCP connection, LOW value disconnects.
3 PIO6 - Output. HIGH when connected over TCP, LOW when disconnected.
4 PIO4 - (GREEN LED) Normal LED function.
5 PIO5 - (YELLOW LED) Normal LED function.
6 PIO6 - (RED LED). Normal LED function.
7 PIO4 - TBD.
8 PIO5 - (YELLOW LED) Blink/ LOW when RSSI is below threshold (=75dBm).
9 PIO6 - TBD.
PIO State DESCRIPTION
9 input Used for factory reset, and connection control
8,7 NA Not available
6 output RED LED- (Associated, internet OK/ TCP conn )
5 output YELLOW LED – (wifi RX or RSSI )
4 output GREEN LED - (system status /ASSOC-AUTH)
3 output UART RTS
2 input UART CTS
1 input UART RX
0 output UART TX