Intel 386 User Manual page 178

Embedded microprocessor
Table of Contents

Advertisement

_SetEXRegByte(SIOPortBase + DLH, HIBYTE(BaudDivisor) );
_SetEXRegByte(SIOPortBase + DLL, LOBYTE(BaudDivisor) );
// Set Serial Line control register
_SetEXRegByte(SIOPortBase + LCR, Mode); // Sets Mode and resets the
// Set modem control bits
_SetEXRegByte(SIOPortBase + MCR, ModemCntrl);
return E_OK;
}
/******************************* MAIN ***********************************/
Parameters:
None
Returns:
None
Assumptions:
None
Real/Protected Mode
No changes required.
--------------------------------------------------------------------------*/
#ifndef SetEXRegWordInline
#define SetEXRegWordInline(address, word) \
_asm mov dx, address;
_asm mov ax, word;
_asm out dx, ax;
#endif
void main(void)
{
InitSIO(SIO_PORT,
SIO_8N1,
SIO_MCR_RTS+SIO_MCR_DTR,
9600,
BAUD_CLKIN);
_asm
{
push DI
push SI
push DS
push ES
}
SetEXRegWordInline(CS4ADL, 0x702);
SetEXRegWordInline(CS4ADH, 0x0);
SetEXRegWordInline(CS4MSKL, 0xFC01);
SetEXRegWordInline(CS4MSKH, 0x0);
// Divisor latch
\
\
// Which Serial Port
// Mode, 8-data, no parity, 1-stop
// Modem line controls
// Baud Rate
// Baud Clocking Rate
// Store registers to preserve values
// Configure chip select 4
SYSTEM MANAGEMENT MODE
7-19

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Intel386 exIntel386 extbIntel386 extc

Table of Contents