| XBIOS 15 takes 6 parameters.
speed, flow, UCR, RSR, TSR, SCR
speed: 0=19,200, 1=9600, 2=4800, 3=3600, 4=2400, 5=2000, 6=1800, 7=1200,
8=600 , 9=300
flow: 0=none
1=xon/xoff
2=RTS/CTS
3=both
UCR,RSR,TSR,SCR
-1 means "don't change them". Go for that. However, I have the
bit definitions if you need to change parity or word size.
|
| USR bits:
0 - ?
1 - 1=parity odd, 2=parity even
2 - 1=parity enable, 0=parity disable
4&3
0 0 - Sync, no stop or start bits
0 1 - Async 1 stop bit
1 0 - Async 1.5 stop bit
1 1 - Async 2 stop bit
6&5
0 0 - 8 bits/word
0 1 - 7 bits
1 0 - 6 bits
1 1 - 5 bits
7 1=�16, 0=�1 clock rate
So, no parity 1 stop bit is 10001000 or 0x88 (hexadecimal) or 136
decimal.
SCR is not applicable ot async comm.
TSR bits:
0 - 1=enable transmitter
2&1
0 0 - High impeadance output
0 1 - Active low
1 0 - Active high
1 1 - Loopback
3 - 1=assert break, 0=normal
4 - 1=disable at end of current char, 0=enabled
5 - 1=enable Rx when Tx disabled after last char sent, 0=disable Tx
6 - 1=Tx buffer empty
7 - 1=Tx complete
I don't know the correct setup for TSR off-hand, but if you don't change
it (use -1) it will work okay for you (unless you have to send break).
RSR is similar, and just as boring. If you need it, let me know, but
right now I've got to run and get ready for work.
Rsconf returns the current values of SCR, USR, TSR, and RSR in D0.
|