Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

uart interrupt tx rx in Dos32 bit open watcom (Developers)

posted by Brian_extended, 22.11.2013, 15:22

The fun of staying up late last night and debugging code...

I found that checking the Interrupt ID register of the serial port in the Handler "did not work as well as it did decades ago"... I'm used to reading this register at the beginning of the handler and checking the conditions individually.

Changed Strategy: Using the Line Status Register to check the Receive Buffer Ready and Transmit buffer empty no matter WHAT condition causes the interrupt works. Checking the Interrupt ID register: highest priority sets it, and a lower priority interrupt coming in while in the handler was lost.

Turns out I started a protected mode interrupt handler in 1994 for Phar Lap. I could not find any of my code that actually used it. I stuck with real-mode for the RS232, and switched to a different interface for protected mode. TWENTY years later, "comio386.asm" is working. New version using circular queues for both TX and RX coming up. I need this thing to work for a new piece of hardware.

 

Complete thread:

Back to the forum
Board view  Mix view
22760 Postings in 2121 Threads, 402 registered users (2 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum