From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I program the AT-MIO16E-10 digital IO from dos once I have established the IO_Base Address

I have established an IO base address of 0x240 for the card, but I don't understand the sequence of
control operations on how to toggle discrete lines on port A, B or C on the 82c55a chip. The register-level
manual gives offset of port A, B, C and a Control register for the ATMIO16-E-10 and have tried the
following:  
 
ControlReg   = 0x1f
BaseAddr      = 0x240
PortA offset   = 0x19
 
outp( BaseAddr + ControlReg, 0x80 )     /// make all ports output
outp ( BaseAddr + PortA, 0 )
 
Any help would be appreciated!!!
Thanks
0 Kudos
Message 1 of 1
(3,200 Views)