jepoy12
Junior Member level 3
After programming my Atmega16A I tried running it along with all in the circuit.
heres the circuit. its a cellphone controlled robot car
**broken link removed**
I tested it using a phone and called the other phone connected to the circuit then try pressing button "2" for forward but the motor didnt run.
Im trying to find out what part I might have done something wrong, so I will start with the ATmega16A uC.
heres the program of it.
I use this target board.
**broken link removed**
and my Programmer setting. Im using ProgISP v1.72
**broken link removed**
one of my classmate said that I might miss something on the setting.
I really dont know if I program my Atmega16A correctly.
Please help me.
heres the circuit. its a cellphone controlled robot car
**broken link removed**
I tested it using a phone and called the other phone connected to the circuit then try pressing button "2" for forward but the motor didnt run.
Im trying to find out what part I might have done something wrong, so I will start with the ATmega16A uC.
heres the program of it.
#include <mega16.h>
void main(void)
{
unsigned int k, h;
DDRA=0x00;
DDRD=0XFF;
while (1)
{
k =~PINA;
h=k & 0x0F;
switch (h)
{
case 0x02:
{
PORTD=0x89;
break;
}
case 0x08:
{
PORTD=0x86;
break;
}
case 0x04:
{
PORTD=0x85;
break;
}
case 0x06:
{
PORTD=0x8A;
break;
}
case 0x05:
{
PORTD=0x00;
break;
}
}
}
}
I use this target board.
**broken link removed**
and my Programmer setting. Im using ProgISP v1.72
**broken link removed**
one of my classmate said that I might miss something on the setting.
I really dont know if I program my Atmega16A correctly.
Please help me.