Re-using pins while still connected to MAX7219 ?


Closed Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2013
    Posts
    1,078

    Default Re-using pins while still connected to MAX7219 ?

    Hello.

    I have 12F1840 which is connected to MAX7219. As amount of ports is quite low, 3 ports are wasted on driving that IC. I would like to be able to use any of these pins for reading a button or driving a buzzer. If I understand properly, if I drive MAX7219 CLK pin low, IC will be locked, no matter what happens on other pins, right?

  2. #2
    Join Date
    Aug 2009
    Location
    Paso Robles California
    Posts
    153


    Did you find this post helpful? Yes | No

    Default Re: Re-using pins while still connected to MAX7219 ?

    It has been a long time since I’ve used that chip But I’m pretty sure you only need 3 pins It is a serial chip. And you may get by with using two of those pins But there will be no updating of the display

  3. #3
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: Re-using pins while still connected to MAX7219 ?

    It's in the data sheet.

    Load-Data Input. The last 16 bits of serial data are latched on LOAD’s rising edge.

    So, Just hold the LOAD pin low until you have the new data shifted into the MAX7219. You can use the clock and data pins as you wish as long as the LOAD pin is low.
    Dave Purola,
    N8NTA
    EN82fn

  4. #4
    Join Date
    Feb 2013
    Posts
    1,078


    Did you find this post helpful? Yes | No

    Default Re: Re-using pins while still connected to MAX7219 ?

    Thanks, that's excellent idea.
    I want to attach button which will pull that pin low, when pressed. Since pin is already connected to IC, do I still need pull up resistor?

  5. #5
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: Re-using pins while still connected to MAX7219 ?

    Why yes you do and don't forget to set the pin as an INPUT.
    Dave Purola,
    N8NTA
    EN82fn

  6. #6
    Join Date
    Feb 2013
    Posts
    1,078


    Did you find this post helpful? Yes | No

    Default Re: Re-using pins while still connected to MAX7219 ?

    Thanks, I have another idea.

    What I use data pin for beeper? I think I can connect emitter follower thru capacitor to that pin, and buzzer to emitter follower? MAX7219 data speed should be high enough, so buzzer won't play anything while transferring the data?

  7. #7
    Join Date
    Sep 2009
    Posts
    737


    Did you find this post helpful? Yes | No

    Default Re: Re-using pins while still connected to MAX7219 ?

    Probably you will get audible click on start and stop of data transition, and probably some noise during.
    You may implement this
    https://www.romanblack.com/shift1.htm

    Also you could use SPI port expander, and and use inverted CS signal to drive it. Or some additional transistor circuit to activate buzzer only when LOAD is low.

Similar Threads

  1. World’s First Internet Connected Lawnmower
    By MichelJasmin in forum Ethernet
    Replies: 2
    Last Post: - 11th June 2015, 16:26
  2. DS18B20 connected to PIC16F628A
    By lilimike in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 30th November 2011, 00:18
  3. Does it matter which way a triac is connected?
    By The Master in forum Off Topic
    Replies: 2
    Last Post: - 7th October 2010, 21:49
  4. PIC - 8 Pins - 6 Output Pins ?
    By DanPBP in forum Off Topic
    Replies: 0
    Last Post: - 22nd October 2007, 01:23
  5. it's possible to drive four max7221 serially connected?
    By lutherblissett in forum General
    Replies: 0
    Last Post: - 23rd November 2005, 19:38

Members who have read this thread : 1

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