Appendix A
RetVal=inp(0x48d,RetVal);
RetVal=RetVal&0x0F;
outp(0x48d,RetVal);
//Output RetVal to Digital Output
//Set all output to 1
outp(0x48d, 0xF0);//DO0 is bit 4
//DO1
is
bit
5
//DO2
is
bit
6
//DO3
is
bit
7
//Set all output to 0
outp(0x48d, 0x00);
//Reading Digital input
RetVal=inp(0x48c);//DI0 is bit 6
//DI1
is
bit
7
RetVal=inp(0x4B8);//DI2 is bit 6
RetVal=inp(0x48d);//DI3 is bit 1