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.

C code iam trying to interface 8x8 dot matrix disp

Status
Not open for further replies.

sriraj_jan

Newbie level 3
Joined
Dec 24, 2008
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,312
here is the code iam trying to interface 8x8 dot matrix display to 89c51.. please help me out...

/*************

#include<reg51.h>

sfr col = 0xA0;
sfr row = 0x80;

sbit r1 = P0^0;
sbit r2 = P0^1;
sbit r3 = P0^2;
sbit r4 = P0^3;
sbit r5 = P0^4;
sbit r6 = P0^5;
sbit r7 = P0^6;
sbit r8 = P0^7;

void delay();

char tdata[]={0x01111110,0x10111101,0x11011011,0x11100111,0x11100111,0x11011011,0x10111101,0x01111110};

void main()
{
row=0x00;

while(1)
{

r1=1;
col=tdata[0];

delay();

r1=0;

r2=1;
col=tdata[1];

delay();

r2=0;

r3=1;
col=tdata[2];

delay();

r3=0;

r4=1;
col=tdata[3];

delay();

r4=0;

r5=1;
col=tdata[4];

delay();

r5=0;

r6=1;
col=tdata[5];

delay();

r6=0;

r7=1;
col=tdata[6];

delay();

r7=0;

r8=1;
col=tdata[7];

delay();
r8=1;
}

}

void delay()
{
unsigned int i,j;
for(i=0;i<1275;i++)
for(j=0;j<500;j++);
}
 

Hai
Post your current schematic and
Which type of 8x8 dot matrix display you have use
And which kind of character u wand to display
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top