UART0 LSR self-clearing

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

UART0 LSR self-clearing

995件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Scribe on Mon Jan 14 07:24:06 MST 2013
Hi guys,

I'm suffering from a little confusion. I'm banging a few bytes over to an LPC1227 running in 485 mode, they're reaching the FIFO buffer but at no stage is the RBR interrupt being triggered and, when I use Keil's Debug View to inspect UART0, the LSR appears to be clearing itself, even though it's not meant to clear until it has been read.

Other interrupts such as RX Line Interrupt appear to trigger just fine.

Any ideas?

Many thanks
ラベル(1)
0 件の賞賛
返信
1 返信

948件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jgorsk on Mon Mar 11 05:20:41 MST 2013
Hi,

I'm not sure if that's the case with your micro, but Keil debugger
is reading out the receiver fifo when the UART register view window
is on. It reads all the other relevant registers making debugging impossible.

Try testing your program with the uart register view closed. That might help.
0 件の賞賛
返信