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.

need data code for 8 by 8 dot matrix display

Status
Not open for further replies.

salinagi

Newbie level 3
Joined
Sep 6, 2010
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,321
i want to display a to z in 8*8 dot matrix display scrolling from right to left i have done mcu code and i am little confused with character data code i need that cade for capital and small letters pls explain me how to put that data like
for characters 00111100 ,and so on for eight columns .pls
 

Just out the ASCII values of the data you want to display in the LCD. For lower case alphabets i think the ASCII starts from 97 for 'a' & it goes till 122 which is of 'z'. Just out these values in hex format.
Regards,
Jerin.
 
  • Like
Reactions: sabree

    sabree

    Points: 2
    Helpful Answer Positive Rating
ok here is one example you can give data like for

W
Data &B00000000 ' 1 W
Data &B00000000 ' 2
Data &B10111111 ' 3
Data &B11000011 ' 4
Data &B10111111 ' 5
Data &B00000000 ' 6
Data &B00000000 ' 7
Data &B11111111 ' 8

---------- Post added at 13:47 ---------- Previous post was at 13:42 ----------

hey you can use matrix designer software for 8*8
you will get data and just copy that data to your source code
 
still i am not clear pls explain me with example
@jerin and santoshaxl

---------- Post added at 11:23 ---------- Previous post was at 11:18 ----------

suppose i want to display welcome then
Welcome_en:
'
Data &B11111111 ' 00
Data &B11111111 ' 01
Data &B00000000 ' 02 W
Data &B00000000 ' 03
Data &B10111111 ' 04
Data &B11000011 ' 05
Data &B10111111 ' 06
Data &B00000000 ' 07
Data &B00000000 ' 08
Data &B11111111 ' 09
Data &B00000000 ' 10 E
Data &B00000000 ' 11
Data &B01110110 ' 12
Data &B01110110 ' 13
Data &B01111110 ' 14
Data &B11111111 ' 15
Data &B00000000 ' 16 L
Data &B00000000 ' 17
Data &B01111111 ' 18
Data &B01111111 ' 19
Data &B01111111 ' 20
Data &B11111111 ' 21
Data &B10000001 ' 22 C
Data &B00000000 ' 23
Data &B01111110 ' 24
Data &B01111110 ' 25
Data &B10111101 ' 26
Data &B11111111 ' 27
Data &B10000001 ' 28 O
Data &B00000000 ' 29
Data &B01111110 ' 30
Data &B01111110 ' 31
Data &B00000000 ' 32
Data &B10000001 ' 33
Data &B11111111 ' 34
Data &B00000000 ' 35 M
Data &B00000000 ' 36
Data &B11111101 ' 37
Data &B11100011 ' 38
Data &B11111101 ' 39
Data &B00000000 ' 40
Data &B00000000 ' 41
Data &B11111111 ' 42
Data &B00000000 ' 43 E
Data &B00000000 ' 44
Data &B01110110 ' 45
Data &B01110110 ' 46
Data &B01111110 ' 47
Data &B11111111 ' 48
'
'============================ END OF FILE ==================================
'
'
how these data came pls explain i'll try to understand
 

Places that I would look for character-set definitions listed in datasheets or manuals:
- character-based LCD displays and chipsets.
- old character-based video chips.
- old dot-matrix printers.
- old character-based computers and terminals.

Character sets have been around for decades and very well defined. Just search the internet.
 

the matrix software just click the mouse to on led according and see the data ,wait reverse that data and paste in your code it will work sure ,if you are using low output or high output that may differ the code
 

10*8 led dot matrix display code;

#include <htc.h>

__CONFIG(0x3F3A);

int a1,b1,c1,d1,e1,f1,g1,h1,i1,j1;

void begin(){(a1=0);(b1=0);(c1=0);(d1=0);(e1=0);(f1=0);(g1=0);(h1=0);(i1=0);(j1=0);}
void delay(unsigned int k){for(int i=0;i<=k;i++);}
void clock(){delay(20);PORTB=0;RA0=1;RA0=0;delay(10);}
void scroll(int a,b,c,d,e)
{
(a=~a);(b=~b);(c=~c);(d=~d);(e=~e);
int t;(t=0);


loop1:(a1=a);
for(int i=0;i<=50;i++)
{
PORTB=a1;clock();
PORTB=b1;clock();
PORTB=c1;clock();
PORTB=d1;clock();
PORTB=e1;clock();
PORTB=f1;clock();
PORTB=g1;clock();
PORTB=h1;clock();
PORTB=i1;clock();
PORTB=j1;clock();
}
(j1=i1);(i1=h1);(h1=g1);(g1=f1);(f1=e1);(e1=d1);(d1=c1);(c1=b1);(b1=a1);
(a=b);(b=c);(c=d);(d=e);(t=t+1);if(t==5){(a=0);}if(t==6){goto exit;}
goto loop1;

exit:;
}

//FONT//
void A(){scroll(0xC1, 0xB7, 0x77, 0xB7, 0xC1);} //letter A
void B(){scroll(0x01, 0x6D, 0x6D, 0x6D, 0x93);}
void C(){scroll(0x83, 0x7D, 0x7D, 0x7D, 0xBB);}
void D(){scroll(0x01, 0x7D, 0x7D, 0xBB, 0xC7);}
void E(){scroll(0x01, 0x6D, 0x6D, 0x6D, 0x7D);}
void F(){scroll(0x01, 0x6F, 0x6F, 0x6F, 0x7F);}
void G(){scroll(0x83, 0x7D, 0x65, 0x6D, 0xA3);}
void H(){scroll(0x01, 0xEF, 0xEF, 0xEF, 0x01);}
void I(){scroll(0x7D, 0x7D, 0x1, 0x7D, 0x7D);}
void J(){scroll(0xF3, 0x7D, 0x7D, 0x03, 0x7F);}
void K(){scroll(0x01, 0xEF, 0xD7, 0xBB, 0x7D);}
void L(){scroll(0x01, 0xFD, 0xFD, 0xFD, 0xFD);}
void M(){scroll(0x01, 0xBF, 0xDF, 0xBF, 0x01);}
void N(){scroll(0x01, 0xBF, 0xDF, 0xEF, 0x01);}
void O(){scroll(0x83, 0x7D, 0x7D, 0x7D, 0x83);}
void P(){scroll(0x01, 0x6F, 0x6F, 0x6F, 0x9F);}
void Q(){scroll(0x83, 0x7D, 0x75, 0x79, 0x81);}
void R(){scroll(0x01, 0x6F, 0x6F, 0x6F, 0x91);}
void S(){scroll(0x9B, 0x6D, 0x6D, 0x6D, 0xB3);}
void T(){scroll(0x7F, 0x7F, 0x01, 0x7F, 0x7F);}
void U(){scroll(0x03, 0xFD, 0xFD, 0xFD, 0x03);}
void V(){scroll(0x07, 0xFB, 0xFD, 0xFB, 0x07);}
void W(){scroll(0x01, 0xFB, 0xF7, 0xFB, 0x01);}
void X(){scroll(0x39, 0xD7, 0xEF, 0xD7, 0x39);}
void Y(){scroll(0x3F, 0xDF, 0xE1, 0xDF, 0x3F);}
void Z(){scroll(0x79, 0x75, 0x6D, 0x5D, 0x3D);} //letter Z
void D0(){scroll(0x83, 0x7D, 0x7D, 0x7D, 0x83);} //NUM 0
void D1(){scroll(0xDD, 0xBD, 0x1, 0xFD, 0xFD);}
void D2(){scroll(0xBD, 0x79, 0x75, 0x6D, 0x9D);}
void D3(){scroll(0x7B, 0x7D, 0x5D, 0x4D, 0x33);}
void D4(){scroll(0xCF, 0xAF, 0x6F, 0xEF, 0x1);}
void D5(){scroll(0xB, 0x5D, 0x5D, 0x5D, 0x63);}
void D6(){scroll(0x83, 0x6D, 0x6D, 0x6D, 0xB3);}
void D7(){scroll(0x79, 0x77, 0x6F, 0x5F, 0x3F);}
void D8(){scroll(0x93, 0x6D, 0x6D, 0x6D, 0x93);}
void D9(){scroll(0x9B, 0x6D, 0x6D, 0x6D, 0x83);} //NUM 9





void main()
{
TRISB=0;TRISA=0b11100;PORTA=0;PORTA=2;PORTA=1;PORTA=0;PORTB=0;begin();delay(10);begin();
while(1)
{
//text to display//
A();B();C();D();E();F();G();H();I();J();K();L();M();N();O();P();Q();R();S();T();U();V();W();X();Y();Z();
D0();D1();D2();D3();D4();D5();D6();D7();D8();D9();

}

}
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top