101-1006 Rabbit Semiconductor, 101-1006 Datasheet - Page 69

no-image

101-1006

Manufacturer Part Number
101-1006
Description
MODULE POWERCORE FLEX 3800
Manufacturer
Rabbit Semiconductor
Datasheet

Specifications of 101-1006

Module/board Type
MPU Core Module
For Use With/related Products
RCM3800
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
PARAMETER
RETURN VALUE
SEE ALSO
User’s Manual
anaInExternalInit, anaIn, anaInCalib
The following steps explain how to implement random-channel-selection MUX control.
channel
-4096 indicates an overflow or an out-of-range condition.
A voltage value corresponding to the voltage on the analog input channel. A value of
1. Set the maximum number of external A/D converter channels:
2. Provide an application function that will do the following:
#define MAX_ADCHANNELS <new value>
• Select the A/D converter channel via the hardware MUX circuit. Be sure to initialize
• Change the _adc_mux_channel index to the channel selected.
• Set the adc_conversion_done flag to FALSE.
• Then call your routine with the A/D converter channel selected.
• Wait in a nonblocking wait routine for the adc_conversion_done flag to become
• Read the A/D converter.
• Repeat the sequence by calling your routine with the A/D converter channel selected.
your I/O before executing the anaInExternalInit and the new MUX function.
TRUE.
the analog input channel (0 to MAX_ADCHANNELS - 1) to read.
The MAX_ADCHANNELS macro is set to a default value of 1,
which can be changed by adding the following line to your
program.
#define MAX_ADCHANNELS <new value>
anaInVolts (cont’d)
61

Related parts for 101-1006