EasyManuals Logo

Intel 386 User Manual

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
Page #177 background imageLoading...
Page #177 background image
Intel386™ EX EMBEDDED MICROPROCESSOR USERS MANUAL
7-18
}
/*************************** Function InitSIO *******************************
Parameters:
Unit Unit number of the serial port. 0 for SIO port 0, 1 for SIO
port 1.
Mode Defines parity, number of data bits, number of stop bits...
Reference Serial Line Control register for various options
ModemCntrl Defines the operation of the modem control lines
BaudRate Specifies baud rate. The baud divisor value is calculated
based on clocking source and clock frequency. The clocking
frequency is set by calling the InitializeLibrary function.
ClockRate Specifies the serial port clocking rate, for internal clocking
= CLK2 for external = COMCLK
Returns: Error Codes
E_INVAILD_DEVICE -- Unit number specifies a non-existing device
E_OK -- Initialized OK, No error.
Assumptions:
SIOCFG Has already been configured for Clocking source and Modem control
source
REMAPCFG register has Expanded I/O space access enabled (ESE bit set).
The processor Port pin are initialized separately.
Real/Protected Mode
No changes required.
--------------------------------------------------------------------------*/
int InitSIO(int Unit,
BYTE Mode,
BYTE ModemCntrl,
DWORD BaudRate,
DWORD BaudClkIn)
{
WORD SIOPortBase;
WORD BaudDivisor;
// Check for valid unit
if(Unit > 1)
return E_INVALID_DEVICE;
// Set Port base based on serial port used
SIOPortBase = (Unit ? SIO1_BASE : SIO0_BASE);
// Initialized Serial Port registers
// Calculate the baud divisor value, based on baud clocking
BaudDivisor = (WORD)(BaudClkIn / (16*BaudRate));
// Turn on access to baud divisor register
_SetEXRegByte(SIOPortBase + LCR, 0x80);
// Set the baud rate divisor register, High byte first

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Intel 386 and is the answer not in the manual?

Intel 386 Specifications

General IconGeneral
Architecturex86
Clock Speed12 MHz to 40 MHz
Transistor Count275, 000
Data Bus Width32-bit
Address Bus Width32-bit
Instruction Setx86
Introduced1985
Maximum Memory4 GB
Operating ModesReal mode, Protected mode, Virtual 8086 mode
MMUYes
Voltage5V
ModelIntel 386
PackagePGA
Process1.5 μm to 1 μm

Related product manuals