Make your own I2C Chip


Closed Thread
Results 1 to 9 of 9
  1. #1

    Default Make your own I2C Chip

    Does somebody kno whow to make your own I2C chip.

    I want to program serval of 16F628 PIC that when i send I2C information from a master the 16F628 works as slaves.

    is there a sample code or something?

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Microchip has several examples for master & slave with very well documented code http://www.microchip.com/stellent/id...0&filterID=392
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  3. #3
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    All I can tell here (to save you some time) is:

    Take care when reading (and implementing) the AN's

    There are still some bugs!
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  4. #4
    Join Date
    Jul 2005
    Location
    The Netherlands
    Posts
    39


    Did you find this post helpful? Yes | No

    Default

    Hi NL2TTL,

    I make the Slave-Display for the http//www.alphavibe.com

    The PIC is a F628A, communication is serial (you have change to I2C)
    and the PIC multiplex two 7-seg blue LED's for display the time. So there is much time for other task. Just a I/O expander...

    If a copy of this PBP code helps, let me know.

    Best regards,
    Gerben

  5. #5
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Smile

    Hi, N2TTL

    Something here in PicBasic !!!

    it was intended for a 12C671 ... no problem then !!!

    Gp5 is serial input
    Gp4 is output to an opto-triac
    Gp3 is reset
    Gp2-Gp0 are addresses ( Swiches active = LOW )

    The RS 232 to I2C move will be quite simple ...with PBP !!!

    Alain
    Attached Files Attached Files

  6. #6
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    I've mentioned before on other threads the reasons why I can't contribute to this topic, I can however give two handy hints...

    1. Microchip's MCP23008-E/P and MCP23016-E/P. As I/O expanders, they're easy to use, very simple PBP code use I2CREAD and I2CWRITE, versatile - and cheap!

    2. Look at this site (greetings Robert) for PBP Code...

    http://astrosurf.com/soubie/pic_as_an_i2c_slave.htm

    Melanie

  7. #7
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Wink

    Quote Originally Posted by Melanie
    2. Look at this site (greetings Robert) for PBP Code...

    **** just edited that out **** Melanie!

    Melanie
    Hi, Mel

    May be something forgotten in the link ???

    Alain

  8. #8
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Ooops! Thank Gawd my server is firewalled! Just posted the link to my own I2C Slave Notes in error! anyhow... been corrected... thanks Alain!

  9. #9


    Did you find this post helpful? Yes | No

    Default

    Thanx to all, i will try something with this code examples.

    You will hear from me!

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. 4 bit address decoding I2C chip
    By ecoli-557 in forum General
    Replies: 3
    Last Post: - 10th June 2008, 17:26
  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