Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

uC hangs when initialising external interrupt

uC hangs when initialising external interrupt

2005-11-23 by laurensswaans

Hello,

I'm using the LPC2129 (on the MCB2100 board by Keil) to communicate 
with an ADC via SPI. The ADC sends a pulse when new data is valid on 
its output and I use this pin to trigger an external interrupt.
I've used interrupts in my designs before so I have a  
routine that works. But as soon as I add the functions (init and 
ISR) the 
microcontroller won't work anymore.

Anyone any idea how come? Has anyone experienced this before?

Besides that, The SPI interface isn't quite working as supposed. 
I've written a program that sends several bytes to the ADC (setting 
some registers). When I'm debugging the microcontroller with the 
ULINK JTAG interface it all works as supposed, but when I stop 
debugging and let the controller run on its own, the bytes that I 
sent did not reach the ADC??????

Any kind of help will be rewarded,

Thanks in advance, Laurens

Re: [lpc2000] uC hangs when initialising external interrupt

2005-11-23 by Richard Duits

Hello Laurens,

Please take a look a the errata for the part you are using.
Hint: EXTMODE and EXTPOLAR and also the SPI have some bugs in the first 
LPCs.

Richard.

laurensswaans wrote:
Show quoted textHide quoted text
> Hello,
>
> I'm using the LPC2129 (on the MCB2100 board by Keil) to communicate
> with an ADC via SPI. The ADC sends a pulse when new data is valid on
> its output and I use this pin to trigger an external interrupt.
> I've used interrupts in my designs before so I have a 
> routine that works. But as soon as I add the functions (init and
> ISR) the
> microcontroller won't work anymore.
>
> Anyone any idea how come? Has anyone experienced this before?
>
> Besides that, The SPI interface isn't quite working as supposed.
> I've written a program that sends several bytes to the ADC (setting
> some registers). When I'm debugging the microcontroller with the
> ULINK JTAG interface it all works as supposed, but when I stop
> debugging and let the controller run on its own, the bytes that I
> sent did not reach the ADC??????
>
> Any kind of help will be rewarded,
>
> Thanks in advance, Laurens
>
>
>
>
>
> ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
>     *  Visit your group "lpc2000
>       <http://groups.yahoo.com/group/lpc2000>" on the web.
>        
>     *  To unsubscribe from this group, send an email to:
>        lpc2000-unsubscribe@yahoogroups.com
>       <mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>        
>     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------------------------------------------------
>

Re: [lpc2000] uC hangs when initialising external interrupt

2005-11-28 by Laurens Swaans

Ik doe het maar in het nederlands he?
   
  Ik gebruik een evaluation board van Keil, kortom ik kan zo 123 geen errata vinden. Bij de leverbon staat niks vermeld van wat voor controller er op zit...
   
  Heb jij enig idee hoe ik daarachter kom (via uitlezen ID of zo??)
   
  Alvast bedankt,
   
  Laurens

Richard Duits <yahoo@...> wrote:
  Hello Laurens,

Please take a look a the errata for the part you are using.
Hint: EXTMODE and EXTPOLAR and also the SPI have some bugs in the first 
LPCs.

Richard.

laurensswaans wrote:

> Hello,
>
> I'm using the LPC2129 (on the MCB2100 board by Keil) to communicate
> with an ADC via SPI. The ADC sends a pulse when new data is valid on
> its output and I use this pin to trigger an external interrupt.
> I've used interrupts in my designs before so I have a 
> routine that works. But as soon as I add the functions (init and
> ISR) the
> microcontroller won't work anymore.
>
> Anyone any idea how come? Has anyone experienced this before?
>
> Besides that, The SPI interface isn't quite working as supposed.
> I've written a program that sends several bytes to the ADC (setting
> some registers). When I'm debugging the microcontroller with the
> ULINK JTAG interface it all works as supposed, but when I stop
> debugging and let the controller run on its own, the bytes that I
> sent did not reach the ADC??????
>
> Any kind of help will be rewarded,
>
> Thanks in advance, Laurens
>
>
>
>
>
> ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
>     *  Visit your group "lpc2000
>       <http://groups.yahoo.com/group/lpc2000>" on the web.
>        
>     *  To unsubscribe from this group, send an email to:
>        lpc2000-unsubscribe@yahoogroups.com
>       <mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>        
>     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------------------------------------------------
>


    
---------------------------------
  YAHOO! GROUPS LINKS 

    
    Visit your group "lpc2000" on the web.
    
    To unsubscribe from this group, send an email to:
 lpc2000-unsubscribe@yahoogroups.com
    
    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 

    
---------------------------------
  

  


		
---------------------------------
Yahoo! Messenger  NEW - crystal clear PC to PC calling worldwide with voicemail 

[Non-text portions of this message have been removed]

Re: [lpc2000] uC hangs when initialising external interrupt

2005-11-28 by Rob Jansen

>     Ik doe het maar in het nederlands he?
>
>    Ik gebruik een evaluation board van Keil, kortom ik kan zo 123 geen
> errata vinden. Bij de leverbon staat niks vermeld van wat voor
> controller er op zit...
>
>    Heb jij enig idee hoe ik daarachter kom (via uitlezen ID of zo??)

Laurens,

with a good light source (e.g. Halogen lamp) you can just read the small
print on the device.
If you look on the product information page at the Philips website
(http://www.semiconductors.philips.com/pip/LPC2119.html for the lpc2129)
you will find an errata sheet almost at the bottom of the page under
"Support & tools". That document also describes what to look for.

Good luck,

Rob

Re: [lpc2000] uC hangs when initialising external interrupt

2005-11-28 by Richard Duits

Hoi Laurens,

In je eerste mail heb je het over LPC2129 dus dat is de chip waar de je 
errata voor moet opvragen. Het typenummer staat ook op het IC 
(waarschijnlijk de grootste op het bord). De errata, user manuals, etc. 
zijn te vinden op de Product Information Page (PIP) van de LPC2129:
http://www.semiconductors.philips.com/pip/LPC2119FBD64.html

Groeten,
Richard.


Laurens Swaans wrote:
Show quoted textHide quoted text
> Ik doe het maar in het nederlands he?
>   
>   Ik gebruik een evaluation board van Keil, kortom ik kan zo 123 geen 
> errata vinden. Bij de leverbon staat niks vermeld van wat voor 
> controller er op zit...
>   
>   Heb jij enig idee hoe ik daarachter kom (via uitlezen ID of zo??)
>   
>   Alvast bedankt,
>   
>   Laurens
>
> Richard Duits <yahoo@...> wrote:
>   Hello Laurens,
>
> Please take a look a the errata for the part you are using.
> Hint: EXTMODE and EXTPOLAR and also the SPI have some bugs in the first
> LPCs.
>
> Richard.
>
> laurensswaans wrote:
>
> > Hello,
> >
> > I'm using the LPC2129 (on the MCB2100 board by Keil) to communicate
> > with an ADC via SPI. The ADC sends a pulse when new data is valid on
> > its output and I use this pin to trigger an external interrupt.
> > I've used interrupts in my designs before so I have a
> > routine that works. But as soon as I add the functions (init and
> > ISR) the
> > microcontroller won't work anymore.
> >
> > Anyone any idea how come? Has anyone experienced this before?
> >
> > Besides that, The SPI interface isn't quite working as supposed.
> > I've written a program that sends several bytes to the ADC (setting
> > some registers). When I'm debugging the microcontroller with the
> > ULINK JTAG interface it all works as supposed, but when I stop
> > debugging and let the controller run on its own, the bytes that I
> > sent did not reach the ADC??????
> >
> > Any kind of help will be rewarded,
> >
> > Thanks in advance, Laurens
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> > YAHOO! GROUPS LINKS
> >
> >     *  Visit your group "lpc2000
> >       <http://groups.yahoo.com/group/lpc2000>" on the web.
> >       
> >     *  To unsubscribe from this group, send an email to:
> >        lpc2000-unsubscribe@yahoogroups.com
> >       <mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe>
> >       
> >     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> >       Service <http://docs.yahoo.com/info/terms/>.
> >
> >
> > ------------------------------------------------------------------------
> >
>
>
>    
> ---------------------------------
>   YAHOO! GROUPS LINKS
>
>    
>     Visit your group "lpc2000" on the web.
>    
>     To unsubscribe from this group, send an email to:
> lpc2000-unsubscribe@yahoogroups.com
>    
>     Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
>    
> ---------------------------------
>  
>
>  
>
>
>            
> ---------------------------------
> Yahoo! Messenger  NEW - crystal clear PC to PC calling worldwide with 
> voicemail
>
> [Non-text portions of this message have been removed]
>
>
> ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
>     *  Visit your group "lpc2000
>       <http://groups.yahoo.com/group/lpc2000>" on the web.
>        
>     *  To unsubscribe from this group, send an email to:
>        lpc2000-unsubscribe@yahoogroups.com
>       <mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>        
>     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------------------------------------------------
>

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.