This is the schematic,i need help how to drive this ti write scroling text ,thank u
This is the schematic,i need help how to drive this ti write scroling text ,thank u
I do not think the pulsout command is going to work for you, maybe a series of them?
This may help you.
http://delabs-circuits.com/cirdir/th.../doc00020.html
Dave
Always wear safety glasses while programming.
Hello Mus.me,
Here is basically what you do, get some graph paper, lay out 5x9 squares on the paper, and create the characters you want to display. The sides will have a binary value. I use the Port side (the PIC side) as the port output value. I use 8x8 displays as it is easier. the character " 0 " would be comprised of a row value $7e, followed by 3 rows of $81 and finally $7e again. Make up 5 lookup tables which execute sequentally and put the 5 bytes of each character in each. That's how to do it.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
If that's a CD4017, then it can only source about 0.36 ma @ 5V. That's not enough to drive 1 LED, let alone 5.
If it's a 74HC4017, then it can drive 25 ma. Good enough for 1, maybe 2 LED's, or 5 DIM ones.
Some transistors or darlingtons would help.
You might want some resistors in series with the 5 cathodes too.
<br>
DT
Last edited by Mus.me; - 14th July 2009 at 01:55.
OK, so let's take a look at the PULSOUT command.
There's really nothing wrong with your original statement, which is why we were avoiding the question.The pulsout line above will toggle the pin twice, giving an effective "Pulse". The 4017 will count on the "Rising Edge" of the pulse.Code:pulsout portb.0,150
The time between the Toggles would be 150 * 10us = 1500us = 1.5ms. (assuming 4mhz OSC)
1.5ms is extremely long for this purpose. But it would still work.
pulsout portb.0,1 with a 10us pulse would work just as well.
However, the 4017's can take a pulse width as small as 100ns (.1us) so you don't really need PULSOUT.
Simply toggling the pin with HIGH and LOW will do the job too.Another thing to do is turn OFF all LED's before the pulse. Otherwise the 5 LED pattern will briefly show on 2 rows, giving a ghosting effect.Code:HIGH PORTB.0 LOW PORTB.0Cheers,Code:PORTA = %11111 ; ALL LED's OFF HIGH PORTB.0 LOW PORTB.0 porta = %10010 ; new pattern
DT
thank u Darrel Taylor for helping me,i have another quetion, i,m using proteus 7.5, for testing my project but it seems not working good is there any other programe to test projects?
Bookmarks