uart interrupt tx rx in Dos32 bit open watcom (Developers)
Hi,
I'm trying to develop an application, that use interrupt for serial port, to manage the receive and transmit event in Freedos 1.0 and dos4gw.
At the moment, with the example of open watcom bimodal found in goodies of OW, the event of rx is correctly handled, and now I would like to manage the tx event.
This example is a mix between c and asm.
I'm trying to adapt the code to intercept also transmission interrupt, but the routine send only few characters.
I have enabled the bit of tx interrupt, and the event is generated when I try to transmit a byte in my main, but here it comes the problem.
I'd like to compile a buffer with my data to be sent, and let the transmit interrupt handle the sending, so the pc, is free to do other stuff in the main code. When I try to send the first byte in the main, I receive the interrupt call, but when I send another byte there(in the interrupt), I don't receive the next interrupt call for the next byte to transmit. Probably I'm not managing the register in the right way.
Anybody has an example of a serial transmission, using the tx interrupt of the uart?
Thanks in advance,
maui
Complete thread:
- uart interrupt tx rx in Dos32 bit open watcom - maui, 11.11.2013, 11:14
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- uart interrupt tx rx in Dos32 bit open watcom - RayeR, 11.11.2013, 19:34
- uart interrupt tx rx in Dos32 bit open watcom - RayeR, 12.11.2013, 01:50
- uart interrupt tx rx in Dos32 bit open watcom - tom, 12.11.2013, 12:24
- uart interrupt tx rx in Dos32 bit open watcom - RayeR, 12.11.2013, 12:30
- uart interrupt tx rx in Dos32 bit open watcom - bretjohn, 12.11.2013, 16:55
- uart interrupt tx rx in Dos32 bit open watcom - maui, 12.11.2013, 19:23
- uart interrupt tx rx in Dos32 bit open watcom - bretjohn, 12.11.2013, 21:12
- uart interrupt tx rx in Dos32 bit open watcom - tom, 13.11.2013, 11:22
- uart interrupt tx rx in Dos32 bit open watcom - maui, 13.11.2013, 15:49
- uart interrupt tx rx in Dos32 bit open watcom - Oso2k, 13.11.2013, 22:26
- uart interrupt tx rx in Dos32 bit open watcom - maui, 15.11.2013, 19:43
- uart interrupt tx rx in Dos32 bit open watcom - tom, 16.11.2013, 19:02
- uart interrupt tx rx in Dos32 bit open watcom - Brian_extended, 17.11.2013, 04:21
- uart interrupt tx rx in Dos32 bit open watcom - maui, 19.11.2013, 12:42
- uart interrupt tx rx in Dos32 bit open watcom - Brian_extended, 19.11.2013, 20:59
- uart interrupt tx rx in Dos32 bit open watcom - Brian_extended, 22.11.2013, 15:22
- uart interrupt tx rx in Dos32 bit open watcom - Brian_extended, 23.11.2013, 03:09
- uart interrupt tx rx in Dos32 bit open watcom - maui, 24.11.2013, 13:45
- uart interrupt tx rx in Dos32 bit open watcom - Brian_extended, 26.11.2013, 23:25
- uart interrupt tx rx in Dos32 bit open watcom - RayeR, 27.11.2013, 03:26
- uart interrupt tx rx in Dos32 bit open watcom - Brian_extended, 05.01.2014, 20:42
- uart interrupt tx rx in Dos32 bit open watcom - Brian_extended, 26.01.2014, 02:06
- uart interrupt tx rx in Dos32 bit open watcom - tom, 27.01.2014, 22:46
- uart interrupt tx rx in Dos32 bit open watcom - Brian_extended, 26.01.2014, 02:06
- uart interrupt tx rx in Dos32 bit open watcom - Brian_extended, 05.01.2014, 20:42
- uart interrupt tx rx in Dos32 bit open watcom - RayeR, 27.11.2013, 03:26
- uart interrupt tx rx in Dos32 bit open watcom - Brian_extended, 26.11.2013, 23:25
- uart interrupt tx rx in Dos32 bit open watcom - maui, 24.11.2013, 13:45
- uart interrupt tx rx in Dos32 bit open watcom - Brian_extended, 23.11.2013, 03:09
- uart interrupt tx rx in Dos32 bit open watcom - maui, 19.11.2013, 12:42
- uart interrupt tx rx in Dos32 bit open watcom - Brian_extended, 17.11.2013, 04:21
- uart interrupt tx rx in Dos32 bit open watcom - tom, 16.11.2013, 19:02
- uart interrupt tx rx in Dos32 bit open watcom - maui, 15.11.2013, 19:43
- uart interrupt tx rx in Dos32 bit open watcom - Oso2k, 13.11.2013, 22:26
- uart interrupt tx rx in Dos32 bit open watcom - maui, 13.11.2013, 15:49
- uart interrupt tx rx in Dos32 bit open watcom - maui, 12.11.2013, 19:23
- uart interrupt tx rx in Dos32 bit open watcom - Brian_extended, 16.11.2013, 01:14
- uart interrupt tx rx in Dos32 bit open watcom - Brian_extended, 16.11.2013, 01:15
- uart interrupt tx rx in Dos32 bit open watcom - Brian_extended, 16.11.2013, 01:16
- uart interrupt tx rx in Dos32 bit open watcom - Brian_extended, 16.11.2013, 01:32
- uart interrupt tx rx in Dos32 bit open watcom - RayeR, 11.11.2013, 19:34
Mix view