max7219 4x 8x8 panels spi


Closed Thread
Results 1 to 27 of 27

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,175


    Did you find this post helpful? Yes | No

    Default Re: max7219 4x 8x8 panels spi

    Well, I was just about to post that logic analyzer keeps data at zero. I was watching that and could not think what was wrong...!

    Doh!

    Thanks Richard. Works now.

    Ioannis

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,175


    Did you find this post helpful? Yes | No

    Default Re: max7219 4x 8x8 panels spi

    What is the logic in the packing of the characters into words?

    Ioannis

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


    Did you find this post helpful? Yes | No

    Default Re: max7219 4x 8x8 panels spi

    What is the logic in the packing of the characters into words?
    uses half the amount of flash memory when using 7bit numbers [pic16 flash is 14 bits wide] so you need to pack it.
    it takes very little time for the pic to unpack so there is no real penalty for a huge saving
    Warning I'm not a teacher

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,175


    Did you find this post helpful? Yes | No

    Default Re: max7219 4x 8x8 panels spi

    Yes, OK. But from 6 bytes you went to 3 words. Cannot understand the calculation you did.

    ;@ db 0x0E,0x10,0x1C,0x10,0x10,0x0E; // Code for char num 51 "3"
    @ dw 0x80e,0xe10,0x710

    0E=00001110, 10=00010000 and all these makes 80E?

    Ioannis

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


    Did you find this post helpful? Yes | No

    Default Re: max7219 4x 8x8 panels spi

    0xE=0b00001110, 0x10=0b00010000


    and all these makes 80E

    7 high bits | 7 low bits
    0x10<<7 | 0x0e &0x7f = 0x80e
    0b000100000000000 | 0b0001110 = 0b00010000001110 <==> 0x80e [14 bits]
    Warning I'm not a teacher

  6. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,175


    Did you find this post helpful? Yes | No

    Default Re: max7219 4x 8x8 panels spi

    After making the paper and pencil homework, I was amazed by your thinking! So simple, so clever, so efficient!

    Ioannis

  7. #7
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,175


    Did you find this post helpful? Yes | No

    Default Re: max7219 4x 8x8 panels spi

    Mikroe outputs the characters in columns but your data is in rows. Did you rotate them by hand or can GLCD do that?

    Ioannis

Similar Threads

  1. 8x8 keypad matrix...
    By mbox in forum General
    Replies: 5
    Last Post: - 9th October 2014, 19:43
  2. 8x8 Scrolling LED display (Simple example)
    By wellyboot in forum Code Examples
    Replies: 68
    Last Post: - 11th July 2013, 06:03
  3. DC/DC with MPPT for solar panels
    By iw2fvo in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 14th May 2013, 03:26
  4. MY FIRST scrolling 8X8 LED
    By earltyso in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 15th August 2008, 17:23
  5. SPI instead of SHIFTOUT - MAX7219
    By Momboz in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 26th April 2008, 23:58

Members who have read this thread : 0

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