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.

How to display character ?

Status
Not open for further replies.

bianchi77

Advanced Member level 4
Joined
Jun 11, 2009
Messages
1,313
Helped
21
Reputation
44
Reaction score
20
Trophy points
1,318
Location
California
Activity points
9,442
Helo guys,

I have a question,

How to display one character in LED 8x8 matrix ?

I created for A character, so far it's running but not static, so it's "A" but running away
How to make "A character" static ?
Thanks for reading and any idea will be appreciated,

I have 89S52 and using port2 and port 3 so far the code :

#include <REG51.H>

#define Row P2
#define Column P3

unsigned short Alphabets[8]={ 0xFE, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0xFE,}; // A

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

void wait (void) { /* wait function */
; /* only to delay for LED flashes */
}

void main (void) {
int count,column1,num;
while (1) {

//Character A scan
Row = 0xFE; /* Output FF to Row Port */
Column = 0xFE; /* Output 7F to Column Port */
delay(1);
Row = 0x09; /* Output FF to Row Port */
Column = 0x00; /* Output 7F to Column Port */
delay(1);
Row = 0x09; /* Output FF to Row Port */
Column = 0x00; /* Output 7F to Column Port */
delay(1);
Row = 0x09; /* Output FF to Row Port */
Column = 0x00; /* Output 7F to Column Port */
delay(1);
Row = 0x09; /* Output FF to Row Port */
Column = 0x00; /* Output 7F to Column Port */
delay(1);
Row = 0x09; /* Output FF to Row Port */
Column = 0x00; /* Output 7F to Column Port */
delay(1);
Row = 0x09; /* Output FF to Row Port */
Column = 0x00; /* Output 7F to Column Port */
delay(1);
Row = 0xFE; /* Output FF to Row Port */
Column = 0x7F; /* Output 7F to Column Port */
delay(1);
delay(500);

}
}
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top