Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Interrupt in UART for Transmit and receive: (2 Items)
   
Interrupt in UART for Transmit and receive  
Hello All,
I am working on UART driver for sabrelite IMX6DQ board in QNX neutrino 6.6.I am not using the resource manager available
 in the BSP but creating a seperate driver with using the io-char framework.I am trying to do the transmit and receive 
with the interrupts but i am not able to get any interrupts for the receive and getting only one interrupt for the 
trasmit for the first time alone and then i am not getting any interrupts for the trasmit also.
I am using the interruptattach method for doing the interrupt registration.In the ISR i am not able to do the 
interruptUnmask as it crashes the application at the call of the interruptattach function itself.I am also not able to 
have NULL return as it also crashes the application at initialisation itself.
I have been able to do the transmit and receive with the polling method where in it was possible with the polling for 
the TXEMPTY and the RXEMPTY bits of the test register.But the same is not working for the polling of the Status bits of 
the status register for the trasmit and receive.

I am attaching my code for reference kindly help me out in finding the bug in the code.
Attachment: Compressed file UART.zip 22.46 KB
Re: Interrupt in UART for Transmit and receive  
what is the receive buffer length. Is your receive int occur after buffer is full or 3/4th full or every single char 
received.
check this out.
For transmit, are you using transmit buffer empty interrupt or transmission complete interrupt