From: terje.mathisen@nospicedham.tmsw.no   
      
   Branimir Maksimovic wrote:   
   > On 2023-11-12, Borax Man wrote:   
   >> On Sun, 12 Nov 2023 00:30:40 GMT   
   >> Branimir Maksimovic 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   
      
   --   
   -    
   "almost all programming can be viewed as an exercise in caching"   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|