User`s guide

46 C/C++ Library for DOS
/* Assume NoError when Initialize ACL-8111 */
/* Set to software trigger at first*/
_8111_AD_Set_Mode( IRQ5, AD_MODE_1 );
/* then trigger the AD */
_8111_AD_Soft_Trig();
/* wait for AD data ready then read it */
ErrCode = _8111_AD_Aquire( &ad_data );
if( ErrCode == ERR_NoError )
printf( "The AD value is %d.\n", ad_data );
else
printf( "AD conversion error happen\n" );
}
Also see deme program 'AD_DEMO1.C'
5.13 _8111_CLR_IRQ
@ Description
This function is used to clear interrupt request which requested by
the ACL-8111. If you use interrupt to transfer A/D converted data, you
should use this function to clear interrupt request status, otherwise
no new coming interrupt will be generated.
@ Syntax
int _8111_CLR_IRQ( void )
@ Argument
None
@ Return Code:
ERR_NoError
ERR_BoardNoInit
5.14 _8111_AD_INT_Start
@ Description
The function will perform A/D conversion N times with interrupt data
transfer by using pacer trigger. It takes place in the background
which will not be stopped until the Nth conversion has been
completed or your program execute _8111_AD_INT_Stop() function
to stop the process. After executing this function, it is necessary to