User`s guide
PSG.LlB Functions
void slta-init(slta-format, slta-baud, slta-intfc);
This function initializes the UART.
It sets up the frame format, the serial
interface bit rate, and the modem handshake lines. The frame format
parameters are listed in
PSG . H
and may be set to:
format-6Nl
6
format-601
6
format-5Nl
5
no
even
no
one
one
one
1 format-5El
I 5 I even I
one
I
format-501
5 odd
one
The
slta-baud
parametermaybesetto
baud~300,baud~600,baud_1200,
baud~2400,baud~4800,baud_9600,baud_1440019200,baud~38400,
baud-5 7 6 0 0,
or
baud-l 15 2 0 0.
The EIA-232 interface parameter may be set to
intf c_3wire,
or
int f c-8wire.
Configuration switch inputs are ignored-all
configuration information is taken from the parameters supplied to
s 1 ta-ini t
( ) . This function should be called once in the reset clause of the
application program.
Example:
when (reset) {
slta-init(format_8Nl, baud-38400, intfc-3wire);
1
13-8
Programmable Serial Gateway