org 0h
start:
Setb P0.0;
call delay;
Clr P0.0
setb p0.1
delay1s:
mov r6,#10
x5: call delay100ms
djnz r6,x5
ret
....................................................................
rectify this code to blink 2 leds with 555 timer.555 is connected with p3.7 of at89c2051.
that 555 is controlling externally the blinking rate.the 50k preset is connected with ne555. that preset is main controller to increase decrease of blinking speed.
actually i want to make a circuit like 4017 and 555.that 4017 is controlled by 555ic.
Unless you want to use 555 as an LED driver with 100mA sink/source capability I don’t see any reason why would you use a microcontroller and then 555 ..
Microcontroller such as 8051 can switch on and off quite a number of LEDs and an external timer is not needed ..
Btw. this code is incomplete, so it’s difficult to talk about it’s modification, at this moment it just doesn’t make sense ..
i do not want to use 555 as a switche. actually i want to control the blinking rate of leds. like cd4017 ic's blinking rate of leds are controlled by ne555 ic.
that is my motto to make such circuit with the help of at89c2051.
is any one can help me out?
the ne555 will attached with at89c2051 in pin no p3.7
the switch at p3.3 is used to select a particular design and at port 1 is used to control 3led's or 4 led;s or 6.
the basic logic is timer0 is used in interrupt for 1s delay and timer1 as counter which count the signal coming from ic 555 through p3.5. for every second that is during timer interrupt the micro controller count the number and sets according the timing delay for led.
these funtions are different led sequence, before turning on the led the switch position will checked to control 3, 4 or 6 led or to run in a particular design is checked. after transfering the data to the led port2 the delay will be selected according the last timer interupt value.
but i need a simple code of asm about that matter.
objective:
1) need to blink a single led continuously
2) drive that led by at89c2051
3) blinking rate controlled by ne555(the preset variable resistance will change the blinking rate increase or decrease)
4) ne 555 ic pin no 3 is connected with 2051 p3.7
5) it is simple to use and make.
6) need just a simple asm code bkz i am new in that field so trying to make a simple circuit and code.
Added after 2 minutes:
hi welove8051
thanks for your code.plz help me that above circumstances.
can u give me your mail id.i shall send u my problem elaborately.
then u will understand that.
Added after 2 hours 32 minutes:
my actual project is to make a circuit to blink a single led with at89c2051 and ne555.
i am able to make fixed delay/timer. which helps a fixed blinking rate.
but i am not able to make variable blinking rate with the help of ne555.
my fixed blinking code is:
org 0000h
start:Clr P0.1
setb P0.1
ljmp start;
delay: mov R1,#0FFH
del1: mov R2,#0FFH
del2: djnz R2,del2
djnz R1,del1
ret
end
.............................that is working fine with fixed blinking rate............................
plz give me a easy asm code.
hello, asm=a51 just change the extension to asm. and why are u connecting the ic 555 t p3.7. u can change my actual code to suit your application, just spend some time to understand it, u can able to do that.
hi:-|
it is quite easy to blink a led using microcontroller.you just need a simple circuit and code.there are a lot of sites offering you the complete guidance for it.you can also find it here.
engineersgarage.com/microcontroller/8051projects/interface-leds-AT89C51
mike
hi:-it is quite easy to blink a led using microcontroller.you just need a simple circuit and code.there are a lot of sites offering you the complete guidance for it.you can also find it here. engineersgarage.com/microcontroller/8051projects/interface-leds-AT89C51 mike
As a newbie here in EDA, and all your posts are pointing to the said website. But for your information, it requires registration to view the schematics or download the codes. Thus if you can post the codes and schematics here it will benefit a lot members who do not want a new registration.