Intel 386 User Manual page 331

Embedded microprocessor
Table of Contents

Advertisement

Intel386™ EX EMBEDDED MICROPROCESSOR USER'S MANUAL
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);
/* 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:
11-44
// Copy string into buffer

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Intel386 exIntel386 extbIntel386 extc

Table of Contents