User`s manual
User’s Manual 41
5.2.6 Analog Inputs
Use this function to configure the A/D converter. This function will address the A/D converter 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.
unsigned int anaInConfig(unsigned int
instructionbyte, unsigned int cmd, long baud);
ADS7870 Signal ADS7870 State RCM3400 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
PIO0 Input Pulled down
PIO1 Input Pulled down
PIO2 Input Pulled down
PIO3 Input Pulled down
CONVERT Input Pulled down
BUSY Output PD1 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 PD2 pulled up; active-low enables serial interface
BUFIN Input Pulled down; reference buffer amplifier
VREF Output Connected to BUFIN
BUFOUT Output Pulled down