
PIO-D48 Series Card
48-channel OPTO-22 Compatible DIO Board
User Manual/Ver. 3.4/Aug. 2015/PMH-006-34/Page: 42
For example:
outportb(wBase+0xcc,0x80);
/* set output mode for the port-0/1/2 */
outportb(wBase+0xc0,V1);
/* write to port_0 (PA) */
outportb(wBase+0xc4,V2);
/* write to port_1 (PB) */
outportb(wBase+0xc8,V3);
/* write to port_2 (PC) */
outportb(wBase+0xdc,0x9B);
/* set input mode for the port-3/4/5 */
V1=inportb(wBase+0xd0);
/* read from port_3 (PA) */
V2=inportb(wBase+0xd4);
/* read from port_4 (PB) */
V3=inportb(wBase+0xd8);
/* read from port_5 (PC) */
Note:
The I/O speed is depending on I/O card, bus speed, CPU speed and system loading. Any
condition changes may cause the I/O speed different.