Hi,
Thanks Andy it works now on my Olicom LPC2148. Here is my code for
reference:
#include "LPC214x.h"
volatile unsigned int j=1000000;
int main(void)
{
unsigned int i;
PINSEL2&= 0xfffffff3; // Make sure GPIO1.24 = GPIO Function
IODIR1= 1<<24; // Set GPIO1.24 = Output
j=5000000;
while(1) {
IOCLR1 = 1<<24;
for(i=0;i<j;i++);
IOSET1 = 1<<24;
for(i=0;i<j;i++);
}
}
--- In lpc2000@yahoogroups.com, "Andrew Berney" <amb@...> wrote:
> Kind of right... but Pinsel2 should be: &= 0xFFFFFFF3;
>
> bits 0..1 are reserved with reset value 0x0 (obviously And them with
1 to
> preserve)
> bit 2 is 0 for GPIO for P1.16-31 and 1 to turn on Debug Port
> bit 3 is 0 for GPIO for P1.16-31 and 1 to turn on Trace
>
> table 63 in the manual for pinsel2.
>
> AndyMessage
Re: I could use some IAR blinking code.
2006-05-22 by pfavr2
Attachments
- No local attachments were found for this message.