Programs Load but Specified pins don't respond
I'm using USB tiny with the Atmel 328p chip. Avrdude works fine. Finds the chip etc. I wrote a simple program using WinAVR in C++. The program is simple test to turn on an LED as follows. The MAKEFile was edited to use the right chip and programmer.
DDRB = 0b00000001; //select PortB pin 0, which is pin 14 on the chip, to output
PORTB = 0b00000001; // make pin 14 high;
The program loads fine - no errors, the block at the bottom says the chip accepted the program, but pin 14 doesn't go high. I checked with voltage on that pin and it stays at zero.
I've tried the same program with PORTC instead of B with the same result.
Any idea what's going on? Why doesn't this work?
Last edited by adafruit_support_rick
on Sat Jan 26, 2013 9:31 am, edited 1 time in total.
Reason: Moved topic to General Project Help