54 RabbitCore RCM42005.2.8 Analog Inputs (RCM4200 only)The function calls used with the Prototyping Board features and the A/D converter on theRCM4200 model are in the Dynamic C LIB\RCM4xxx\ADC_ADS7870.LIB library.Dynamic C v. 10.07 or later is required to use the A/D converter function calls.anaInConfigunsigned int anaInConfig(unsigned int instructionbyte,unsigned int cmd, long brate);DESCRIPTIONUse this function to configure the A/D converter. This function will address the A/Dconverter chip in Register Mode only, and will return an error if you try the DirectMode. Appendix B.4.3 provides additional addressing and command information.ADS7870 Signal ADS7870 State RCM4200 Function/StateLN0 Input AIN0LN1 Input AIN1LN2 Input AIN2LN3 Input AIN3LN4 Input AIN4LN5 Input AIN5LN6 Input AIN6LN7 Input AIN7/RESET Input Board reset deviceRISE/FALL Input Pulled up for SCLK active on rising edgeI/O0 Input Pulled downI/O1 Input Pulled downI/O2 Input Pulled downI/O3 Input Pulled downCONVERT Input Pulled down when not drivenBUSY Output PE0 pulled down; logic high state converter is busyCCLKCNTRL Input Pulled down; 0 state sets CCLK as inputCCLK Input Pulled down; external conversion clockSCLK Input PB0; serial data transfer clockSDI Input PC4; 3-wire mode for serial data inputSDO Output PC5; serial data output /CS driven/CS Input BUFEN pulled up; active-low enables serial interfaceBUFIN Input Driven by VREFVREF Output Connected to BUFIN and BUFOUTBUFOUT Output Driven by VREF