Forums

UART receive issue

Started by mak March 12, 2009
Hello,

I am facing an issue in UART receive. When i enable the receive enable bit
in the control register, framming and break error bit interrupt is raised.
I clear the error bit in ISR. Then whatever i transmit by my PC
(hyperterminal) its not received by UART on the board.

Note: Transmit from board to PC is working fine.

Please suggest a solution of this issue. Thank you!

Regards,
Mak


On Thu, 12 Mar 2009 06:03:38 -0500, "mak" <ankitmm@yahoo.com> wrote in
comp.arch.embedded:

> Hello, > > I am facing an issue in UART receive. When i enable the receive enable bit > in the control register, framming and break error bit interrupt is raised. > I clear the error bit in ISR. Then whatever i transmit by my PC > (hyperterminal) its not received by UART on the board. > > Note: Transmit from board to PC is working fine. > > Please suggest a solution of this issue. Thank you!
Suggestion: Post again and include more details: What UART? There is more than one. What microcontroller? There is more than one. What is the baud rate? There is more than one. How are you setting the baud rate? With these details, somebody might actually be able to help you. -- Jack Klein Home: http://JK-Technology.Com FAQs for comp.lang.c http://c-faq.com/ comp.lang.c++ http://www.parashift.com/c++-faq-lite/ alt.comp.lang.learn.c-c++ http://www.club.cc.cmu.edu/~ajo/docs/FAQ-acllc.html
mak wrote:
> Hello, > > I am facing an issue in UART receive. When i enable the receive enable bit > in the control register, framming and break error bit interrupt is raised. > I clear the error bit in ISR. Then whatever i transmit by my PC > (hyperterminal) its not received by UART on the board. > > Note: Transmit from board to PC is working fine. > > Please suggest a solution of this issue. Thank you! > > Regards, > Mak > >
Processor? Extract of source code? Clock frequency and baud rate? Type of interface between RS232 and logic levels? No details => No help! -- Ian Malcolm. London, ENGLAND. (NEWSGROUP REPLY PREFERRED) ianm[at]the[dash]malcolms[dot]freeserve[dot]co[dot]uk [at]=@, [dash]=- & [dot]=. *Warning* HTML & >32K emails --> NUL:
"mak" <ankitmm@yahoo.com> wrote in message 
news:QvKdnXl4T46XcSXUnZ2dnUVZ_vSdnZ2d@giganews.com...
> Hello, > > I am facing an issue in UART receive. When i enable the receive enable bit > in the control register, framming and break error bit interrupt is raised. > I clear the error bit in ISR. Then whatever i transmit by my PC > (hyperterminal) its not received by UART on the board. > > Note: Transmit from board to PC is working fine. > > Please suggest a solution of this issue. Thank you! > > Regards, > Mak > >
First, check that the UART rx input isn't stuck Low. Then check that the polarity going in isn't reversed. Either condition might cause what you are seeing. Monte
> >"mak" <ankitmm@yahoo.com> wrote in message >news:QvKdnXl4T46XcSXUnZ2dnUVZ_vSdnZ2d@giganews.com... >> Hello, >> >> I am facing an issue in UART receive. When i enable the receive enable
bit
>> in the control register, framming and break error bit interrupt is
raised.
>> I clear the error bit in ISR. Then whatever i transmit by my PC >> (hyperterminal) its not received by UART on the board. >> >> Note: Transmit from board to PC is working fine. >> >> Please suggest a solution of this issue. Thank you! >> >> Regards, >> Mak >> >> > >First, check that the UART rx input isn't stuck Low. >Then check that the polarity going in isn't reversed. >Either condition might cause what you are seeing. > >Monte > > >
Thanks for the reply. I my trying to set baudrate as 115200,parity none, DATA_BIT_8,STOP_BIT_1, no flow control. I have set the UART0 gpios to altc mode as mentioned in the datatsheet. Strange thing is transmit is happening but the moment i set the Rx enable bit framing and break error is set. And if i do this in Symbian envirnoment then this thing happen and when i do in non OS envirnoment then it works fine. I also have doubt on the Rx pin. But not sure whats the issue with it. Plz suggest! Thanks..