Discussion in "8051 Discussion Forum" started by    sks    Oct 31, 2011.
Sun Apr 29 2012, 11:06 am
#71
Hello Mr Ajay, Mr Phil and Mr Mazoka,
Good morning. Sorry for the late. Here is a code and Proteus file attached.
Please check and guide. I have tested in Proteus and in my hardware also.
I want to scroll now, How to do it?
Please guide me. Thanks Mr Phil.
sks

Sun Apr 29 2012, 08:19 pm
#72

I want to scroll now, How to do it?

sks



Well reply is a bit too late i guess so can you explain what you want to scroll?
 sks like this.
Sun Apr 29 2012, 09:16 pm
#73
Thanks for the reply Mr Ajay,
I am really sorry for taking a long long time to writing this code.
As you know, i am still in job and working in a different field, i was too busy,
and i have to admit, it was little toff for me to write this kind of code.
This code is for a Dot matrix static LED display system with Eeprom support.
Character data has to fed from a PC via Hyper terminal.
Now i want to scroll/ move the displayed texts from left to right.
How can i do it? Please see the code and help.
Thanks
sks
Mon Apr 30 2012, 12:13 am
#74
scrolling is a bit challenging... let do it this way.... can you explain me how you're displaying right now?
 sks like this.
Mon Apr 30 2012, 10:55 am
#75
Dear Mr Ajay,
Thanks for answering.
I don't follow you completely, sorry. If you are asking me to describe only the display part.
The Algo is like this.

1. Reset display Column counter
2. Reset display data address pointer
3. Reset All shift registers
4. get stored data from internal Ram address pointed by display data address pointer
5. Convert the data to Char Bitmap data
6. Load bitmap data in Port ( column data)
7. Shift the column
8. Advance col pointer by 1
9. Advance data pointer by 1
10. Latch the shift register to display the character
11. Stay for a while
12. Repeat this from step 4 till all col are completed

Please correct me if i am wrong some where.
Thanks
sks
Wed May 02 2012, 01:14 am
#76
thats good and its what i was asking exactly. So you have one loop running that is taking data you've stored in RAM at point #4. and take it to column... Now for scrolling you will need to have an outer loop that will take care of where you start reading from ram.

so on first iteration you start from pointer at location x and read till end (step 4 to 12). now once its done.. you will advance the pointer x to x+1 and repeat step 4 to 12 again.. till your x reaches end. this is how you scroll I hope you understand my point now
 sks like this.
Wed May 02 2012, 02:06 am
#77
Thanks a lot Mr Ajay,

I could follow you a bit. Suppose i have 8 characters to display in 8x8 dot matrix, so i have 8 bytes of bitmap data for @ character multiply by 8 (for 8 display) = 64 bytes + 64 bytes entry of character + 64 bytes for exit of characters, that means it will a 64*3=192 counts ?
Will this loop inserted in between #4 and 5?
Please answer
with best regards
Thanks
sks
Wed May 02 2012, 02:40 am
#78
you dont need to duplicate it for exiting.. you know how long is your display buffer so you can display 0 when you know you have reached end of buffer. this loop will surround point 4.
 sks like this.
Wed May 02 2012, 12:09 pm
#79
Thanks Mr Ajay,
I will try to modify my code as per your advice and post.
Thanks
sks
Thu May 03 2012, 12:23 am
#80
sure.. Do post some screenshots for your hardware. Lets see what is the progress

good luck!
 sks like this.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Lewisuhakeply
Thu Apr 18 2024, 06:00 pm
Darrellciz
Thu Apr 18 2024, 11:07 am
Charlessber
Thu Apr 18 2024, 09:29 am
BartonSem
Thu Apr 18 2024, 04:56 am
DonaldKnown
Thu Apr 18 2024, 12:24 am
utaletxcyw
Wed Apr 17 2024, 10:21 am
Anthonyvab
Wed Apr 17 2024, 08:48 am
RobertCix
Wed Apr 17 2024, 06:46 am