R-Engine-D
Chapter 4: Software
4-13
void ae_reset
Arguments:
none
Return value:
none
This function is similar to a hardware reset, and can be used if your program needs to re-start the board for
any reason. Depending on the current hardware configuration, this might either start executing code from
the DEBUG ROM or from some other address.
4.4
Functions in SER0.OBJ
The functions described in this section are prototyped in the header file
ser0.h
in the directory
tern\186\include
.
The Am186ER only provides one asynchronous serial port. The R-Engine-D comes standard with the
SCC26C92, providing two additional asynchronous ports. The serial port on the Am186ER will be called
SER0, and the two UARTs from the SCC26C92 will be referred to as SER1 and SER2.
This section will discuss functions in
ser0.h
only, as SER0 pertains to the Am186ER.
By default, SER0 is used by the DEBUG kernel (re40_115.hex) for application download/debugging in
STEP 1 and STEP 2. The following examples that will be used, show functions for SER0, but since it is
used by the debugger, you cannot directly debug SER0. This section will describe its operation and
software drivers. The following section will discuss, SER1 and SER2, which pertain to the external
SCC26C92 UART. SER1 and SER2 will be easier to implement in applications, as they can be directly
debugged in the Paradigm C/C++ environment.
TERN interface functions make it possible to use one of a number of predetermined baud rates. These
baud rates are achieved by specifying a divisor for 1/16 of the processor frequency.
The following table shows the function arguments that express each baud rate, to be used in TERN
functions for
SER0 ONLY
. SER1 and SER2 have baud rated based upon different arguments. These are
based on a 40 MHz CPU clock.
Function Argument
Baud Rate
1 110
2 150
3 300
4 600
5 1200
6 2400
7 4800
8 9600
9 19,200
(default)
10 38,400
11 57,600