3.6.1.7 Command Sets of MagicScan Controller
The command sets of MagicScan controller are given as follows:
Command [B12~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 PCI-1202/1602/1800/1802.
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:
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 */
}
z
P1202_ClearScan(…) is designed for PCI-1202H/L/HU/LU
z
P1602_ClearScan(…) is designed for PCI-1602 and PCI-1602F
PCI-1202/1602/1800/1802 Hardware User’s Manual
(
Ver.4.2, Dec/2009, PMH-014-42)---- 44