Analog Inputs (Rcm4200 Only) - Rabbit RabbitCore RCM4200 User Manual

C-programmable analog core module with serial flash and etherne
Table of Contents

Advertisement

5.2.8 Analog Inputs (RCM4200 only)

The function calls used with the Prototyping Board features and the A/D converter on the
RCM4200 model are in the Dynamic C
Dynamic C v. 10.07 or later is required to use the A/D converter function calls.
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
LN0
LN1
LN2
LN3
LN4
LN5
LN6
LN7
/RESET
RISE/FALL
I/O0
I/O1
I/O2
I/O3
CONVERT
BUSY
CCLKCNTRL
CCLK
SCLK
SDI
SDO
/CS
BUFIN
VREF
BUFOUT
54
LIB\RCM4xxx\ADC_ADS7870.LIB
anaInConfig
Input
AIN0
Input
AIN1
Input
AIN2
Input
AIN3
Input
AIN4
Input
AIN5
Input
AIN6
Input
AIN7
Input
Board reset device
Input
Pulled up for SCLK active on rising edge
Input
Pulled down
Input
Pulled down
Input
Pulled down
Input
Pulled down
Input
Pulled down when not driven
Output
PE0 pulled down; logic high state converter is busy
Input
Pulled down; 0 state sets CCLK as input
Input
Pulled down; external conversion clock
Input
PB0; serial data transfer clock
Input
PC4; 3-wire mode for serial data input
Output
PC5; serial data output /CS driven
Input
BUFEN pulled up; active-low enables serial interface
Input
Driven by VREF
Output
Connected to BUFIN and BUFOUT
Output
Driven by VREF
RCM4200 Function/State
RabbitCore RCM4200
library.

Advertisement

Table of Contents
loading

Table of Contents