I am trying to determine if my microprocessor is operating properly. I have uploaded the following piece of code:
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?