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

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
User’s Manual
ADC_MUX_EXTERNAL1.c
tine for designs with multiple external A/D channels. This sample program will also
read and display the voltage of the external A/D channel that is located on pin 7 of
header J3 on the PowerCore Prototyping Board.
Since there is only one A/D converter channel on the Prototyping Board, the MUX
control is simulated by using LED DS5 on the Prototyping Board, which is controlled
by PD5.
The following steps explain how to implement round-robin MUX control.
In order to run this sample program, you will need a separate power supply. Connect
the positive lead from the power supply to the A/D channel input located on pin 7 of
header J3 on the Prototyping Board. Connect the negative lead from the power supply
to the GND located on pin 8 of J3 on the Prototyping Board.
1. Define the function prototype.
2. Define ADC_MUX_CNTRL as follows to call the adc_mux routine.
3. Define the number of A/D channels. Change the default from 1 to the number of A/D channels in
4. Create the adc_mux assembly routine as follows.
5. Add I/O initialization code at the beginning of your application program for the port pins used for
void adc_mux(void);
#define ADC_MUX_CNTRL call adc_mux
#define MAX_ADCHANNELS <Number Channels>
#asm root nodebug
adc_mux::
// Insert Mux control code
ret
#endasm
This routine will be called automatically by the low-level A/D converter driver.
LED = OFF = A/D channel 0
LED = ON = A/D channel 1.
your design.
MUX control.
—Demonstrates how to enable the A/D interrupt MUX rou-
19

Related parts for 101-1017