Mikro Percobaan 2 Modul 3
3. Flowchart [kembali]
#include <mega128.h>
#include <delay.h>
void main(void){
PORTA = 0X00;
DDRA = 0X00;
PORTD = 0X00;
DDRD = 0XFF;
while(1)
{
if (PINA.2 == 1)
{
PORTD = 0X79;
delay_ms(100);
}
else {
PORTD=0X00;
delay_ms(100); }
}}
#include <delay.h>
void main(void){
PORTA = 0X00;
DDRA = 0X00;
PORTD = 0X00;
DDRD = 0XFF;
while(1)
{
if (PINA.2 == 1)
{
PORTD = 0X79;
delay_ms(100);
}
else {
PORTD=0X00;
delay_ms(100); }
}}
5. Video [kembali]
6. Kondisi [kembali]
Menampilkan huruf E pada sevensegmen
7. Link Download [kembali]
Komentar
Posting Komentar