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 ...
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 Thermometer Berbasis Mikrokontroler AT89S52This is a circuit of a microcontroller AT89S52 Thermometer and 12-bit ADC LTC1298, programs written in the language c program wit ...
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 ...
Program Running LED Dengan Software CVAVR Bahasa C++Skema Running LED yang akan di program menggunakan Software CVAVR bahasa C++Program running LED yang di tulis menggunakan s ...