![background image](http://html1.mh-extra.com/html/rabbit/rabbitcore-rcm4100/rabbitcore-rcm4100_user-manual_3119422053.webp)
User’s Manual
49
5.2.5 Analog Inputs (RCM4100 only)
The function calls used with the Prototyping Board features and the A/D converter on the
RCM4100 model are in the Dynamic C
LIB\Rabbit4000\RCM4xxx\ADC_ADS7870.LIB
library. Dynamic C v. 10.07 or later is required to use the A/D converter function calls.
anaInConfig
unsigned int anaInConfig(unsigned int instructionbyte,
unsigned int cmd, long brate);
DESCRIPTION
Use this function to configure the A/D converter. This function will address the A/D
converter chip in Register Mode only, and will return an error if you try the Direct
Mode. Appendix B.4.3 provides additional addressing and command information.
ADS7870 Signal
ADS7870 State
RCM4100 Function/State
LN0
Input
AIN0
LN1
Input
AIN1
LN2
Input
AIN2
LN3
Input
AIN3
LN4
Input
AIN4
LN5
Input
AIN5
LN6
Input
AIN6
LN7
Input
AIN7
/RESET
Input
Board reset device
RISE/FALL
Input
Pulled up for SCLK active on rising edge
I/O0
Input
Pulled down
I/O1
Input
Pulled down
I/O2
Input
Pulled down
I/O3
Input
Pulled down
CONVERT
Input
Pulled down when not driven
BUSY
Output
PE0 pulled down; logic high state converter is busy
CCLKCNTRL
Input
Pulled down; 0 state sets CCLK as input
CCLK
Input
Pulled down; external conversion clock
SCLK
Input
PB0; serial data transfer clock
SDI
Input
PC4; 3-wire mode for serial data input
SDO
Output
PC5; serial data output /CS driven
/CS
Input
BUFEN pulled up; active-low enables serial interface
BUFIN
Input
Driven by VREF
VREF
Output
Connected to BUFIN and BUFOUT
BUFOUT
Output
Driven by VREF
Содержание RabbitCore RCM4100
Страница 1: ...RabbitCore RCM4100 C Programmable Core Module User s Manual 019 0153 090508 G...
Страница 18: ...14 RabbitCore RCM4100...
Страница 102: ...98 RabbitCore RCM4100...
Страница 106: ...102 RabbitCore RCM4100...
Страница 110: ...106 RabbitCore RCM4100...
Страница 112: ......