glaw at live.com
Mon Mar 6 21:09:27 EST 2017
This is from scf.d in the defs folder. I'll get these transferred into
the technical reference in the WIKI as well.
* PD.PAR definitions
PARNONE EQU %00000000
PARODD EQU %00100000
PAREVEN EQU %01100000
PARMARK EQU %10100000
PARSPACE EQU %11100000
* PD.BAU definitions
* Baud rate
B110 EQU %00000000
B300 EQU %00000001
B600 EQU %00000010
B1200 EQU %00000011
B2400 EQU %00000100
B4800 EQU %00000101
B9600 EQU %00000110
B19200 EQU %00000111
B38400 EQU %00001000
B57600 EQU %00001001
B115200 EQU %00001010
* Word size
WORD8 EQU %00000000
WORD7 EQU %00100000
* Stop bits
STOP1 EQU %00000000
STOP2 EQU %00010000
On 3/6/2017 7:39:26 PM, "Tim Fadden" <t.fadden at cox.net> wrote:
>First of all, thanks for the response.
>I looked there already. It does not have the information needed.
>It says what par and bau is for, but it does not tell you what values
>perhaps the /t2 device descriptor might give me a clue. I haven't
>looked for that yet.
>Another thought is to run a terminal program, set the values and see
>what changed in xmode. Will give that a try to.
>I can't believe there isn't any one else that has looked for this info,
>or I am really missing something some where.
>thanks for your input!
>On 3/6/2017 5:12 PM, Gregory Law wrote:
>>It might help to read the SCF-Type Device Descriptor Modules section
>>the NitrOS-9 Technical Reference
>>upc=00 -- Case: 0=upper- and lowercase, 1=uppercase only
>>bso=01 -- Backspace: 0=backspace, 1=backspace+space+backspace
>>dlo=00 -- Delete: 0 = backspace over line, 1=carriage return
>>eko=01 -- Echo: 0=echo off, 1=echo on
>>alf=01 -- Auto linefeed: 0=auto linefeed disabled, 1=auto linefeed
>>nul=00 -- End-of-line null count (the number of NULL characters to
>>at the end of a line; typically used to allow teletypes to return the
>>carriage to the left)
>>pau=01 -- Pause: 0=End-of page pause disabled, 1=End-of-page pause
>>pag=18 -- Number of lines per page
>>bsp=08 -- Backspace character
>>del=18 -- Delete line character
>>eor=0D -- End-of-record character
>>eof=1B -- End-of-file character
>>rpr=04 -- Reprint line character
>>dup=01 -- Duplicate last-line character
>>psc=17 -- Pause character
>>int=03 -- Interrupt character
>>qut=05 -- Quit character
>>bse=08 -- Backspace echo character
>>ovf=07 -- Line-overflow character (ding)
>>par=00 -- Initialization value
>>bau=06 -- Baud rate
>>xon=11 -- X-ON character
>>xof=13 -- X-OFF character
>>col=50 -- Number of columns
>>row=18 -- Number of rows
>>wnd=00 -- Window number
>>val= -- Data in rest of descriptor is valid
>>sty= -- Window type
>>cpx= -- X cursor position
>>cpy= -- Y cursor position
>>fgc= -- Foreground color
>>bgc= -- Background color
>>bdc= -- Border color
>>On 3/6/2017 6:42:11 PM, "Tim Fadden" <t.fadden at cox.net> wrote:
>>>On 3/6/2017 1:21 PM, Tim Fadden wrote:
>>>>Is reading the source code the only detailed documentation for the
>>>>xmode command options, and what the values do?
>>>>I was looking at the nitros9 wiki docs, but I couldn't find any
>>>>detailed docs there.
>>>>The options have changed at some time later that the detailed help I
>>>>have on it. :-)
>>>I have been looking for the last couple of hours with no success.
>>>Where can I get information on what values do what on these?
>>> nam=t2 mgr=SCF ddr=sc6551 hpn=07 hpa=FF68 upc=00 bso=01 dlo=00
>>> eko=01 alf=01 nul=00 pau=01 pag=18 bsp=08 del=18 eor=0D
>>> eof=1B rpr=04 dup=01 psc=17 int=03 qut=05 bse=08 ovf=07
>>> par=00 bau=06 xon=11 xof=13 col=50 row=18 xtp=00 wnd=00
>>> val= sty= cpx= cpy= fgc= bgc= bdc=
>>>some of them are abviously on or off ie 0 or 1 some not so, and some
>>>have no idea what they are.
>>>I have this from an old doc:
>>>Determines baud rate, word length, and stop-bits for a serial device.
>>>This byte is bit-mapped as follows:
>>> Bits: 7 6 5 4 3 2 1 0
>>> ----- ---------- ----- --------------------
>>> Stop bits Word length Reserved Baud rate
>>> 0 - 1 bit 00 - 8 bits 0 - 110 3 - 1200 6 -
>>> 1 - 2 bits 01 - 7 bits 1 - 300 4 - 2400 7 -
>>> 2 - 600 5 - 4800 8 -
>>> * This is for ACIAPAK only ** For SIO driver only
>>>Ex: xmode /p baud=22 gives 1 stop bit, 7 data bits, and 600 baud
>>> xmode /t3 baud=86 gives 2 stop bits, 8 data bits, and 9600 baud
>>>I am assuming the values need to be converted from bin to dec, and
>>>hex? I understand this and can figure it out, but what about the
>>>Some of the names have changed since the doc was made.
>>>I looked through the nitros9 source code, bud didn't have any luck.
>>>how about "par" parity I assume, there is none odd and even what
>>>do I plug in?
>>>sorry for being such a pest, but I am getting frustrated.
>>>any help or pointers are greatly appreciated.
>>>-- Tim Fadden
>>>"Hey Schmidt, don't forget about the six P's.
>>>Proper Preparation Prevents Piss-Poor Performance!"
>>>-- Coco mailing list
>>>Coco at maltedmedia.com
>-- Tim Fadden
>"Hey Schmidt, don't forget about the six P's.
>Proper Preparation Prevents Piss-Poor Performance!"
>-- Coco mailing list
>Coco at maltedmedia.com
More information about the Coco