BBS: Inland Empire Archive
Date: 02-09-93 (19:27) Number: 319
From: ZACK JONES Refer#: NONE
To: FRANCOIS ROY Recvd: NO
Subj: Re: ZMODEM/XMODEM SOURCE Conf: (2) Quik_Bas
Here's some more info about that *BREAK* signal - this is
courtesy of Dave Cleary:
>A "break" signal is that state in which the comm port sends a steady
>stream of the "break" character. Here's a snippet of what Telix does,
>in algorithmic form, when Ctrl_end is hit:
> Get the value of the address of the UART's Line Control Reg.
> Turn off interrupts
> To turn on a break, OR the LCR with 01000000b
> To turn off a break, AND NOT the LCR with 01000000b
> Turn on interrupts
There is no need to disable and enable interrupts when sending a break.
OldLCR = INP(BaseAddr% + 3)
OUT BaseAddr% + 3, OldLCR OR &H40
OUT BaseAddr% + 3, OldLCR
That is all there is to it.
Take Care, Zack Jones
--- GoldED 2.41.B1207+1536
* Origin: Zack's Shack San Antonio TX (210) 653-2115 (1:387/641)