+ Post New Thread
Results 1 to 9 of 9
  1. #1
    Newbie level 3
    Points: 426, Level: 4

    Join Date
    Sep 2010
    Posts
    4
    Helped
    0 / 0
    Points
    426
    Level
    4

    need data code for 8 by 8 dot matrix display

    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

    •   Alt16th September 2010, 08:33

      advertising

        
       

  2. #2
    Advanced Member level 2
    Points: 3,537, Level: 13
    incomplete_jerin's Avatar
    Join Date
    Jun 2010
    Location
    INDIA
    Posts
    551
    Helped
    102 / 102
    Points
    3,537
    Level
    13

    Re: need data code for 8 by 8 dot matrix display

    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.


    1 members found this post helpful.

  3. #3
    Advanced Member level 2
    Points: 5,454, Level: 17
    Achievements:
    7 years registered

    Join Date
    Feb 2009
    Location
    some where left alone
    Posts
    664
    Helped
    136 / 136
    Points
    5,454
    Level
    17

    Re: need data code for 8 by 8 dot matrix display

    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


    1 members found this post helpful.

    •   Alt16th September 2010, 14:47

      advertising

        
       

  4. #4
    Newbie level 3
    Points: 426, Level: 4

    Join Date
    Sep 2010
    Posts
    4
    Helped
    0 / 0
    Points
    426
    Level
    4

    Re: need data code for 8 by 8 dot matrix display

    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



    •   Alt8th October 2010, 11:23

      advertising

        
       

  5. #5
    Advanced Member level 2
    Points: 3,537, Level: 13
    incomplete_jerin's Avatar
    Join Date
    Jun 2010
    Location
    INDIA
    Posts
    551
    Helped
    102 / 102
    Points
    3,537
    Level
    13

    Re: need data code for 8 by 8 dot matrix display




  6. #6
    Advanced Member level 2
    Points: 5,454, Level: 17
    Achievements:
    7 years registered

    Join Date
    Feb 2009
    Location
    some where left alone
    Posts
    664
    Helped
    136 / 136
    Points
    5,454
    Level
    17

    Re: need data code for 8 by 8 dot matrix display

    here is matrix designer software see detail AVR Microcontroller Projects



  7. #7
    Full Member level 3
    Points: 3,153, Level: 13
    Achievements:
    7 years registered
    Enlightenment's Avatar
    Join Date
    Jul 2006
    Location
    3rd Rock From Sun
    Posts
    174
    Helped
    29 / 29
    Points
    3,153
    Level
    13

    Re: need data code for 8 by 8 dot matrix display

    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.



    •   Alt9th October 2010, 05:00

      advertising

        
       

  8. #8
    Advanced Member level 2
    Points: 5,454, Level: 17
    Achievements:
    7 years registered

    Join Date
    Feb 2009
    Location
    some where left alone
    Posts
    664
    Helped
    136 / 136
    Points
    5,454
    Level
    17

    Re: need data code for 8 by 8 dot matrix display

    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



  9. #9
    Advanced Member level 3
    Points: 5,165, Level: 17
    Achievements:
    Created Blog entry 7 years registered
    vinodstanur's Avatar
    Join Date
    Oct 2009
    Location
    Kerala (INDIA)
    Posts
    748
    Helped
    117 / 117
    Points
    5,165
    Level
    17
    Blog Entries
    3

    Re: need data code for 8 by 8 dot matrix display

    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);(d 1=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;PORT A=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();

    }

    }


    1 members found this post helpful.

--[[ ]]--