Groups | Search | Server Info | Login | Register


Groups > comp.lang.asm.x86 > #8807

Re: Help with COM1 serial port interrupt in x86 assembly

From Terje Mathisen <terje.mathisen@nospicedham.tmsw.no>
Newsgroups comp.lang.asm.x86
Subject Re: Help with COM1 serial port interrupt in x86 assembly
Date 2023-11-13 16:30 +0100
Organization A noiseless patient Spider
Message-ID <uitffa$moak$2@dont-email.me> (permalink)
References <0d2adfce-74d3-4aae-a0ec-786270c2deean@googlegroups.com> <Q0V3N.10$%aH4.0@fx01.iad> <20231112121458.5fb376bb@hotmail.com> <mtg4N.16104$BbXa.1131@fx16.iad>

Show all headers | View raw


Branimir Maksimovic wrote:
> On 2023-11-12, Borax Man <rotflol2@nospicedham.hotmail.com> wrote:
>> On Sun, 12 Nov 2023 00:30:40 GMT
>> Branimir Maksimovic <branimir.maksimovic@icloud.com> wrote:
>>
>>> You have to tell PIC and UART to trigger interrupt. Just out instructions, I guess that now since there
>>> is internet, you can find info easilly. Last time I programmed that was 1994...
>>
>> Yes, you will need to write an interrupt handler which gets called
>> when the interrupt is triggered.  I haven't done this for a serial
>> port, but an example of an interrupt handler I wrote using the PC
>> timer is below.  Its a bit more complex than it needs to be, because
>> it also makes sound through the PC speaker.
>>
> 
> Here it is nicely explained;
> https://www.activexperts.com/serial-port-component/tutorials/uart/
> 

Borax Man is lucky indeed!

I first had to implement this stuff in 1982, writing the interrupt 
handler code inside DEBUG.COM and then copy the generated bytes into my 
mainline (Modula2) program.

I repeated that exact process a year or two later with Turbo Pascal 1.0.

Having a proper 16-byte buffered uart makes it all much simpler!

Terje

-- 
- <Terje.Mathisen at tmsw.no>
"almost all programming can be viewed as an exercise in caching"

Back to comp.lang.asm.x86 | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Help with COM1 serial port interrupt in x86 assembly Robert Pengelly <robertapengelly@gmail.com> - 2023-11-10 22:22 -0800
  Re: Help with COM1 serial port interrupt in x86 assembly Branimir Maksimovic <branimir.maksimovic@icloud.com> - 2023-11-12 00:30 +0000
    Re: Help with COM1 serial port interrupt in x86 assembly Borax Man <rotflol2@nospicedham.hotmail.com> - 2023-11-12 12:14 +1100
      Re: Help with COM1 serial port interrupt in x86 assembly Branimir Maksimovic <branimir.maksimovic@nospicedham.icloud.com> - 2023-11-13 03:11 +0000
        Re: Help with COM1 serial port interrupt in x86 assembly Terje Mathisen <terje.mathisen@nospicedham.tmsw.no> - 2023-11-13 16:30 +0100
          Re: Help with COM1 serial port interrupt in x86 assembly Borax Man <bob@nospicedham.zerosignal.strangled.net> - 2023-11-14 10:11 +0000

csiph-web