Final Report - Claymore - Grand Valley State University
Final Report - Claymore - Grand Valley State University
Final Report - Claymore - Grand Valley State University
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
{<br />
}<br />
int target;<br />
if((PINA & 0x01) !=0) //PA0<br />
{<br />
}<br />
target = TARGET_1;<br />
else if((PINA & 0x02) !=0) //PA1<br />
{<br />
}<br />
else if<br />
{<br />
}<br />
target = TARGET_2;<br />
((PINA & 0x04) !=0)//PA2<br />
else if ((PINA<br />
& 0x08) !=0) //PA3<br />
else target<br />
= Start;<br />
/* ---------------------------------------------------------------------<br />
-*/<br />
{<br />
}<br />
void<br />
delay(int ticks) //ticks are approximately 1ms<br />
{<br />
}<br />
{<br />
}<br />
target = TARGET_3;<br />
target = TARGET_4;<br />
return target;<br />
volatile int i, j;<br />
for(i = 0; i < ticks;<br />
i++)<br />
for(j = 0;<br />
j < 465; j++);<br />
/*-------------------------------<br />
Main -------------------------------<br />
*/<br />
36