I've been trying to get through this thread, but it's just to long. I've built the 500 amp controller from Paul's kit, but I can't get the source code posted on the Wiki to run.
I'm using Programmer's Notepad with AVR Dude, and Sparkfun's Pocket AVR Programmer. I can program the 168 fine, I've written my own code to test the LED, UART, and ADC. It's not a programmer or communication problem, it's something with the Paul's code (or the way my complier interprets it). I'm a fare programmer but for the life of me I can't figure this out. I've take the code from the wiki, add this:
int main(void)
{
int x;
unsigned tm_show_data;
unsigned char cmdpos, cmdok;
char cmd[32];
char str[80];
DDRD = 0b11000000;
PORTD = 0b01000000;
but the idle Led never lights up.
Has anyone else used my same setup? Any advice? Thanks guys...
PS. Is there a controller help thread where I should have posted this?
Last edited by Camaro; 05-04-2011 at 12:31 AM..
|