[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference 7.286::atarist

Title:Atari ST, TT, & Falcon
Notice:Please read note 1.0 and its replies before posting!
Moderator:FUNYET::ANDERSON
Created:Mon Apr 04 1988
Last Modified:Tue May 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1433
Total number of notes:10312

1269.0. "XBIOS(15) and GFA-Basic V3" by STKHLM::LETTERSTAL (Johan Letterst�l DEC Stockholm) Wed Mar 18 1992 16:06

    I'm trying to configure the RS232-port with
    XBIOS(15) in GFA-Basic V3.
    Anyone who knows how to set up the control and status reg's
    for transmit,2400 baud,xon/xoff etc on the MFP?
    
    Help!
    /johan
T.RTitleUserPersonal
Name
DateLines
1269.1RSCONF parameters, in a nutshellPRNSYS::LOMICKAJJeffrey A. LomickaWed Mar 18 1992 16:1915
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.
1269.2tnxSTKHLM::LETTERSTALJohan Letterst�l DEC StockholmThu Mar 19 1992 03:392
    Thanks Jeff!
    /johan
1269.3UCR and TSR bit definitionsPRNSYS::LOMICKAJJeffrey A. LomickaWed Apr 15 1992 10:0539
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.