PCI-1202/1602/180x Series Card
Multi-Function Boards
User Manual/ Ver. 4.8/ Mar. 2015/ PMH-0014-48/ Page: 84
Note: The D/A output is floating after first power-on. The D/A output will be enabled after executing D/A
output command. This is the common feature of PEX-1202 and PCI-1202/1602/1800/1802 series.
The sample code for D/A is given as follows:
P180x_Da (…) is designed for PCI-1800/1802 series
P1202_Da (…) is designed for PEX-1202/PCI-1202 series
P1602_Da (…) is designed for PCI-1600 series
WORD
P180X_Da
(WORD wDaChannel, WORD wDaVal)
{
if (wDaChannel==0)
/* channel 0 */
{
outport(wAddrAdda,wDaVal);
return(NoError);
}
else if (wDaChannel==1)
/* channel_1 */
{
outport((wA4),wDaVal);
return(NoError);
}
else return(DaChannelError);
}