AnsweredAssumed Answered

LPC1679CMSIS BOARD - I2C example - finding slave devices

Question asked by Tomasz XYZ on Apr 6, 2017
Latest reply on Apr 12, 2017 by Kerry Zhou

Hi!

 

I just started with LPC. So sorry for newie questions...

 

I want to connect LCD 16x2 via I2C (PCF85741 - mounted on LCD https://botland.com.pl/wyswietlacze-alfanumeryczne/2351-wyswietlacz-lcd-2x16-znakow-niebieski-konwerter-i2c-lcm1602.html). I'm not sure about adress of this device and i wanted to use demo "periph_i2c" to findout it (option 3 in i2cmenu via UART). So that is my questions:

 

- There are two options (Select I2C peripheral). At I2C0 are virtual devices. I2C1 is exacly whith pins? (I connected device into P0.10 and P0.11). I just want to know device adress. After connect devices program just do it and not responding :

 

Select an option [0 - 6] :ý˙˙ţý˙**************** I2C Demo Menu ****************
    0: Exit Demo
    1: Select I2C peripheral [[1B][1;32mI2C0[1B][0;37m]
    2: Toggle mode POLLING/INTERRUPT [[1B][1;32mINTERRUPT[1B][0;37m]
    3: Probe for Slave devices
    4: Read slave data
    5: Write slave data
    6: Write/Read slave data

 

Select an option [0 - 6] :1
1
Select I2C device [0 or 1] : 1
1

 

**************** I2C Demo Menu ****************
    0: Exit Demo
    1: Select I2C peripheral [[1B][1;32mI2C1[1B][0;37m]
    2: Toggle mode POLLING/INTERRUPT [[1B][1;32mINTERRUPT[1B][0;37m]
    3: Probe for Slave devices
    4: Read slave data
    5: Write slave data
    6: Write/Read slave data

 

Select an option [0 - 6] :3
3
Probing available I2C devices...

 

     00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
====================================================
00     

Outcomes