Page 847 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 847
for(j=0;j<240;j++)
{
if(i>279)wr_dat(0x0000);
else if(i>239)wr_dat(0x001f);
else if(i>199)wr_dat(0x07e0);
else if(i>159)wr_dat(0x07ff);
else if(i>119)wr_dat(0xf800);
else if(i>79)wr_dat(0xf81f);
else if(i>39)wr_dat(0xffe0);
else wr_dat(0xffff);
}
Set_Cs;
}
4. 실제 프로그램(ATtiny2313)
가. 모터 구동
1) 프로테우스로 구성해 본 회로
- 840 -