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 #175 background image
Intel386™ EX EMBEDDED MICROPROCESSOR USERS MANUAL
7-16
7.5 PROGRAMMING CONSIDERATIONS
7.5.1 System Management Mode Code Example
The following code example contains these software routines.
SerialWriteStr2 Located in SMRAM upon program execution, this routine loops
endlessly while writing a character “X” out the serial port on the
EV386EX board.
SerialWriteStr Located in the main program in FLASH, this routine loops endlessly
while writing a string out the serial port before entering SMM.
InitSIO Initializes the serial port including the mode, baud rate, and clock
rate.
MAIN Executes the program once it is located in FLASH. It also configures
chip selects, copies SMM handler to SMRAM, and loops endlessly
until an SMI# is issued.
See Appendix C for the included header files.
#include “80386EX.h”
#include “EV386EX.h”
#include <string.h>
#include <conio.h>
#include <dos.h>
#if _DEBUG_ == 0 // _DEBUG_ must be defined on the command line
#define SIO_PORT SIO_1 // The debugger uses SIO_0 for host communications
#else // Under the debugger we must avoid using SIO_0
#define SIO_PORT SIO_0
#endif
#define BAUD_CLKIN 1843200L // Clock rate of COMCLK, i.e., External clocking,
extern char far SMMString[];
extern void InitEXSystem(void);
int DataSeg; // For assembly data segment register init.
BYTE Buf[20];
/*********************** Function SerialWriteStr2 **************************
Parameters:
None
Returns:
None
Assumptions:
Not called from main. This function is used as a jump point and is
relocated by the main to 38000H (SRAM) for SMM.
Real/Protected Mode:
No changes required

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