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 bretjohn Homepage E-mail, Rio Rancho, NM, 12.11.2013, 16:55

I did something like that a LONG time ago, too (except in 16-bit DOS, not DPMI). I looked for the code, but can't find it any more.

I remember using the source code for an old PC Magazine utility called PCREMOTE as the starting point for that particular part of my program. I also used the source code for PCREMOTE as the starting point to set up circular buffers to store the transmit and receive data. PCREMOTE uses the IRQ for both transmit and receive, which is what you're trying to do. I personally agree that's the _right_ way to do it, even though it's a little more difficult than transmit polling.

I think uploading the PCREMOTE source code might be forbidden here because of copyright issues, but you can still find the files on the Internet if you look. PCREMOTE is in V9N01 of the PC Magazine archives.

Since you haven't shown any of your code, one thing I will say that you absolutely need to do is to make sure in the Interrupt Enable Register you set the Transmitter Holding Register interrupt bit.

 

Complete thread:

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