Hi,
I developed an active cell balancing board with ltc6803-1 monitor and right now I'm testing it. I followed the demo board schematic for PCB design:
I used a 1M pull-up resistor for all SPI signals (as AD suggestion), as well a 1k pull up resistor for host device (in my case a Teensy 4.1).
Moreover, I'm using the following .cpp and .h ltc6803 (https://github.com/analogdevicesinc/Linduino/tree/master/LTSketchbook/libraries/LTC68031) for coding.
I came across with a problem (explained below), but right now I don't know if it is a HW or SW problem.
Problem description:
My code is straightforward -> I wrote a struct that holds the configuration registers as following:
Then, at Setup(), I'm making the SPI initialization (with SPI.h library)
On the loop function I'm trying to write the configurations and then read them back. For that, firstly I'm using the write configuration function:
and then read configurations value:
Unfortunately, the Serial.print("Read Configuration: "); Serial.print(r_config[current_ic][current_byte]); is always 255 (overflow...) for every 6 cells!
I'm getting a little bit frustrated with that, so I'm begging for help!!!
If any information is missing for helping me, please let me know and I will send as soon as possible.
Best regards,
Henrique
Change post title to be more suggestive
[edited by: Hfree at 3:51 PM (GMT -4) on 4 Jun 2024]