This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I'm trying to connect my LIS35DE accelerometer to piccolo c2000 launchpad using matlab/simulink embedded coder for c2000 processors. Slave address of LIS35DE is 29 (dec), and im trying to read register number 32, which value should equal 7, i check and this device works. I already made some programs using simulink embedded coder for this MCU and it work great, so i dont think its any connection problem.
Module clock prescaler and Master clock Low and High -time divider are set to give 100kHz i2c data transmition rate.
I tried debuging using SCI connection, and i got:
1. data transmiter status is: 0x10 0x34 but i'm recieving "Inital output" (default: 0).
2. if i change slave address to none existing like 13 i get: 0x86 0x14 (transmiter status) and 0 from receiver.
i read the eeprom example, but is complicate and i dont have a eeprom now...
what exactly are the i2c pins of the C282027?
i dont know if have default pins or i can enable that i want and where exactly in the library "embedded coder" i can configurate that pins... when i put the osciloscope in all the pins trying to find the clock signal (SCL pin) only appear a constant of 3.3 volts.... or if i need pull-up resistances... i make a new threat, if someone can help me with that.