Do you have a 74HC595 datasheet like here :http://www.tranzistoare.ro/datasheets/270/491765_DS.pdf ?
Its usage is straight forward, no addressing and no command structures. Just clock in 8-bit data with the Data and Clock. Then expose data to parallel with the Latch line. A beautiful raw interface. Most other pins are features that need not necessarily be connected to the Microcontroller.
Hello..... Can I ask for some help....
We are tasked to do a running message module with my partner....
we have already accomplished on displaying a single character in steady mode....
Our problem now is to make it move as what was required for us to do....
Can you show some codes or flowcharts of some sort to give some ideas on how to make it move.????
Tnx.....
What you have is an 8 x 8 matrix. Think of this as eight 8 bit shift registers.
So, you need to test the LSB. Then shift right. If the LSB was set set the MSB of on 8 bit word.
Do this for all lines.
Delay a bit.
Rotating left is an option as well.
Rotating UP and down might be harder.
If you want to rotate left, you can divide by 2. If you want to rotate right you can multiply by 2.
Example:
For one row.
0000 1100 = 12 decimal.
0000 0110 = 12/2 = 6
0000 0011 = 6/2 = 3
0000 0001 bit = 3/2 or 1; don't display this yet
1000 0001 bit 1 was set, so .OR. it with 128. Adding 128 will work too
You need a short delay after each row is completed.
Write you code, so you can easily rotate left. Which will be a multiply by 2.
Moving up and down means you have to sort of transpose the matrix. You could come up with an algorithm using arrays and the proper indexing to get it to work.