Part Number: MSP430FR5994
Hello,
I have been trying to interface a slave which has non auto incremment buffer.So i have to send the repeated start for reading all the 64 bytes of data stored in the FIFO and i will separate Using a bit shifting.But here i am facing a problem with sending a repeated start condition using I2c.So i am getting some irrelevant values.I have modeled the same thing with arduino and it works fine.but when i model the same algorithm in Code composer i get irrelevant values.I will attach both the arduino code and MSP430 code here.please go through that read fifo function in both the programs and drop your suggestions guys.Thanks in advance
Arduino Code:
Link:#include<Wire.h>#define Device_FIFO_DEPTH 10//Registers#define Mode_Regi - Pastebin.com (Sorry guys, I couldn't able to paste the code here)
CC code:
Link:#include <msp430.h> #include <stdio.h>#include <stdint.h>#include <stdbool - Pastebin.com