Help re 18f6722 & two i2c ports


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    156

    Red face Help re 18f6722 & two i2c ports

    [LIST]
    Im using a 18F6722 and, until now, have only needed to use one of the two I2C ports. I previously set up I2C port #1 like this:

    SSP1CON1.5=1
    SSP1CON1.3=1
    SSP1CON1.2=0
    SSP1CON1.1=0
    SSP1CON1.0=0

    and it has been working fine. Now that I need to use I2C port #2 as well, I don't know what to set up. If I don't set anything, the lines aren't even pulled high by the pullup resistors. If I set the SSP2CON bits the same, the lines likewise do not go high. Maybe both I2C ports can't be in 'Master' mode?

    Any suggestions would be helpful at this point.

    Thanks

  2. #2
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    156


    Did you find this post helpful? Yes | No

    Red face

    Please disregard. TRIS overlooked.

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