This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

i2c lpc2368

There are two sda1 and scl1 on the lpc2368?

And does anyone know the difference in pinsel between the two?

Parents
  • I am not a hardware guy, and my English ability is not good.

    1. There is only one SDA1/SCL1, but they can be configured/connected to different pins.

    2. It is your responsibility to find out which pins on your board are the SDA1/SCL1.

    3. Assuming that, you are using LPC2368FBD100, and SDA1 and SCL1 are connected to pin-46 and pin-47, then you should look at

    5.1.1 100-pin packages
    
    Table 93. Pin function select register 0
    (PINSEL0 - address 0xE002 C000) bit description
    (LPC2364/65/66/67/68 and LPC2387)
    

    This table tells you how to set PINSEL0

Reply
  • I am not a hardware guy, and my English ability is not good.

    1. There is only one SDA1/SCL1, but they can be configured/connected to different pins.

    2. It is your responsibility to find out which pins on your board are the SDA1/SCL1.

    3. Assuming that, you are using LPC2368FBD100, and SDA1 and SCL1 are connected to pin-46 and pin-47, then you should look at

    5.1.1 100-pin packages
    
    Table 93. Pin function select register 0
    (PINSEL0 - address 0xE002 C000) bit description
    (LPC2364/65/66/67/68 and LPC2387)
    

    This table tells you how to set PINSEL0

Children
  • This code below does work but on a different variation of the board I have

    It is your responsibility to find out what is the difference, and then modify the code to conform to the hareware design.

  • Chapter 9: LPC23XX Pin connect block

    5.1.1 100-pin packages

    Table 93. Pin function select register 0
    (PINSEL0 - address 0xE002 C000) bit description
    (LPC2364/65/66/67/68 and LPC2387)

  • Thanks for your attempt.

    Unfortunately something that a programming guy i spoke to last week forgot to tell me (something he did know too) was that on the mcb2300 you do have multiple channel 1's for i2c however both are being used.They are wired to various other things such as the output for uart etc as these channels can have multiple uses (4 uses) so infact the only channel of any use to connect devices too on the mcb2300 is sda 0 and scl 0.

    Problem solved.

  • Thanks for your attempt.

    Unfortunately something that a programming guy i spoke to last week forgot to tell me (something he did know too) was that on the mcb2300 you do have multiple channel 1's for i2c however both are being used.They are wired to various other things such as the output for uart etc as these channels can have multiple uses (4 uses) so infact the only channel of any use to connect devices too on the mcb2300 is sda 0 and scl 0.

    Problem solved.