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
Howdy Francois!

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
'delay for more than one character period
OUT BaseAddr% + 3, OldLCR

That is all there is to it.

Later           Dave

Take Care, Zack Jones

--- GoldED 2.41.B1207+1536
 * Origin: Zack's Shack San Antonio TX (210) 653-2115 (1:387/641)
Outer Court
Echo Basic Postings

Books at Amazon:

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET