Yahoo Groups archive

Lpc2000

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

Message

LPC2103.h file from Keil

2006-04-11 by rggmns

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	<lpc2103.h>

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

Attachments

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.