Using BREAK DETEC with UART, LPC936

Started by abaehne November 24, 2008
Hello,

I would like to use the BREAK DETEC Flag to handle the following data
in the BREAK DETECT ISR. In the NXP User Manual for the LPC936 I'read
that the UART goes in an Idle Mode when an BREAK DETECT occurs and the
UART wakes up when a stop bit is read. This could means for me that the
first Byte, which comes direkly after the BREAK DETECT, is not in the
SBUF because of the Idle Mode of the UART at this time.
Does anybody know how I could force the UART to stay awake after a
BREAK DETECT?

Regards
Andi
simple solution would be to connect the pin to the INT0.

On Mon, Nov 24, 2008 at 1:23 PM, abaehne wrote:

> Hello,
>
> I would like to use the BREAK DETEC Flag to handle the following data
> in the BREAK DETECT ISR. In the NXP User Manual for the LPC936 I'read
> that the UART goes in an Idle Mode when an BREAK DETECT occurs and the
> UART wakes up when a stop bit is read. This could means for me that the
> first Byte, which comes direkly after the BREAK DETECT, is not in the
> SBUF because of the Idle Mode of the UART at this time.
> Does anybody know how I could force the UART to stay awake after a
> BREAK DETECT?
>
> Regards
> Andi
>

--
Doshi Harshal
POTENT
F-27, VRAJWADI COMPLEX,
Nr. UTKARSH SCHOOL,
Gadapura,
VADODARA
GUJARAT 390015, INDIA
PH: 09429071421
www.potent.co.in
Hello,

thanks for answer. I don't understand the advantage to work with INT0.
Could you please explain it to me?
Thanks.
--- In l..., "Harshal Doshi"
wrote:
>
> simple solution would be to connect the pin to the INT0.
>
>
>
> On Mon, Nov 24, 2008 at 1:23 PM, abaehne wrote:
>
> > Hello,
> >
> > I would like to use the BREAK DETEC Flag to handle the following
data
> > in the BREAK DETECT ISR. In the NXP User Manual for the LPC936
I'read
> > that the UART goes in an Idle Mode when an BREAK DETECT occurs
and the
> > UART wakes up when a stop bit is read. This could means for me
that the
> > first Byte, which comes direkly after the BREAK DETECT, is not in
the
> > SBUF because of the Idle Mode of the UART at this time.
> > Does anybody know how I could force the UART to stay awake after a
> > BREAK DETECT?
> >
> > Regards
> > Andi
> >
> >
> >
>
>
>
> --
> Doshi Harshal
> POTENT
> F-27, VRAJWADI COMPLEX,
> Nr. UTKARSH SCHOOL,
> Gadapura,
> VADODARA
> GUJARAT 390015, INDIA
> PH: 09429071421
> www.potent.co.in
>