Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

5x7 led matrix disply problem??

Status
Not open for further replies.

satyasankar09

Newbie level 4
Joined
May 26, 2012
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,335
i am trying to display capital "H" on 5x7 led matrix using 8051...but i can see the correct output..what is the problem i cant find out...
i have attached the ckt diagram and code here....

P2 is connected with 5 columns and P3 is 7 rows...

CODE:


#include<reg51.h>
void delay1(unsigned int a)
{
unsigned int i,j;
for(i=0;i<a;i++)
for(j=0;j<120;j++);
}

int col[]={0x00,0xf7,0xf7,0xf7,0x00}; // to display "H"
void main()
{ int k;
P2=1;
while(1)
{

for(k=0;k<5;k++) // scanning column and feeding by row
{


P3=col[k]; // feeding to row

P2=(1<<k); // shifting column
delay1(1);



}
}

}

- - - Updated - - -

i think there is some problem in POV rule...can any one say me what is the POV time period rule.....
 

Attachments

  • 123.jpg
    123.jpg
    100.8 KB · Views: 104

i think there's something wrong about the loop, try "turning off" P2 first before changing P3, then after changing P3 turn on P2.

Code:
while(1)
{

for(k=0;k<5;k++) // scanning column and feeding by row
{

P2 = 0;//<<<<<<<<<<<<<<<<<<("turn off" P2)
P3=col[k]; // feeding to row<<<<(change P3)
P2=(1<<k); // shifting column<<<("turn on")
delay1(1);
}
}

or maybe you're right abt the POV rule. maybe your delay loop is still going too fast compared to the rate at which you update the rows/columns. try increasing your delay?
 
Last edited:

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top