2014-12-09 08:43 PM
What I would like is an example that illustrates how an STM32L1xx master
can send to and receive data from a slave--the accelerometer in this case, across the I2C interface using the Standard Peripheral Library. It does not need to too hardware specific. However, not that the slave does not have DMA or extended I2C capabilities, or the capability to generate automatic I2C interrupts. Consequently, the master needs to initiate all transactions and poll for responses. Is it the case I download/install STM32Cube and then select I2C and study the code? Thank you! #stm32l1-i2c2014-12-09 10:00 PM
STM32L1xx_StdPeriph_Lib_V1.3.0\Project\STM32L1xx_StdPeriph_Examples\I2C\I2C_EEPROM\main.c
\STM32L1xx_StdPeriph_Lib_V1.3.0\Project\STM32L1xx_StdPeriph_Examples\I2C\I2C_TSENSOR\main.c