I2C between pics..


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2007
    Location
    Brazil
    Posts
    108

    Default I2C between pics..

    Hello !!

    The 16F877 has a built-in I2C communication.
    The 16F628A has not..

    Is it possible to create a comm. using I2C, where 877 is the master and 628A the slave?

    Can I use the commands I2C write and read?

    How? (sorry)..

    Thanks!
    Sylvio,

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by sirvo View Post
    The 16F877 has a built-in I2C communication.
    The 16F628A has not..
    Is it possible to create a comm. using I2C, where 877 is the master and 628A the slave?
    Can I use the commands I2C write and read?
    PBP has built in I2C communication. If the PIC has a couple of free pins and it's supported by PBP, then your PIC has I2C capabilities (albeit software driven).
    What PBP doesn't have is both master and slave capability thru PBP; Master mode only.
    If you're looking for I2C slave, try this:
    http://www.astrosurf.com/soubie/pic_as_an_i2c_slave.htm
    Haven't tried it myself, but it looks viable.

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. I2C Master Slave issues.
    By cpayne in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 29th March 2008, 19:33
  4. Please help with i2cslave i2c slave
    By cycle_girl in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 1st December 2005, 13:55
  5. I2C between three or more PICs
    By aruran in forum Serial
    Replies: 0
    Last Post: - 27th August 2005, 18:14

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