Hardware description
Parameters:
Data
: data value of type
unsigned 8.
Timing:
1 or more clock cycles (until data is sent).
Description:
Writes a single item of data to the keyboard PS/2 port from the expression
Data
.
Note that these are raw bytes from the keyboard. To do interpreted access (e.g.
ASCII keyboard characters) you should use the PAL PS/2 API.
5.9 RS-232 port macros
To read from or write to the RS-232 port, you need to:
1. Call
RC200RS232Run()
. This sets the baud, parity, flow control and clock rate. Run this in
parallel with the read or write macros.
2. Call
RC200RS232Read()
or
RC200RS232Write()
.
5.9.1 RS-232 management tasks
extern macro proc RC200RS232Run (
BaudRate
,
Parity
,
FlowControl
,
ClockRate
);
Parameters:
BaudRate
: A code selecting the initial baud. Use the baud codes set by
RC200RS232SetBaudRate().
Parity
: A code selecting the initial parity. Use the parity codes set by
RC200RS232SetParity()
.
FlowControl
: A code selecting the initial flow control. Use the flow codes set by
RC200RS232SetFlowControl()
.
ClockRate
: Clock rate of the clock domain of the call to this macro, in Hz.
Timing:
Does not terminate in normal use.
Description:
Runs the device management tasks for RS-232 ports. Must always be run in
parallel with accesses to the device.
Selecting the baud
extern macro proc RC200RS232SetBaudRate (
BaudRate
);
Parameters:
BaudRate
: A code selecting the baud (see below).
Timing:
1 clock cycle.
Description:
Changes the baud of the RS232 interface.
BaudRate
must be one of the codes
listed below.
www.celoxica.com
Page 44