AVR Program LED Kedip dan penjelasan:
===================================================================
#include
#include
void main(void) //awalan
{
PORTA=0x00; //awalan PORTA adalah 0
DDRA=0xFF; //PORTA sebagai output
while (1);
{
PORTA = 0xFF; // menyalakan LED
delay_ms(100); // waktu menyala 500ms
PORTA = 0x00; // mematikan led
delay_ms(100); //waktu mati 500ms
} //while
} //main
==================================================================
Berikut hasil simulasi program di atas menggunakan Software Proteus
Saturday, February 10, 2018
CodeVision AVR LED Kedip
Artikel Terkait CodeVision AVR LED Kedip :
Cara Mrogram mikrokontroller AT89S52 Mengunakan Programmer 2.15Mrogram mikrokontroller AT89S52 Via Programmer 2.15Programmer 2.15 is a software specifically developed for programming, read, or ...
Sistem Minimum Mikrokontroler ATmega8535Minimum System ATmega8535 microcontroller, is the minimum necessary circuits for the operation of the microcontroller IC, then th ...
DAFTAR INSTRUKSI PEMROGRAMAN ASSEMBLY AT89S51/S52Kelompok Instruksi AritmatikaADD A,Rn (Add register to A).ADD A, (direct Add direct byte to A).ADD A, ...
Rangkaian Pengukur JarakThis circuit Can be Used to Measure distance covered by bicycle using a reed switch as the sensor and use the magnet tied to a wh ...
Dasar Pemrograman LCD 2×16 Menggunakan CV AVR LCD yang paling banyak digunakan saat ini ialah tipe M1632 karena harganya cukup murah. LCD M1632 merupakan modul LCD dengan tam ...