101-1017 Rabbit Semiconductor, 101-1017 Datasheet - Page 67

no-image

101-1017

Manufacturer Part Number
101-1017
Description
KIT DEV POWERCORE 3800 INT'L
Manufacturer
Rabbit Semiconductor
Series
PowerCore FLEXr
Type
MPU Moduler
Datasheet

Specifications of 101-1017

Contents
RabbitCore Module, Dev. Board, AC Adapter, Cable and Dynamic C® CD-Rom
Processor To Be Evaluated
PowerCore 38xx
Interface Type
Ethernet
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, anaInVolts, anaInCalib
The following steps explain how to implement random-channel-selection MUX control.
channel
A value (0–4095) corresponding to the voltage on the analog input channel. A value of
-4096 indicates an overflow or an out-of-range condition.
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>
anaIn (cont’d)
59

Related parts for 101-1017