User manual
RC200/203 Manual
www.celoxica.com Page 48
Parameters: DataPtr: Pointer to an lvalue of type unsigned 8.
Timing:
1 or more clock cycles (the read is blocked until data is
ready).
Description:
Reads a single item of data from the keyboard PS/2 port
and stores it in the
lvalue pointed at by DataPtr.
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.8.6 Writing data to the keyboard
extern macro proc RC200PS2KeyboardWrite (Data);
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);