ISA Expansion Boards Error
Posted: Thu Mar 15, 2012 12:00 pm
I am not getting the converted data from the ISA Expansion Board
My code goes like this.
I am actually supposed to get converted data in the variable data.If i print the value of the data on the screen , i get 000000 always.I hav coded according to the mannual (datasheet).
My steps are:
#Apply start of conversion pulse to R/C# line
#Get the status signal and loop
#Read the converted data from the board
My code goes like this.
Code: Select all
int read_isa_status()
{
return inport(0x0304) & 0x0001;
}
int read_isabus_exp16()
{
int state, data;
outport(0x0300,0x0000);
do
{
state = read_isa_status();
}
while(state);
data = inport(0x0302) >> 4;
return data;
}
}
My steps are:
#Apply start of conversion pulse to R/C# line
#Get the status signal and loop
#Read the converted data from the board