Laird WB45NBT
Reference Guide
Embedded Wireless Solutions Support Center:
http://ews-support.lairdtech.com
www.lairdtech.com/wi-fi
29
© Copyright 2016 Laird. All Rights Reserved
Americas: +1-800-492-2320
Europe: +44-1628-858-940
Hong Kong: +852 2923 0600
# echo 'out' > pioC11/direction
set pin value
Must be first set as output.
# echo '1' > pioC11/value
# echo '0' > pioC11/value
set SW1/IRQ as GPIO interrupt
# echo 50 > /sys/class/gpio/export
# echo 'in' > /sys/class/gpio/pioB18/direction
# echo 'both' > /sys/class/gpio/pioB18/edge
# cat /proc/interrupts
Important: Because the GPIOs on port C are currently set as 1.8 V logic, when working with them as inputs, tie
them high or low to the 1.8 V rail.
Analog to Digital Converter
Hardware
4-channel Analog to Digital Converter (ADC)
10-bit 312 K samples/sec. Successive Approximation Register ADC
-2/+2 LSB Integral Non Linearity, -1/+1 LSB Differential Non Linearity
Individual enable and disable of each channel
External voltage reference for better accuracy on low voltage inputs
Multiple trigger source
–
Hardware or software trigger
–
External trigger pin
–
Timer Counter 0 to 2 outputs
TIOA0 to TIOA2 trigger
Sleep Mode and conversion sequencer
–
Automatic wakeup on trigger and back to sleep mode after
conversions of all enabled channels
Four analog inputs shared with digital signals
Note: ADC3 is located on pin 9 of the WB45NBT connector.
Software
Information about the ADC can be accessed at the following link:
http://www.at91.com/linux4sam/bin/view/Linux4SAM/IioAdcDriver
Accessing the ADC in Linux
If the driver is not included in the kernel, load it.
# modprobe at91_adc
The driver creates entries in the following: