I think I'm going slightly mad! I'm quite new to embedded development (got a few years experience in server/client devving).
What I'm trying to do, is make a LED flash. Code is as follows:
Code:
void main() {
TRISC = 0x00;
PORTC = 0x00;
for(; ;) {
PORTC.F0 = 0xFF;
delay_ms(500);
PORTC.F0 = 0x00;
[B] delay_ms(500); //add this to make it off[/B]
}
}
I'm writing the code in MikroC, and simulating it in Proteus using a PIC18F4553 device. The LED goes on, but does not flash. Am I missing something?