[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting baud rate on Super Serial Card from BASIC?



Can anyone help me change the baud rate setting from within a ProDOS 
Applesoft BASIC program running on a //c. In other words I need a 
command, or series of pokes, or a string to send, or something.

I would think the technique would not be specific to the //c but rather 
to the Super Serial Card.

I have an application that PRINTs data to a device which seems to be 
locked at 9600,N,8,1. Though I can set the //c to port at that speed 
from the //c utility disk, the setting does not survive a computer 
shutdown/restart, so I need to have the program force that setting each 
time it is run from bootup.

I have examined STARTUP and SU on the //c Utilities disk with a view to 
extracting some code but the method used is not obvious.

I know how to set the baud rate from the command line in terminal mode. 
I suppose I could EXEC such a session from within the program and then 
return if there's no more straightforward way. That seems really clumsy.

Maybe somebody has written a short BASIC program to set the baud rate 
that I could imbed at the start of my program?

Any leads or hints would be greatly appreciated.