LPC1679CMSIS BOARD - I2C example - finding slave devices

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC1679CMSIS BOARD - I2C example - finding slave devices

647 Views
tomaszxyz
Contributor I

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-konwer...). 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     

Labels (3)
0 Kudos
1 Reply

395 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Tomasz XYZ,

   I think you are talking the LPC1769, not the LPC1679. 

     Please tell me where you download the code which you are using, I can't find the source, please give me link, I will help you to check it.

    Actually, about the device address, normally, it is defined in the I2C initialization code, if you can't find it from the code. Please tell me your code download link, I will help you to check it.

   Waiting for your reply!


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos