Nokia lcd include , small footprint to suit pic16's


Closed Thread
Results 1 to 40 of 111

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,645


    Did you find this post helpful? Yes | No

    Default Re: Nokia lcd include , small footprint to suit pic16's

    somehow I missed the update further down the page on that link.
    because I forgot to post it
    Warning I'm not a teacher

  2. #2
    Join Date
    Aug 2005
    Location
    Michigan, USA
    Posts
    224


    Did you find this post helpful? Yes | No

    Default Re: Nokia lcd include , small footprint to suit pic16's

    Richard & gang... Just wanted to mention that my prototype board for the 5110 display works great and my "minimal" XC8 demo program ended up using 370 words of memory, including 240 words for the packed 5x7 font table.

    Also just got my little 128x32 SSD1306 I2C OLED display running with a 16F1823. Man, these OLED displays are really nice. A "bare bones" XC8 program + packed 5x7 font table uses 485 words of memory so a bit more 'overhead' for the low-level SSD1306 controller and I2C functions. However, the 2-pin interface more than makes up for the extra code (grin). Not sure how useful a 5x7 font will be on these little displays...

    Cheerful regards, Mike

    Name:  5110 #1.png
Views: 7260
Size:  536.6 KBName:  SSD1306 #1.jpg
Views: 7090
Size:  61.5 KB
    Last edited by Mike, K8LH; - 2nd July 2018 at 04:58.

  3. #3
    Join Date
    May 2013
    Location
    australia
    Posts
    2,645


    Did you find this post helpful? Yes | No

    Default Re: Nokia lcd include , small footprint to suit pic16's

    well done mike
    have you tried your code on a pic18 yet ?
    I have come unstuck , can't stop xc8 either overwriting my font , or saying it won't fit or just deciding not to include it at all .
    wasted days on this . there must be a how to use psect manual somewhere
    Warning I'm not a teacher

  4. #4
    Join Date
    Aug 2005
    Location
    Michigan, USA
    Posts
    224


    Did you find this post helpful? Yes | No

    Default Re: Nokia lcd include , small footprint to suit pic16's

    Is this a problem with PIC18 only, Richard? I haven't tried using a PSECT on PIC18, yet...

  5. #5
    Join Date
    May 2013
    Location
    australia
    Posts
    2,645


    Did you find this post helpful? Yes | No

    Default Re: Nokia lcd include , small footprint to suit pic16's

    I'm working with a 18f25k22 and getting much grief getting a PSECT to work as intended .
    I could store the font as const unsigned int font [][3] { {0,0,0},{……}} but it would be nice to have an include that can be used in either
    pic16 or pic18 chips
    Warning I'm not a teacher

  6. #6
    Join Date
    Aug 2005
    Location
    Michigan, USA
    Posts
    224


    Did you find this post helpful? Yes | No

    Default Re: Nokia lcd include , small footprint to suit pic16's

    Hi Richard.

    I threw a couple PSECT tables into an XC8 program for an 18F14K22 and when I look at the .LST file it seems XC8 is avoiding those tables just as it should.

    Code:
    /************************************************************************
     *   Digits '0' thru '9' of a 10x14 font                                *
     ************************************************************************/
       #asm
       PSECT my10x14, class=CODE, abs, ovrld, space=0, delta=2
         ORG 0x3E00
       Font10x14:
         dw 0x0FFC, 0x1FFE, 0x3F07, 0x3383, 0x31C3, 0x30E3, 0x3073, 0x383F, 0x1FFE, 0x0FFC  ;  48 '0'
         dw 0x0000, 0x0000, 0x300C, 0x300E, 0x3FFF, 0x3FFF, 0x3000, 0x3000, 0x0000, 0x0000  ;  49 '1'
         dw 0x300C, 0x380E, 0x3C07, 0x3E03, 0x3703, 0x3383, 0x31C3, 0x30E7, 0x307E, 0x303C  ;  50 '2'
         dw 0x0C0C, 0x1C0E, 0x3807, 0x3003, 0x3003, 0x30C3, 0x30C3, 0x38C7, 0x1FFE, 0x0F3C  ;  51 '3'
         dw 0x03C0, 0x03E0, 0x0370, 0x0338, 0x031C, 0x030E, 0x3FFF, 0x3FFF, 0x0300, 0x0300  ;  52 '4'
         dw 0x0C3F, 0x1C3F, 0x3833, 0x3033, 0x3033, 0x3033, 0x3033, 0x3873, 0x1FE3, 0x0FC3  ;  53 '5'
         dw 0x0FFC, 0x1FFE, 0x38C7, 0x30C3, 0x30C3, 0x30C3, 0x30C3, 0x39C7, 0x1F8E, 0x0F0C  ;  54 '6'
         dw 0x0003, 0x0003, 0x0003, 0x0003, 0x3FC3, 0x3FE3, 0x0073, 0x003B, 0x001F, 0x000F  ;  55 '7'
         dw 0x0F3C, 0x1FFE, 0x39E7, 0x30C3, 0x30C3, 0x30C3, 0x30C3, 0x39E7, 0x1FFE, 0x0F3C  ;  56 '8'
         dw 0x003C, 0x007E, 0x30E7, 0x30C3, 0x38C3, 0x1CC3, 0x0EC3, 0x07E7, 0x03FE, 0x01FC  ;  57 '9'
       #endasm
    
    /************************************************************************
     *   Packed 96 character 5x7 Font, 2.5-words-per-character, 240 words   *
     ************************************************************************/
       #asm
       PSECT myFonts, class=CODE, abs, ovrld, space=0, delta=2
         ORG 0x3F00
       Font5x7:
    Last edited by Mike, K8LH; - 4th July 2018 at 00:01.

  7. #7
    Join Date
    May 2013
    Location
    australia
    Posts
    2,645


    Did you find this post helpful? Yes | No

    Default Re: Nokia lcd include , small footprint to suit pic16's

    extract from .lst , it all looks good yet the font is not there.

    Code:
     114                           	psect	text
       115  3E00                     	org	15872	;# 
       116  3E00                     
       117                           ;# 
       118  3E00  0501 207F          	dw	1281,8319	;# 
       119  3E02  0000 0000 0000 005F 0000 	dw	0,0,0,95,0	;# 
       120  3E07  0007 0007 0014 3F94 3F94 	dw	7,7,20,16276,16276	;# 
       121  3E0C  122A 3FAA 0923 0988 3262 	dw	4650,16298,2339,2440,12898	;# 
       122  3E11  1B49 2AA2 2800 0283 0000 	dw	6985,10914,10240,643,0	;# 
       123  3E16  001C 1141 0000 20A2 0E00 	dw	28,4417,0,8354,3584	;# 
       124  3E1B  0A08 1F08 0A08 043E 0408 	dw	2568,7944,2568,1086,1032	;# 
       125  3E20  0050 1800 0008 0408 0408 	dw	80,6144,8,1032,1032	;# 
       126  3E25  0060 3000 0020 0808 0202 	dw	96,12288,32,2056,514	;#
    Attached Images Attached Images  
    Warning I'm not a teacher

Similar Threads

  1. Using Nokia LCD
    By BobP in forum mel PIC BASIC Pro
    Replies: 300
    Last Post: - 3rd May 2018, 04:47
  2. 16F946 pcb footprint (64 tqfp)
    By nomad in forum Schematics
    Replies: 2
    Last Post: - 8th September 2009, 11:14
  3. small 2X16 LCD
    By Ron Marcus in forum Off Topic
    Replies: 2
    Last Post: - 26th October 2007, 20:37
  4. Nokia 3310 LCD
    By barkerben in forum General
    Replies: 3
    Last Post: - 10th December 2005, 19:08
  5. Small LCD module,character
    By Ron Marcus in forum Off Topic
    Replies: 6
    Last Post: - 27th November 2005, 18:13

Members who have read this thread : 3

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts