EasyManua.ls Logo

Intel 386

Intel 386
691 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Intel386™ EX EMBEDDED MICROPROCESSOR USERS MANUAL
11-44
Description:
Is an interrupt driven serial port write function.
The NUL character (‘\0’) is used to indicate end of string.
Parameters:
Unit Unit number of the serial port. 0 for SIO port 0,
1 for SIO port 1.
str Address of a zero terminated string to be transmitted
Returns:
None
Assumptions:
REMAPCFG register has Expanded I/O space access enabled (ESE bit set).
The processor Port pin are initialized separately.
Syntax:
#define SIO_0 0
SerialWriteStr_Int (SIO_0, HelloString);
Real/Protected Mode
No changes required.
*****************************************************************************/
void SerialWriteStr_Int(int Unit, const char far *str)
{
BYTE PortIntEnable;
PortIntEnable = (Unit ? IER1 : IER0);
strcpy (trans_buffer, str); // Copy string into buffer
/* Enable TBE interrupts */
_SetEXRegByte(IER0,0x02);
}/* SerialWriteStr_Int */
/*****************************************************************************
Service_TBE:
Description:
Service routine for TBE generated interrupts. This function is used
for Interrupt-Driven Serial Transmits.
Parameters:

Table of Contents

Related product manuals