View Single Post
Old 05-04-2011, 12:01 AM   #4694 (permalink)
Camaro
EcoModding Lurker
 
Join Date: Mar 2009
Location: Ohio
Posts: 16
Thanks: 8
Thanked 15 Times in 6 Posts
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..
  Reply With Quote