Download User Manual - IMS B008 User Guide and Reference
Transcript
{
outportb( INT_ENABLE, inportb( INT_ENABLE ) | 0x08 );
}
void enable_error_ints( void )
{
outportb( INT_ENABLE, inportb( INT_ENABLE ) | 0x02 );
}
void disable_out_ints( void )
{
outportb( INT_ENABLE, inportb( INT_ENABLE ) & 0xfb );
}
void disable_in_ints( void )
{
outportb( INT_ENABLE, inportb( INT_ENABLE ) & 0xf7 );
}
void disable_error_ints( void )
{
outportb( INT_ENABLE, inportb( INT_ENABLE ) & 0xfd );
}
/* polled link I/O procedures */
char read_link( void )
{
while (( inportb( STATUS_IN ) & 1 ) != 1 );
return( inportb( DATA_IN )) ;
}
void write_link( char byte )
{
while (( inportb( STATUS_OUT ) & 1 ) != 1 );
outportb( DATA_OUT, byte );
}
7.8
Operating the IMS B008 with the PC bus interface disabled
By setting both the option switches SW1:1 and SW1:2 to ON (see section 8)
the PC bus interface of the IMS B008 is disabled. This is useful when the
IMS B008 is connected to another board, for instance it is the second of two
IMS B008 connected in cascade. All the ”system services” signals, Reset,
Analyse, and notError should be connected to the other board as explained
in section 6.
28