led chaser pattern repetiton
Do they both give the same result ?
Try this minimal version..does it work ?.
ExperimenterUK
yes sir both give same result.
sir, in this minimal version i can see the rotation on pins but when i connect the leds it gives same result as before i described.
sir are you sure code is ok?
As far as I can see, adding the LEDs should make no difference
to the simulation.
I suggest you add your components to the minimal circuit
one bit at a time and see where it stops working.
Let us know what happens.
i fell that problem is in hardware
let me tell one thing when all port is high and all port is low what is status of your leds
if no status change then its like a switching problem or some soldering issue in hardware
Proteus do not need a lot of components for simulation
it just need hex file and oscillator speed to verify your logic
I suggest you add your components to the minimal circuit
one bit at a time and see where it stops working.
Let us know what happens.ExperimenterUK
sir i have tried too many times, after adding more than two leds same problem occurs.
@ sankalp_s
i fell that problem is in hardware
let me tell one thing when all port is high and all port is low what is status of your leds
if no status change then its like a switching problem or some soldering issue in hardware
Proteus do not need a lot of components for simulation
it just need hex file and oscillator speed to verify your logicmajoka
hello sir, thank u for your interest ,
sir, I have tried this code with a complete pcb(led chaser) having same components where other programmed microcontroller (came with this pcb) works fine but my code gives same result.
even output pins are same.
This program will do what Majoka suggested... turn all LEDs on and off in a loop.
Try it in your hardware and let us know what happens
and how fast they switch.
Which micro are you using. ?
Is it exactly the same as the one on the board you bought ?
[ Edited Wed Jan 27 2016, 03:52 am ]
Make sure the push button input pins are pulled high.
This program will do what Majoka suggested... turn all LEDs on and off in a loop.
Try it in your hardware and let us know what happens
and how fast they switch.
ExperimenterUK
sir this code is working fine in my hardware. and switching time is near about 1 sec.
Which micro are you using. ?
Is it exactly the same as the one on the board you bought ?
i'm using at89c52, same as that one.....push buttons are also pulled high.
[ Edited Fri Jan 29 2016, 12:07 am ]
and I think I know the answer.
problem is in chaser pattern when four led get off(as per code instruction) at same time, same leds blink with very low light.as per instructions lesds should not be blinked.sankalp_s
Your code says..
DESGN8: CALL DELAY CALL ALLON CLR L1 CLR L2 CLR L3 CLR L4 CALL DELAY CALL ALLON CLR L2 CLR L3 CLR L4 CLR L5 CALL DELAY CALL ALLON CLR L3 CLR L4 CLR L5 CLR L6 CALL DELAY CALL ALLON CLR L4 CLR L5 CLR L6 CLR L7
You turn the LEDS off for a long time then on for a very short time.
Because the on time is so short the LED appears to glow dimly/blink
Make sure P3.5 is pulled high as well.
[ Edited Fri Jan 29 2016, 04:50 am ]
You turn the LEDS off for a long time then on for a very short time.
Because the on time is so short the LED appears to glow dimly/blinkExperimenterUK
ok sir but what is solution for it. will i have to dump this code?
Make sure P3.5 is pulled high as well.
yes p3.5 is pulled high.
[ Edited Sat Jan 30 2016, 12:28 am ]
ok sir but what is solution for it. will i have to dump this code?sankalp_s
The code works.
But what you tell it to do is wrong.
To turn LEDs on then off so you can see the effect just add
delays between each change.
For example...
DESGN8: CALL ALLON CLR L1 CLR L2 CLR L3 CLR L4 CALL DELAY ;delay to see leds off CALL ALLON CALL DELAY ;add a delay to see all leds on CLR L2 CLR L3 CLR L4 CLR L5 CALL DELAY ;delay to see leds off CALL ALLON CALL DELAY ;add a delay to see all leds on CLR L3 CLR L4 CLR L5 CLR L6
[ Edited Sat Jan 30 2016, 06:13 am ]