PCI-1202/1602/180x Series Card
Multi-Function Boards
User Manual/ Ver. 4.8/ Mar. 2015/ PMH-0014-48/ Page: 63
6.5.1.3 Bit12-Bit10: Command Sets of MagicScan Controller
The command sets of MagicScan controller are given as follows:
Command
[B12, B11, B10]
Descriptions
Reset
[0 0 0]
Reset the MagicScan controller.
The software driver must send this command once after
power-on.
Set channel/gain
[0 0 1]
Set the channel/gain value of the
fixed-channel mode.
It will
not affect the scan queue.
Add to 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.)
Start MagicScan
[1 0 1]
Start the MagicScan controller
Stop MagicScan
[0 1 0]
Stop the MagicScan controller.
Get ODM number
[1 1 0]
Get the ODM number of the PEX-1202 and
PCI-1202/1602/1800/1802 series card.
The demo program to reset the MagicScan controller is given as follows:
wVal=pic_control(0xC000);
/* 11?0 00?? ???? ???? cmd_000=reset */
The demo program to clear MagicScan queue is given as follows:
P180x_ClearScan(…) is designed for PCI-1800/1802 series
P1202_ClearScan(…) is designed for PEX-1202/PCI-1202 series
P1602_ClearScan(…) is designed for PCI-1602 series
WORD
P180X_ClearScan
(void)
{
WORD i;
for(i=0; i<32; i++) wMagicScanSave[i]=0;
disable_timer0();
disable_timer1();
return(pic_control(0xC000));
/* 11?0 00?? ???? ???? cmd_000=reset */
}