Laporan Akhir Percobaan 2 Modul 3
2. Rangkaian Simulasi [kembali]
3. Flowchart [kembali]
4. Listing Program [kembali]
#include <mega128.h>
#include <delay.h>
int pin[]={1,2,4,8};
int i;
void putar()
{
for(i=4;i>=0;i--)
{
PORTD = pin[i];
delay_ms(300); }
}
void main(void){
PORTA = 0X00;
DDRA = 0X00;
PORTD = 0X00;
DDRD = 0XFF;
while(1)
{
if (PINA.2 == 1)
{
putar();
}
}
}
5. Video [kembali]
6. Kondisi [kembali]
Memutar motor ke arah kanan.
7. Link Download [kembali]
Download rangkaian proteus Disini
Download video rangkaian Disini
Download file program Disini
Komentar
Posting Komentar