LED dot matrix display:
An LED dot matrix display consists of a matrix of LED’s arranged in a rectangular configuration. The desired character or graphics can be displayed by switching ON /OFF a desired configuration of LED’s. Common display configurations available are 7×5, 8×8, 7×15, etc. LED dot matrix can be used in simple display applications where the resolution is not a big concern. The figure below shows the arrangement of LEDs in a typical 7×5 dot matrix display.
Keil C Program:
#include<reg51.h>
unsigned int Col[5]= {0xfe,0xfd,0xfb,0xf7,0xef};
unsigned int Row[5]={0xfe,0x11,0x11,0x11,0xfe};
void delay (unsigned int x)
{
unsigned int k,m;
for (k = 0;k<x;k++)
{
for(m=0;m<500;m++);
}
}
void main()
{
unsigned int d;
while(1)
{
for(d=0;d<5;d++)
{
P2=Col[d];
P3=Row[d];
delay(1);
}
}
}