06-22-2006 08:26 PM
06-23-2006 09:42 AM - edited 06-23-2006 09:42 AM
Is the PC104 card running right off the ISA bus of your CPU?
I assume you are executing this in some sort of callback or polling loop and that all other application functions are blocked while you are doing the acquisition, or you have this in a separate thread.
Are you saying that when you do single byte reads, seconds apart, that the reads work ok?
After you read the first byte, do you know that the status register is cleared before the second byte becomes available? If the PC104 card has not had time to clear the status register after your hardware read, you maybe trying to read the next data byte before it is available. You might also want to look at how your PC104 hardware implements the status register. You are reading it at a very fast rate while the PC104 card is also trying to updating it to Set and Clear the Data Ready flag. Some ISA hardware can get blocked under these conditions when installed in a system with a CPU that runs faster than those available when the hardware was designed.
I
Message Edited by mvr on 06-23-2006 09:43 AM
06-23-2006 09:03 PM