ADLINK ACL-8112 Series User Manual

Page 76

Advertising
background image

68

• C Language Library

Example:

#include “8112.h”

main()
{
_8112_Initial( CARD_1, A8112B_HG, 0x220 );
/* Assume NoError when Initialize ACL-8112 */

_8112_AD_Input_Mode( DIFFERENTIAL) ;
/* set analog input mode as “differential” mode */


_8112_AD_Set_Range( AD_B_5_V );
printf( "The A/D analog input range is +/- 5V \n" );

_8112_AD_Set_Mode( AD_MODE_6 );
printf( "Now, disable internal trigger.\n" );

/* All A/D conversion will be trigger by internal
timer pacer, and the converted data should be
transfered in the interrupt service routine. ( ISR).
*/

}

Advertising