| maui 11.11.2013, 11:14 |
uart interrupt tx rx in Dos32 bit open watcom (Developers) |
Hi, |
| RayeR CZ, 11.11.2013, 19:34 @ maui |
uart interrupt tx rx in Dos32 bit open watcom |
Doesn't it need to clear some interrupt flag in PIC (send something to PIC IO port but I don't remember). I was trying only Rx ISR in DJGPP with Tx routine polled so I can't help more. --- |
| RayeR CZ, 12.11.2013, 01:50 @ RayeR |
uart interrupt tx rx in Dos32 bit open watcom |
> Doesn't it need to clear some interrupt flag in PIC (send something to PIC --- |
| tom Germany (West), 12.11.2013, 12:24 (edited by tom, 12.11.2013, 12:36) @ maui |
uart interrupt tx rx in Dos32 bit open watcom |
I did that something like 20 years ago. |
| RayeR CZ, 12.11.2013, 12:30 @ tom |
uart interrupt tx rx in Dos32 bit open watcom |
> BTW: is it possible to write indented text in this forum ? --- |
| bretjohn Rio Rancho, NM, 12.11.2013, 16:55 @ tom |
uart interrupt tx rx in Dos32 bit open watcom |
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. |
| maui 12.11.2013, 19:23 @ bretjohn |
uart interrupt tx rx in Dos32 bit open watcom |
> I did something like that a LONG time ago, too (except in 16-bit DOS, not |
| bretjohn Rio Rancho, NM, 12.11.2013, 21:12 @ maui |
uart interrupt tx rx in Dos32 bit open watcom |
There are some more details on how the UART works, and even some info on some of the FIFO hardware, in RBIL. The info is listed under I/O Port 3F8-3FF. |
| tom Germany (West), 13.11.2013, 11:22 @ maui |
uart interrupt tx rx in Dos32 bit open watcom |
and at |
| maui 13.11.2013, 15:49 @ tom |
uart interrupt tx rx in Dos32 bit open watcom |
> and at |
| Oso2k 13.11.2013, 22:26 @ maui |
uart interrupt tx rx in Dos32 bit open watcom |
Look at mc323exa.zip from David Dunfield to see how this was done with 16-bit code. Specifically, 16550A - 16550A uart FIFO control. DLM (data line monitor), SERMON (multi-serial monitor), and SDT (serial debug terminal) might also be helpful as well. If you're trying to implement a data transfer app, Dunfield has many in mc323exa (see SAMPLE.TXT) and others available at his DOS Utils page. They all depend on his 16-bit Micro C Compiler if you decide to rebuild them from source which is very easy to do and he provides links to everything you need for that on his DOS Utils page. |
| maui 15.11.2013, 19:43 @ Oso2k |
uart interrupt tx rx in Dos32 bit open watcom |
> Look at |
| tom Germany (West), 16.11.2013, 19:02 @ maui |
uart interrupt tx rx in Dos32 bit open watcom |
> Thanks for your time on this topic. |
| Brian_extended 17.11.2013, 04:21 @ tom |
uart interrupt tx rx in Dos32 bit open watcom |
> > Thanks for your time on this topic. |
| maui 19.11.2013, 12:42 @ Brian_extended |
uart interrupt tx rx in Dos32 bit open watcom |
> > > Thanks for your time on this topic. |
| Brian_extended 19.11.2013, 20:59 @ maui |
uart interrupt tx rx in Dos32 bit open watcom |
My code was too long to post here in it's entirety, so I linked to the full code. |
| Brian_extended 22.11.2013, 15:22 @ maui |
uart interrupt tx rx in Dos32 bit open watcom |
The fun of staying up late last night and debugging code... |
| Brian_extended 23.11.2013, 03:09 @ Brian_extended |
uart interrupt tx rx in Dos32 bit open watcom |
Phar Lap provides "Shadow Interrupt Vectors" that routes both real-mode and protected mode interrupts to your handler. This made life easy. I have the queue driven RX/TX handler working using shadow vector table. For the embedded application, the software will be in protected mode just after boot-up. |
| maui 24.11.2013, 13:45 @ Brian_extended |
uart interrupt tx rx in Dos32 bit open watcom |
hi brian, |
| Brian_extended 26.11.2013, 23:25 @ maui |
uart interrupt tx rx in Dos32 bit open watcom |
> hi brian, |
| RayeR CZ, 27.11.2013, 03:26 @ Brian_extended |
uart interrupt tx rx in Dos32 bit open watcom |
> Is there a way to upload a 30KByte file on this site? --- |
| Brian_extended 05.01.2014, 20:42 @ RayeR |
uart interrupt tx rx in Dos32 bit open watcom |
> > Is there a way to upload a 30KByte file on this site? |
| Brian_extended 26.01.2014, 02:06 @ Brian_extended |
uart interrupt tx rx in Dos32 bit open watcom |
Learned an important lesson about the 16550 FIFO- once in the Interrupt Handler, keep looping until all conditions are clear. Can't just service one byte and expect the interrupt to be clear. At this point, running reliably at 115Kb/s. |
| tom Germany (West), 27.01.2014, 22:46 @ Brian_extended |
uart interrupt tx rx in Dos32 bit open watcom |
> Learned an important lesson about the 16550 FIFO- once in the Interrupt |
| Brian_extended 16.11.2013, 01:14 (edited by Brian_extended, 16.11.2013, 01:25) @ maui |
uart interrupt tx rx in Dos32 bit open watcom |
> Hi, |
| Brian_extended 16.11.2013, 01:15 @ Brian_extended |
uart interrupt tx rx in Dos32 bit open watcom |
Too long! |
| Brian_extended 16.11.2013, 01:16 @ Brian_extended |
uart interrupt tx rx in Dos32 bit open watcom |
Too long to upload... |
| Brian_extended 16.11.2013, 01:32 @ maui |
uart interrupt tx rx in Dos32 bit open watcom |
http://www.leicaplace.com/showthread.php?t=324&page=3&p=2755#post2755 |
Thread view