I2C LPC 1114 arbeitet nicht

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

I2C LPC 1114 arbeitet nicht

400 Views
luapnenürb
Contributor I

Hallo zum ausprobieren habe ich im blinky software die i2c.c src Programme und in der LPC11xxx.cmsis.lib die i2c.h eingefügt. Die i2ctest.c habe ich im blinky.c genommen. Alle i2c Programme stammen aus der LPC11xx-LPCXpresso-CMSIS-updateV1_01_0.zip. Der Slave ist ein LCD Display von Electronic Assembley mit dem Phillips PCF2116X I2C Baustein. Im Interrupt Programm ging es über 0X8 nicht hinaus. Dann habe ich das Programm auf Polling umgebaut und die Status Meldungen notiert. Diese sind in Reihenfolge 0X8, 0X20 und 0X30 und Ende dann nur Blinky. On the PC is the LPCXpresso 8.1.0.201603021619 LPCXpresso null.

Was ist falsch? Ich komm Nicht weiter und arbeite zwischenzeitlich mit ST Microcontroller die I2C können. Es wäre schön, wenn der Entwickler auch ein lauffähiges Produkt hat.

 

Über jegliche Hilfe würde ich mich freuen

 

Luap

Original Attachment has been moved to: blinky.c.zip

0 Kudos
1 Reply

241 Views
Carlos_Mendoza
NXP Employee
NXP Employee

Hallo Luap,

Please notice that it is highly recommended to use the LPCOpen packages for development work instead of the CMSIS code packages, you can download the LPCOpen package from this page:

LPCOpen Software for LPC11XX|NXP 

You could use the periph_i2cm_interrupt or periph_i2cm_polling projects as base for your application.

As a recommendation, it would be better if you could post your questions in English as it will be easier for other community members to understand and contribute to your question.


Hope it helps!

Best Regards,
Carlos Mendoza
Technical Support Engineer

0 Kudos