Hi guys, Im continuing on a project started by someone else and having a few issues just debugging to see where the code gets up to.
I'm using a Mega8-16 with AVRISP2 in conjunction with AVRStudio.
I've hooked up an LED to PortD and when I run a basic LED flash program everything is fine (5V at PD7 with the LED flashing once). eg.
DDRD = 0xff;
PORTD |= (1 << PD7);
PORTD &= ~(1 << PD7);
However when I insert this code into the main function of the existing program (not forgetting to import