I2C on two different channels


Closed Thread
Results 1 to 3 of 3
  1. #1
    garret's Avatar
    garret Guest

    Question I2C on two different channels

    hi all. I am using some max6956 chips with a 16f877a. There is a limit of 16 addresses with the 6956. I need to run towards 18 or so.
    The question is....can I use two I2C channels with PBP and use 4 pins.
    Once having declared I2C on two pins, does that exclude new I2C statements that will be put out on another two pins.
    I hope I have explained well enough. Any and all help is entirely welcome...Garret

  2. #2
    atomski's Avatar
    atomski Guest


    Did you find this post helpful? Yes | No

    Default Re: I2C on two different channels

    Originally posted by garret
    hi all. I am using some max6956 chips with a 16f877a. There is a limit of 16 addresses with the 6956. I need to run towards 18 or so.
    The question is....can I use two I2C channels with PBP and use 4 pins.
    Once having declared I2C on two pins, does that exclude new I2C statements that will be put out on another two pins.
    I hope I have explained well enough. Any and all help is entirely welcome...Garret
    Absolutelly,

    Just add two more variables e.g.

    SDA1 VAR Portx.x
    SCL1 VAR Portx.y

    SDA2 VAR Porty.x
    SCL2 VAR Porty.y

    ... and call them with your I2CREAD/I2CWRITE statements.

    --
    Sincerest regards,

    YZ7REA Vladimir M Skrbic
    4N7ATV Repeater Administrator
    YU7GHZ Radio Club President

  3. #3
    garret's Avatar
    garret Guest


    Did you find this post helpful? Yes | No

    Talking

    thanks for the good news. I was hoping that this was the case. If not i would have had a real difficulty.
    I have two 16x16 led arrays and i want to drive each led with direct address control. I have tried mulitplexing the arrays, but the cpu time gets in the way of clean viewing. The Max chips give me an address for each led and one large I2C write refreshes the entire screen. The only problem is 30 addressable leds per chip. Thats alot of chips. The two I2C lines are necessary. Thanx for the good news. I shall be trying it soon. Anyone with ideas on how to drive led arrays very cleanly without scans or multiplexing etc...please feel free to join in. It is amazing that there are so few solutions out there for led arrays.....Garret

Similar Threads

  1. I2C Master/Slave 16F88/16F767 working code
    By DanPBP in forum Code Examples
    Replies: 2
    Last Post: - 23rd October 2012, 22:31
  2. HARDWARE I2C SAMPLE CODE question
    By Michael Wakileh in forum Code Examples
    Replies: 2
    Last Post: - 16th June 2009, 21:07
  3. PIC16F877 I2C programme
    By cooqo in forum mel PIC BASIC
    Replies: 3
    Last Post: - 21st April 2008, 10:02
  4. I2C Master Slave issues.
    By cpayne in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 29th March 2008, 19:33
  5. Please help with i2cslave i2c slave
    By cycle_girl in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 1st December 2005, 13:55

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