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

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

Advertisement

3.6.1.7 Command Sets of MagicScan Controller
The command sets of MagicScan controller are given as follows:
Command
Reset
Set channel/gain
Add to scan queue
Start MagicScan
Stop MagicScan
Get ODM number
The demo program to reset the MagicScan controller is given as follows:
wVal=pic_control(0xC000);
The demo program to clear MagicScan queue is given as follows:
WORD P180X_ClearScan(void)
{
WORD i;
for(i=0; i<32; i++) wMagicScanSave[i]=0;
disable_timer0();
disable_timer1();
return(pic_control(0xC000));
}
P1202_ClearScan(...) is designed for PCI-1202H/L/HU/LU
P1602_ClearScan(...) is designed for PCI-1602 and PCI-1602F
PCI-1202/1602/1800/1802 Hardware User's Manual
[B12~B10]
[0 0 0]
Reset the MagicScan controller. The software driver
must send this command once after power-on.
[0 0 1]
Set the channel/gain value of the fixed-channel mode. It
will not affect the scan queue.
[1 0 0]
Add the channel/gain code to the scan queue.
(At most 48 scan-channels can be stored in the
MagicScan controller.)
[1 0 1]
Start the MagicScan controller
[0 1 0]
Stop the MagicScan controller.
[1 1 0]
Get the ODM number of the PCI-1202/1602/1800/1802.
/* 11?0 00?? ???? ???? cmd_000=reset */
/* 11?0 00?? ???? ???? cmd_000=reset */
Descriptions
(Ver.4.2, Dec/2009, PMH-014-42)---- 44

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents