where do I find lpc17xx_i2c.h and lpc17xx_i2c.c?

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

where do I find lpc17xx_i2c.h and lpc17xx_i2c.c?

1,355 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by elgarbe on Sun Dec 01 16:26:10 MST 2013
Hi all, I'm Leonardo, from Argentina. I am developing on LPCXpresso 1769 and I need to use I2C.
I can't find a simple library with tipycal I2CWrite, I2CRead, I2CStart and so on.... I found that on lpc17xx_i2c.h and lpc17xx_i2c.c on the web, but I don't know where do I finde those files. Are they part of CMSIS?

Best regards and sorry by my english!
Labels (1)
0 Kudos
Reply
4 Replies

1,290 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by elgarbe on Mon Dec 02 12:52:58 MST 2013
Ok, if you help me I will try to use LPCOpen driver.
I will make hardware conections between LPCXpresso and my bosch bmp850 snesor and my USBee logic analyzer.
Then I will start to read about LPCOpen instalation and finally I will start with questions!!!!!

Thk a lot and best regards
0 Kudos
Reply

1,290 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ntorresa on Mon Dec 02 05:53:34 MST 2013
I don't have any examples but it's really easy. You can first configure the I²C pins with the function PINSEL_ConfigPin (you will need lpc17xx_pinsel.h), then call I2C_Init and I2C_Cmd functions, and then you are ready to transfer data (receive or transmit) with the function I2C_MasterTransferData, loading the correct values in a I2C_M_SETUP_Type structure.
0 Kudos
Reply

1,290 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by elgarbe on Mon Dec 02 04:26:23 MST 2013
Hi, thk for the answer!

I found i2c driver on LPCOpen, but the example is too complicated. Have you got some simple example to use this driver?

Best regards "gil"  :)
0 Kudos
Reply

1,290 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ntorresa on Sun Dec 01 22:10:39 MST 2013
http://www.lpcware.com/system/files/lpc175x_6x_cmsis_driver_library_0.zip

No, they aren't part of CMSIS, search them in the Drivers folder.

Regards "boludo" :)
0 Kudos
Reply