ADC_MUX_EXTERNAL2.c —Demonstrates how to implement MUX control to read external A/D " />
參數(shù)資料
型號: 101-1007
廠商: Rabbit Semiconductor
文件頁數(shù): 162/240頁
文件大?。?/td> 0K
描述: MODULE POWERCORE FLEX 3810
標準包裝: 1
模塊/板類型: MPU 核心模塊
適用于相關產(chǎn)品: RCM3810
第1頁第2頁第3頁第4頁第5頁第6頁第7頁第8頁第9頁第10頁第11頁第12頁第13頁第14頁第15頁第16頁第17頁第18頁第19頁第20頁第21頁第22頁第23頁第24頁第25頁第26頁第27頁第28頁第29頁第30頁第31頁第32頁第33頁第34頁第35頁第36頁第37頁第38頁第39頁第40頁第41頁第42頁第43頁第44頁第45頁第46頁第47頁第48頁第49頁第50頁第51頁第52頁第53頁第54頁第55頁第56頁第57頁第58頁第59頁第60頁第61頁第62頁第63頁第64頁第65頁第66頁第67頁第68頁第69頁第70頁第71頁第72頁第73頁第74頁第75頁第76頁第77頁第78頁第79頁第80頁第81頁第82頁第83頁第84頁第85頁第86頁第87頁第88頁第89頁第90頁第91頁第92頁第93頁第94頁第95頁第96頁第97頁第98頁第99頁第100頁第101頁第102頁第103頁第104頁第105頁第106頁第107頁第108頁第109頁第110頁第111頁第112頁第113頁第114頁第115頁第116頁第117頁第118頁第119頁第120頁第121頁第122頁第123頁第124頁第125頁第126頁第127頁第128頁第129頁第130頁第131頁第132頁第133頁第134頁第135頁第136頁第137頁第138頁第139頁第140頁第141頁第142頁第143頁第144頁第145頁第146頁第147頁第148頁第149頁第150頁第151頁第152頁第153頁第154頁第155頁第156頁第157頁第158頁第159頁第160頁第161頁當前第162頁第163頁第164頁第165頁第166頁第167頁第168頁第169頁第170頁第171頁第172頁第173頁第174頁第175頁第176頁第177頁第178頁第179頁第180頁第181頁第182頁第183頁第184頁第185頁第186頁第187頁第188頁第189頁第190頁第191頁第192頁第193頁第194頁第195頁第196頁第197頁第198頁第199頁第200頁第201頁第202頁第203頁第204頁第205頁第206頁第207頁第208頁第209頁第210頁第211頁第212頁第213頁第214頁第215頁第216頁第217頁第218頁第219頁第220頁第221頁第222頁第223頁第224頁第225頁第226頁第227頁第228頁第229頁第230頁第231頁第232頁第233頁第234頁第235頁第236頁第237頁第238頁第239頁第240頁
20
PowerCore FLEX
ADC_MUX_EXTERNAL2.c
—Demonstrates how to implement MUX control to read
external A/D channels randomly in your application program. 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 con-
trol is simulated by using LED DS5 on the Prototyping Board, which is controlled by
PD5.
LED = OFF = A/D channel 0
LED = ON = A/D channel 1.
The following steps explain how to
implement the MUX routine for random A/D channel
selection.
1. Define the number of A/D channels. Change the default from 1 to the number of A/D channels in
your design.
#define MAX_ADCHANNELS <Number Channels>
2. Provide an application MUX function that does the following:
A/D converter channel selection via your hardware MUX circuit.
Change the _adc_mux_channel index to the channel selected.
Add delay for the channel switching settling time.
Set the adc_conversion_done flag to FALSE.
3. Add I/O initialization code at the beginning of your application program for the port pins used for
MUX control.
4. 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 TRUE.
Read the A/D converter.
Repeat the sequence.
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.
ADC_RD_EXTERNAL.c
—Demonstrates how to read and display the voltage of the
external A/D converter located on the Prototyping Board. The voltage is calculated
from coefficients read from the simulated EEPROM in flash memory. The external A/D
channel is located on pin 7 of header J3 on the PowerCore Prototyping Board.
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.
相關PDF資料
PDF描述
101-1028 MODULE RABBITCORE RCM3750
101-1087 MODULE RABBITCORE RCM 3365
1B31AN IC SIGNAL COND STRAIN GAGE 28DIP
1B32AN IC SIGNAL COND HYBRID 28-DIP
1B41BN IC RTD SIGNAL COND HYBRID 38-DIP
相關代理商/技術參數(shù)
參數(shù)描述
101-1007-000 制造商:ITT Interconnect Solutions 功能描述:1011007000 / 101-1007-000 / Circular
101-1008 功能描述:SOFTWARE CD FAT FILE V2 UPGRADE RoHS:否 類別:編程器,開發(fā)系統(tǒng) >> 軟件 系列:- 標準包裝:1 系列:ISE® 設計套件 類型:訂閱 適用于相關產(chǎn)品:Xilinx FPGAs 其它名稱:Q4986209T1081384
101-1009 功能描述:SOFTWARE WEB DNLD FAT V2 UPGRADE RoHS:否 類別:編程器,開發(fā)系統(tǒng) >> 軟件 系列:- 標準包裝:1 系列:ISE® 設計套件 類型:訂閱 適用于相關產(chǎn)品:Xilinx FPGAs 其它名稱:Q4986209T1081384
101-1009-000 制造商:ITT Interconnect Solutions 功能描述:1011009000 / 101-1009-000 / Circular
101-100KX 功能描述:RES 100K OHM 1/4W 0.01% AXIAL 制造商:riedon 系列:100/SM/PC 包裝:散裝 零件狀態(tài):有效 電阻(歐姆):100k 容差:±0.01% 功率(W):0.25W,1/4W 成分:繞線 特性:- 溫度系數(shù):±10ppm/°C 工作溫度:-55°C ~ 145°C 封裝/外殼:軸向 供應商器件封裝:- 大小/尺寸:0.252" 直徑 x 0.500" 長(6.40mm x 12.70mm) 高度:- 端子數(shù):2 標準包裝:25