Reply by rggmns April 12, 20062006-04-12
Hello,

problem is solved.
It's the philips manual that sucks.
It does not explain in de pin description that p0.14 is used to select
between run mode and isp mode.
Without proper interfacing my controller never got in the run mode,
but stayed in the isp mode.
Problem is solved.

Greatings

--- In l..., "Andrew Berney" wrote:
>
> I assume these pins are set as GPIO then? (We can't see Pinsel here).
> Also, what do you actually mean by 'not running' - it strikes me you
could
> effectively be toggling the pin outputs rather quickly depending on your
> inputs.
>
> Andy
>
> -----Original Message-----
> From: l... [mailto:l...]On Behalf
> Of rggmns
> Sent: 11 April 2006 17:29
> To: l...
> Subject: [lpc2000] LPC2103.h file from Keil
> Sorry about de last post.
> It seems Keil has replaced the old LPC2103.h with a new one.
> This last version generates correct addresses.
>
> The code is not running, included the "very difficult code".
> #include void main()
> {
> unsigned long i;
> unsigned long j=0x0000ff00;
> IODIR=0x0000ff00; //set pin direction
> while (1)
> {
> i=IOPIN & 0x00ff0000 + 1; //delay value
>
> IOCLR=j; //toggle I/O pins
> j=~j;
> IOSET=j;
> while (i!=0) //time delay
> {
> i=i-1;
> }
> }
> }
> It runs fine on the LPC2138.
>
> What is wrong?
>
> Me again

An Engineer's Guide to the LPC2100 Series

Reply by Andrew Berney April 12, 20062006-04-12
I assume these pins are set as GPIO then? (We can't see Pinsel here).
Also, what do you actually mean by 'not running' - it strikes me you could
effectively be toggling the pin outputs rather quickly depending on your
inputs.

Andy

-----Original Message-----
From: l... [mailto:l...]On Behalf
Of rggmns
Sent: 11 April 2006 17:29
To: l...
Subject: [lpc2000] LPC2103.h file from Keil
Sorry about de last post.
It seems Keil has replaced the old LPC2103.h with a new one.
This last version generates correct addresses.

The code is not running, included the "very difficult code".
#include

void main()
{
unsigned long i;
unsigned long j=0x0000ff00;
IODIR=0x0000ff00; //set pin direction
while (1)
{
i=IOPIN & 0x00ff0000 + 1; //delay value

IOCLR=j; //toggle I/O pins
j=~j;
IOSET=j;
while (i!=0) //time delay
{
i=i-1;
}
}
}
It runs fine on the LPC2138.

What is wrong?

Me again
Reply by rggmns April 11, 20062006-04-11
Sorry about de last post.
It seems Keil has replaced the old LPC2103.h with a new one.
This last version generates correct addresses.

The code is not running, included the "very difficult code".
#include

void main()
{
unsigned long i;
unsigned long j=0x0000ff00;
IODIR=0x0000ff00; //set pin direction
while (1)
{
i=IOPIN & 0x00ff0000 + 1; //delay value

IOCLR=j; //toggle I/O pins
j=~j;
IOSET=j;
while (i!=0) //time delay
{
i=i-1;
}
}
}
It runs fine on the LPC2138.

What is wrong?

Me again