I am using an sm72442 for mppt power management. I am using an arduino to prototype a board. The problem I am having is that the datasheet shows that there are 7 bytes in each register; I have set up the communication with no problems, but I can't seem to get all the data. I only get 6 bytes from the chip, and always a number 7. So, my data looks like this, for every register:
(byte::data)1::72::data3::data...6::data7::0
So, I can't tell if the data is missing from the front of the transmission or the end. I also don't know why I am receiving a 7, when my microprocessor should be the one sending a 7. If I instead request 8 bytes, I still receive a 7 as the first byte, and more zeros at the end of the transmission.I have also tried to write to every register with the max value. When I read the data back, I get data like the following:(byte::data)1::72::2553::255...6::2557::0
I would really appreciate any advice for troubleshooting this problem, it has been driving me crazy. I've tried every combination of things I can think of.
(byte::data)1::72::data3::data...6::data7::0
So, I can't tell if the data is missing from the front of the transmission or the end. I also don't know why I am receiving a 7, when my microprocessor should be the one sending a 7. If I instead request 8 bytes, I still receive a 7 as the first byte, and more zeros at the end of the transmission.I have also tried to write to every register with the max value. When I read the data back, I get data like the following:(byte::data)1::72::2553::255...6::2557::0
I would really appreciate any advice for troubleshooting this problem, it has been driving me crazy. I've tried every combination of things I can think of.