This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Troubleshooting DS1339 RTC TWI on Custom Board with nRF52832

Hello,

I am working on a project that I built using the nRF52DK and then created a custom PCB. The software I wrote works on the DK with a breakout board for the RTC and the custom PCB should have the same connectivity. I am getting a negative acknowledgement error from the RTC over RTT (8201) whenever trying to send or receive data from the RTC. I am not sure how to work on troubleshooting this.

Is there anything that may be different from purchased 52832 SoC vs the ones that come on the nRF52DK?  I found some info on port protection, but that seems to only limit the debugger, and I've been able to access flash memory of the custom SoC and use RTT so I don't think this could be limiting anything.

Myself and multiple others have checked all the connections and components to be correct. I used a voltmeter to check the SDA and SCL lines to be properly pulled up on the correct 52832 pins. I get the same error on multiple boards, which makes me think it is a systematic error but am not sure how to further investigate this. Are there any other checks I could do? Potentially using an oscilloscope or some other method of checking hardware?

This is my first attempt at translating from a DK to a custom PCB so any general advice would also be appreciated. I can also post the PCB schematic/software if that would help, but right now I'm mostly looking for general advice on what to try.  

Thanks!

Parents
  • I found the issue.  The DS1339 has to operate above a power failure threshold.  This threshold is 2.7 for the 3V version of the 1339, and due to resistance in my VDD line my voltage occasionally drops below this threshold which puts the RTC in a state that cannot be accessed.  Increasing the voltage to above this threshold returned behavior to work as expected.

Reply
  • I found the issue.  The DS1339 has to operate above a power failure threshold.  This threshold is 2.7 for the 3V version of the 1339, and due to resistance in my VDD line my voltage occasionally drops below this threshold which puts the RTC in a state that cannot be accessed.  Increasing the voltage to above this threshold returned behavior to work as expected.

Children
No Data
Related