go away spammer

Author Topic: How to tell if ATMega168 is operating properly  (Read 1498 times)

0 Members and 1 Guest are viewing this topic.

Offline dmcliftonTopic starter

  • Jr. Member
  • **
  • Posts: 42
  • Helpful? 1
How to tell if ATMega168 is operating properly
« on: February 15, 2011, 10:31:00 AM »
I am trying to determine if my microprocessor is operating properly. I have uploaded the following piece of code:

Code: [Select]
int main(void)
{
configure_ports(); // configure which ports are analog, digital, etc.

while(1)
{
PORT_ON(PORTD, 0);
PORT_ON(PORTD, 1);
PORT_ON(PORTD, 2);
PORT_ON(PORTD, 3);
     PORT_ON(PORTD, 4);//turn LED on
}

return 0;
}

(this is using the header file from the $50 robot tutorial).

I upload this, test the voltages on the pins of the D ports and get something between .3 and .8 on all. I then adjust all the PORT_ON to PORT_OFF and upload the code. I check the voltages and get the same.

Does this indicate that it is not working properly, or do the voltages mean nothing?

Offline amando96

  • Robot Overlord
  • ****
  • Posts: 187
  • Helpful? 1
Re: How to tell if ATMega168 is operating properly
« Reply #1 on: February 18, 2011, 01:49:29 PM »
Are you sure it's wired correctly?
Rorcle, 60% complete
AATV, 5% complete

Offline dmcliftonTopic starter

  • Jr. Member
  • **
  • Posts: 42
  • Helpful? 1
Re: How to tell if ATMega168 is operating properly
« Reply #2 on: February 18, 2011, 02:02:38 PM »
Are you sure it's wired correctly?

I thought it was - however, I was able to nab another chip from a friend and same results. I have checked the connectivity and voltages all over and I can't find anything off from what I think I should expect. However, the situation on this board is awful in terms of soldering - it was my first attempt to learn and it looks like it. I honestly think at this point my best path forward may be to scrap it and start from scratch.

 


Get Your Ad Here

data_list