Yahoo Groups archive

Lpc2000

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

Thread

Busted LPC2214?

Busted LPC2214?

2005-08-26 by jensalsig

I use a Olimex LPC2214 board and are having some problems. 
When I run this code (see below) I have a few pins that don't "act
normal". When messuring on a working pin I see a square wave with a
duty cycle of ca. 20% and an amplitude of 3.3 V. When I messure on ex.
P0.2 I have the same duty cycle ratio but the voltage is only 200mV.
The defective pins are: P0.2, P0.3, P0.20, P0.27, P0.28 and P0.29. 

I have used the Timers, RTC and on-chip other perf. with no trouble...

Code:

int main(void)
{
	pll_init();
	GPIO0_IODIR |= 0xffffffff;
	GPIO0_IOSET = 0xffffffff;
	while(1)
	{
		GPIO0_IOSET = 0xffffffff;
		GPIO0_IOCLR = 0xffffffff;
	}
}

Regards Jens Alsig

Re: Busted LPC2214?

2005-08-26 by knatarov

--- In lpc2000@yahoogroups.com, "jensalsig" <alsig@g...> wrote:
> I use a Olimex LPC2214 board and are having some problems. 
> When I run this code (see below) I have a few pins that don't "act
> normal". When messuring on a working pin I see a square wave with a
> duty cycle of ca. 20% and an amplitude of 3.3 V. When I messure on ex.
> P0.2 I have the same duty cycle ratio but the voltage is only 200mV.
> The defective pins are: P0.2, P0.3, P0.20, P0.27, P0.28 and P0.29. 
> 

use pullup resistor

Re: [lpc2000] Re: Busted LPC2214?

2005-08-26 by Jens Alsig

Hi,

I've tried pullup resistors. This just ties the pin to 3.3 volts

Regards Alsig

knatarov wrote:
Show quoted textHide quoted text
> --- In lpc2000@yahoogroups.com, "jensalsig" <alsig@g...> wrote:
> > I use a Olimex LPC2214 board and are having some problems.
> > When I run this code (see below) I have a few pins that don't "act
> > normal". When messuring on a working pin I see a square wave with a
> > duty cycle of ca. 20% and an amplitude of 3.3 V. When I messure on ex.
> > P0.2 I have the same duty cycle ratio but the voltage is only 200mV.
> > The defective pins are: P0.2, P0.3, P0.20, P0.27, P0.28 and P0.29.
> >
>
> use pullup resistor
>
>
>
>
> ------------------------------------------------------------------------
> 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: Busted LPC2214?

2005-08-26 by y4krys

Hi Alsig,
 For pins 2,3 and 20 check what is attached to them.  Pins 27 ..30 
default to AIN0..3, check if PINSEL1 is set correctly.

Krys

--- In lpc2000@yahoogroups.com, "jensalsig" <alsig@g...> wrote:
> I use a Olimex LPC2214 board and are having some problems. 
> When I run this code (see below) I have a few pins that don't "act
> normal". When messuring on a working pin I see a square wave with a
> duty cycle of ca. 20% and an amplitude of 3.3 V. When I messure on 
ex.
> P0.2 I have the same duty cycle ratio but the voltage is only 200mV.
> The defective pins are: P0.2, P0.3, P0.20, P0.27, P0.28 and P0.29. 
> 
> I have used the Timers, RTC and on-chip other perf. with no 
trouble...
Show quoted textHide quoted text
> 
> Code:
> 
> int main(void)
> {
> 	pll_init();
> 	GPIO0_IODIR |= 0xffffffff;
> 	GPIO0_IOSET = 0xffffffff;
> 	while(1)
> 	{
> 		GPIO0_IOSET = 0xffffffff;
> 		GPIO0_IOCLR = 0xffffffff;
> 	}
> }
> 
> Regards Jens Alsig

Re: Busted LPC2214? +

2005-08-26 by knatarov

> > int main(void)
> > {
> > 	pll_init();
> > 	GPIO0_IODIR |= 0xffffffff;
> > 	GPIO0_IOSET = 0xffffffff;
> > 	while(1)
> > 	{
> > 		GPIO0_IOSET = 0xffffffff;

--> here need dealay 
Show quoted textHide quoted text
> > 		GPIO0_IOCLR = 0xffffffff;
> > 	}
> > }
> > 
> > Regards Jens Alsig

Re: Busted LPC2214?

2005-08-26 by Zdravko

On LPC2214 P0.2(pin 50), P0.3(pin 58) are open drain outputs when
configured as GPIO.
The rest of the "defective" pins belong to PINSEL1. With the posted
code you configure only the GPIO which belong to PINSEL0.
Read the UserManual.

Regards
Zdravko

--- In lpc2000@yahoogroups.com, "jensalsig" <alsig@g...> wrote:
Show quoted textHide quoted text
> I use a Olimex LPC2214 board and are having some problems. 
> When I run this code (see below) I have a few pins that don't "act
> normal". When messuring on a working pin I see a square wave with a
> duty cycle of ca. 20% and an amplitude of 3.3 V. When I messure on ex.
> P0.2 I have the same duty cycle ratio but the voltage is only 200mV.
> The defective pins are: P0.2, P0.3, P0.20, P0.27, P0.28 and P0.29. 
> 
> I have used the Timers, RTC and on-chip other perf. with no trouble...
> 
> Code:
> 
> int main(void)
> {
> 	pll_init();
> 	GPIO0_IODIR |= 0xffffffff;
> 	GPIO0_IOSET = 0xffffffff;
> 	while(1)
> 	{
> 		GPIO0_IOSET = 0xffffffff;
> 		GPIO0_IOCLR = 0xffffffff;
> 	}
> }
> 
> Regards Jens Alsig

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.