EmbeddedRelated.com
Forums

LPC23xx UART Issue :Disable Uart Interupts and reenable it again

Started by prab...@yahoo.co.in January 31, 2010
Hi all,
I am using LPC2364 processor and implemented UART ISR.Its working fine.I have to disable UART interrupts before go to Powerdown mode and reenable it again after wake up from powerdown mode.For that i am using following code

Disable:
Clear UART bit in PCONP
then UxIER = ox00;
ClrInterruptSource = UxIIR | UXRBR |UxLSR;
Leave VIC Interrupt setting as it is.

ReEnable:

Set UART PCONP bit.
UxIER = 0x07;

Issue: First i disabled.then go to powermode.
Reenable it after wakeup from Powerdown.

After reenabled uart interrupts,i didnt get any UART interrupts.
but Program not hangs anywhere.If i missed any info let me know???
Do i have to follow any steps for enable and disable uart???

Thanks

An Engineer's Guide to the LPC2100 Series

Did you check that global arm interrupts are enabled after wakeup?

On Sun, Jan 31, 2010 at 3:47 AM, wrote:

> Hi all,
> I am using LPC2364 processor and implemented UART ISR.Its working fine.I
> have to disable UART interrupts before go to Powerdown mode and reenable it
> again after wake up from powerdown mode.For that i am using following code
>
> Disable:
> Clear UART bit in PCONP
> then UxIER = ox00;
> ClrInterruptSource = UxIIR | UXRBR |UxLSR;
> Leave VIC Interrupt setting as it is.
>
> ReEnable:
>
> Set UART PCONP bit.
> UxIER = 0x07;
> Issue: First i disabled.then go to powermode.
> Reenable it after wakeup from Powerdown.
>
> After reenabled uart interrupts,i didnt get any UART interrupts.
> but Program not hangs anywhere.If i missed any info let me know???
> Do i have to follow any steps for enable and disable uart???
>
> Thanks
>
>
>
Yes.Other Interrupts works fine like RTC interrupt.

________________________________
From: scott nichols
To: l...
Sent: Sun, 31 January, 2010 9:24:12 PM
Subject: Re: [lpc2000] LPC23xx UART Issue :Disable Uart Interupts and reenable it again

Did you check that global arm interrupts are enabled after wakeup?
On Sun, Jan 31, 2010 at 3:47 AM, wrote:

>
> >>>
>
>Hi all,
>> I am using LPC2364 processor and implemented UART ISR.Its working fine.I have to disable UART interrupts before go to Powerdown mode and reenable it again after wake up from powerdown mode.For that i am using following code
>
>>Disable:
>> Clear UART bit in PCONP
>> then UxIER = ox00;
>> ClrInterruptSource = UxIIR | UXRBR |UxLSR;
>> Leave VIC Interrupt setting as it is.
>
>>ReEnable:
>
>>Set UART PCONP bit.
>> UxIER = 0x07;
>>Issue: First i disabled.then go to powermode.
>> Reenable it after wakeup from Powerdown.
>
>>After reenabled uart interrupts,i didnt get any UART interrupts.
>>but Program not hangs anywhere.If i missed any info let me know???
>>Do i have to follow any steps for enable and disable uart???
>
>>Thanks

The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/
Do you need to re-start the PLL after power-down mode? Just a guess.

Yes.i have restarted PLL after wakeup from Power down mode.

________________________________
From: brian_myers888
To: l...
Sent: Tue, 2 February, 2010 12:01:08 AM
Subject: [lpc2000] Re: LPC23xx UART Issue :Disable Uart Interupts and reenable it again

Do you need to re-start the PLL after power-down mode? Just a guess.

Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! http://downloads.yahoo.com/in/internetexplorer/