2025-02-25 1:11 AM - last edited on 2025-02-25 4:29 AM by Peter BENSCH
Hello Guys,
currently, im trying to get the VL53L0X to work with my MSP430 Controller but my biggest problem is the communication with the Device. Ive copied the Software from Artful Bytes and changed it to match my board. Here is the Link:
https://www.artfulbytes.com/mcu-i2c-driver
Ive tried to write a simple byte to the Sensor but all it does is pulling SCL and SDA down right after transmitting the last digit (write). It doesnt even give an ACK and it willbe pulled down until i cut the power supply.
Writing Byte
Ive also tried to read a byte from the Sensor and strangly it seems work. All i did was to write a simple code to read right from the VL53L0x. There was no init for the Sensor but it didnt pull the line down.
Reading Byte
I need help with my Sensor. Do i have to write some data to an other Slave-address before writing to 0x29?
Sincerely
EddyK
Solved! Go to Solution.
2025-02-25 4:25 AM
Id like you to inform, that the only Problem here was me.
I didnt read the Usermanual carefully of my Microcontroller trusted other sources on how to write the TX Buffer. It turns out that my Controller discards the whole Buffer and waits until it is writen (the Microcontroller pulled the SCL line). Ive always wrote to the Buffer before waiting for the Startbit to be set. Ive changed the position so that i write to the buffer after waiting for the Startbit to be set. I use the MSP-TS430RHA40A package if anyone is interested
Sincerely
EddyK
Successfully written a Byte
Reason it didnt Work
2025-02-25 4:25 AM
Id like you to inform, that the only Problem here was me.
I didnt read the Usermanual carefully of my Microcontroller trusted other sources on how to write the TX Buffer. It turns out that my Controller discards the whole Buffer and waits until it is writen (the Microcontroller pulled the SCL line). Ive always wrote to the Buffer before waiting for the Startbit to be set. Ive changed the position so that i write to the buffer after waiting for the Startbit to be set. I use the MSP-TS430RHA40A package if anyone is interested
Sincerely
EddyK
Successfully written a Byte
Reason it didnt Work