Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

I made a moving message

Status
Not open for further replies.

RoMeO123

New Member
I have made moving message but I have a problem
**broken link removed**
**broken link removed**

codes for 74hc154 ;;;;;;;;;

Code:
#include <AT89x51.H>
#include <stdio.h>
#include <delay.c>
#define sayici P2 
const char A[]={0x00,0x7C,0x0A,0x09,0x0A,0x7C};
void main (){
for(sayici=0;sayici<7;sayici++){
P0=~A[sayici];
delay_ms(3);
}}

codes for 74hc138 ;;;;;;;;;;;

Code:
#include <AT89x51.H>
#include <stdio.h>
#define sayici P2 
#include <delay.c>
const char A[]={0x00,0x7C,0x0A,0x09,0x0A,0x7C};
void main (){
for(sayici=0;sayici<7;sayici++){
P0=~(A[sayici+1]);
delay_ms(3);
}}


but I want to do same thing with 74HC595 or CD4094

you can give me sample code
it can be in CCS or MikroC or Ansi-C(keil-iar)
but not in Asm or Pic basic :S
 
I just wanna do program for 8x8 dotmatris

I can use the demultuplexser Ic but I don't know use the serial to parallel Ic

if there is anyone who know to control 74hc595 or 4094,, can help me ???

I wanna just this

I did this project but I wanna do the same thing with 74hc595 or 4094 can yoou help me
 
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.
 
ı wanna show the same character but I couldn't do it

help me

it will be shown on this schema
**broken link removed**
 
Help

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.

BTW: This is a cool project

Why did I reply to this very OLD post?
 
Last edited:
Status
Not open for further replies.

Latest threads

Back
Top