Jump to content
43oh

YSN

Members
  • Content Count

    3
  • Joined

  • Last visited

  1. I removed the 10k resistors as I read online that the sensor has 4.7k resistors on board. Progress: Initially, the problem is solved if I turn off the sensor and turn it back on. Then I am able to cycle through the 14 data registers once. But when I send the stop and then restart at the address of the first register (0x3B) to be read, the code gets stuck at polling for TXIFG.
  2. Hi Antscran, yes I have cross checked the address (0x68). I will use a lower value resistor for pulling the SDA and SCL lines. Unfortunately, I don't have access to a scope. But please find the attached code. I am using the Driver library for MSP432. Code: #include "driverlib.h" #include "i2c.h" #include <stdint.h> #include <stdio.h> #include <stdbool.h> #include <string.h> #define SLAVE_ADDRESS 0x68 #define NUM_OF_REC_BYTES 14 const uint8_t TXData[16] = {0x6B,0x00,0x3B,0x3C,0x3D,0x3E,0x3F,0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48}; static uin
  3. Hi, I am having trouble interfacing the MSP432 with MPU6050. I have pulled the SDA and SCL lines up to 3.3V with 10k resistors. When I initiate the communication using the I2C_masterSendMultipleByteStart(), the program enters an infinite loop waiting for the TXIFG to be set after the STT is sent. I can see that the STT remains set and TXIFG never gets set. What could be the issue? Please let me know if you want me to post the code. Thank you.
×
×
  • Create New...