At 04:13 AM 3/30/04 +0000, you wrote:
>Thank you, Robert. Where is it? I have an oscilloscope here and can
>watch the toggled pin wave.
>Waiting for you.
I was going to clean this up a little first, but I think you need it more
than I need to clean it up ;)
http://www.aeolusdevelopment.com/Files/test1.hex
Fairly simple source.
#include "lpc210x.h"
int main( void)
{
int out = 0;
int i;
PINSEL0 &= 0;
IODIR |= 0x100;
while( 1) {
if( out == 0) {
out = 1;
IOSET = 0x100;
}
else {
out = 0;
IOCLR = 0x100;
}
for( i = 0; i < 100000; i++) {
}
}
return( 0);
}
This is an old hex of mine. One of the first test ones I used. I just
tested it to make sure it works and it produces about a 0.5 Hz square wave
with a 10MHz clock. Should be translatable to most compilers.
I'll make a cleaner version available but in the meantime this should run.
Robert
" 'Freedom' has no meaning of itself. There are always restrictions,
be they legal, genetic, or physical. If you don't believe me, try to
chew a radio signal. "
Kelvin Throop, IIIMessage
Re: [lpc2000] Re: lpc2105 Upload program
2004-03-30 by Robert Adsett
Attachments
- No local attachments were found for this message.