Why this PBP code will blink PortB LED's but not the one on PortC?


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,604


    Did you find this post helpful? Yes | No

    Default Re: Why this PBP code will blink PortB LED's but not the one on PortC?

    When using I2CREAD/WRITE the PIC is "in control" of the line, ie it supplies the clock and is therfor the master (same as with SHIFTIN/OUT). Because of this IC2READ/WRITE won't work for a slave type device, however the MSSP module setup in I2C mode will, you just have to "drive it manually".

    /Henrik.

  2. #2
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default Re: Why this PBP code will blink PortB LED's but not the one on PortC?

    Thanks henrik, just in time to fix what I was doing. I think I did some bit banging slave stuff a few (>5) years ago in ASM, no desire to repeat that!! Off to make sure chip selection supports slave mode I2C.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

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