Rabu, 28 September 2011
Selasa, 27 September 2011
flip - flop circuit

This circuit represent flip - flop circuit. This circuit showed in proteus simulation.
LED will be light with delay configuration. LED will do changing from ON to OFF or OFF to ON.
LED will be light if it is given low voltage (logic 0). In this opportunity, i used C program..
This is listing program,
//----------------------------
//led flip - flop
//by fais_tech
//----------------------------
#include
#include
void main(void)
{
char a,b;
a=0x0f;
b=0xf0;
DDRA=0xff;
while(1)
{
PORTA=a;
delay_ms(500);
PORTA=b;
delay_ms(500);
}
}
LED will be light with delay configuration. LED will do changing from ON to OFF or OFF to ON.
LED will be light if it is given low voltage (logic 0). In this opportunity, i used C program..
This is listing program,
//----------------------------
//led flip - flop
//by fais_tech
//----------------------------
#include
#include
void main(void)
{
char a,b;
a=0x0f;
b=0xf0;
DDRA=0xff;
while(1)
{
PORTA=a;
delay_ms(500);
PORTA=b;
delay_ms(500);
}
}
Senin, 26 September 2011
profile

Name : Noor Fais
Institute : State Polytechnic of Semarang
Major : Electronic Engineering
Address : Kudus, Central Java, Indonesia