outportb(port,temp);
/* Set access back to Page 0 */
outportb(ba7,0x0);
}
/*===========================================================================
*
* DISAB_INT
*
* This function takes a single argument :
*
* bit_number : Specifies the bit number to act upon. Range is from 1 to 48.
*
* This function shuts off the interrupt enabled for the specified bit.
*
*===========================================================================*/
void disab_int(int bit_number)
{
unsigned port;
unsigned temp;
unsigned mask;
/* Adjust the bit_number for 0 based numbering */
--bit_number;
/* Calculate the I/O Address for the enable port */
port = (bit_number / 8) + bas 8;
/* Calculate the proper bit mask for this bit number */
mask = (1 << (bit_number % 8));
/* Turn on access to page 2 registers */
outportb(ba7,0x80);
/* Get the current state of the enable register */
temp = inportb(port);
/* Clear the enable bit int the image for our bit number */
temp = temp & ~mask;
/* Update the enable register with the new information */
outportb(port,temp);
/* Set access back to page 0 */
outportb(ba7,0x0);
}
Содержание EBC-BX
Страница 2: ...REVISION HISTORY P N 403 0307 000 ECO Number Date Code Rev Level ORIGINATED 030124 B 03 57 030923 C...
Страница 72: ...8 APPENDIX C EBC BX Parts Placement Guide Top 030923 OPERATIONS MANUAL EBC BX Page 8 1...
Страница 73: ...EBC BX Parts Placement Guide Bottom Page 8 2 OPERATIONS MANUAL EBC BX 030923...
Страница 74: ...9 APPENDIX D EBC BX Parts List...
Страница 82: ...10 APPENDIX E EBC BX Mechanical Drawing...
Страница 83: ......
Страница 84: ...11 APPENDIX F WS16C48 I O Routines and Sample Program Listings...