ICP DAS USA PCI-1202 Series Hardware User Manual page 48

Hide thumbs Also See for PCI-1202 Series:
Table of Contents

Advertisement

The demo program to start MagicScan operation is given as follows:
WORD P180X_StartScan(WORD wSampleRate, WORD wNum)
{
WORD wVal;
WORD wRetVal;
wMagicNum=wNum;
disable_timer0();
wRetVal=pic_control(0xD400); /* 11?1 01?? ???? ???? cmd_101=start scan */
if (wRetVal!=0) return(wVal);
outport(wAddrCtrl,0x2000);
outport(wAddrCtrl,0xA000);
enable_timer0(wSampleRate);
magic_scan();
return(NoError);
}
P1202_StartScan(...) is designed for PCI-1202H/L/HU/LU
P1602_StartScan(...) is designed for PCI-1602 and PCI-1602F
PCI-1202/1602/1800/1802 Hardware User's Manual
/* Disable pacer timer first */
/* start MagicScan controller */
/* Clear FIFO to clear all data */
/* Bit15=0=clear FIFO, Bit13=1=not PIC cmd */
/* Bit15=1=no reset FIFO, BIT13=1=not PIC cmd */
/* Enable pacer timer, sampling rate=8 M/dwSample */
/* Call MagicScan subroutine(DOS) or thread(Windows) */
(Ver.4.2, Dec/2009, PMH-014-42)---- 48

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents