Using a MAX7219 (LED digit multiplexer) with a 16F88


Closed Thread
Results 1 to 9 of 9
  1. #1
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    921

    Default Using a MAX7219 (LED digit multiplexer) with a 16F88

    Hello,

    I have some trouble making a 5 digit LED display working.

    The display is driven by a MAX7219 multiplexer. My PIC16F88 pilots (well, it should...) the MAX7219.

    The actual status is: when I powerup the circuit, the LED display shows up some digits and nothing more. The program should make the display count up from 00000 to 65535.

    Before I invastigate the program, I think I may have a timing problem.

    Can somebody tell my if, according to the MAX7219's datasheet (I have attached an extract), I need to set 10MHz clock frequency on the PIC yes or no?

    If yes, can I do it with my 16F88 and how?
    Attached Images Attached Images  
    Roger

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    No. That just means that you can clock data in at "UP TO" 10mhz.
    It will work at much lower data speeds too.

    The pic doesn't need to be running at that speed.

    Are you using MSBFIRST in your SHIFTOUT statements?
    <br>
    DT

  3. #3
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    921


    Did you find this post helpful? Yes | No

    Default Niet...

    Hi Darrel,

    No, I use "1" since I do not include any variables definiton file.

    If I'm not wrong, I read that "1" stands for MSBFirst in the PBP compiler manual.

    I also took big care to make short wiring and good power feed (caps) as stated in the MAX7219's datasheet.

    Btw, I clock my PIC at 4Mhz.
    Roger

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by flotulopex View Post
    Hi Darrel,

    No, I use "1" since I do not include any variables definiton file.

    If I'm not wrong, I read that "1" stands for MSBFirst in the PBP compiler manual.

    I also took big care to make short wiring and good power feed (caps) as stated in the MAX7219's datasheet.

    Btw, I clock my PIC at 4Mhz.
    Do ya got the code handy for us to see, maybe a schematic we can look at?
    At 4mhz, the fastest you could shiftout (using the hardware) is 1mhz (if I remember right). So, assuming everything else is ok, you could run the PIC all the way up to 40mhz and be alright.

    I have to wonder why you aren't using a PIC to handle this job instead of the MAX7219 (besides having to develop a 2nd PIC application in addition to the one you're working on in the 1st place)?

  5. #5
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    I have to wonder why you aren't using a PIC to handle this job instead of the MAX7219 (besides having to develop a 2nd PIC application in addition to the one you're working on in the 1st place)?
    I can think of a couple of reasons, 1. learn something new, 2. possible free sample
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    I can think of a couple of reasons, 1. learn something new, 2. possible free sample
    I like the 2. the best.

  7. #7
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    921


    Did you find this post helpful? Yes | No

    Default You're absolutely right...

    I already thought about using my PIC to pilot the display. Isn't the MAX7219 a kind of µc itself, after all?

    But, due to my poor knowledge, I have problems to understand how I would do the MAX job's directly myself since I don't clearly understand how it exactly does the job; I just assume how it works.

    I have drawn the LED display matrix and then I noticed that I would have to adress each Digit (not segment) one by one and then display it for a very short period of time (maybe ns) and then adress the next Digit and so on.

    If this is correct, yes, I should do it with my PIC ("don't let others do what you can do yourself if you can do it at least as good as the other one"). This means, I'm ready to do all with my PIC if somebody can confirm my assumings.

    And NO, I paid CHF 16,25 (around $13.-) for my MAX7219. Sometimes people do silly things; I do often... Sorry.
    Last edited by flotulopex; - 14th February 2007 at 11:19.
    Roger

  8. #8
    Join Date
    Jan 2007
    Location
    Toronto
    Posts
    11


    Did you find this post helpful? Yes | No

    Default

    Hi:

    I can provide some help with the MAX7219 if this thread is still active.

    I have used this chip in most of my 7 segment project since it is quite flexible.

    Let me know

    TimV

  9. #9
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    921


    Did you find this post helpful? Yes | No

    Default any example welcome

    Hello TimV,

    I have made my project without the use of the MAX7219.

    But if you have any code example involving this chip, it would be nice.

    I still want to make my MAX7219 work...

    Thanks in advance.
    Roger

Similar Threads

  1. Conway's Game Of Life
    By wellyboot in forum mel PIC BASIC Pro
    Replies: 45
    Last Post: - 28th May 2020, 07:14
  2. MAX7219 Helping Hand Please
    By isaac in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 14th February 2014, 16:07
  3. Free Project - 245 LED Display
    By T.Jackson in forum Code Examples
    Replies: 221
    Last Post: - 16th August 2009, 05:59
  4. Single digit 7 Seg LED clock - PIC16F88
    By thirsty in forum Code Examples
    Replies: 4
    Last Post: - 17th July 2009, 09:42
  5. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 03:30

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