Clock skew under temperature for UART and PWM

I am using an nrf52833 with both 32.768 kHz and 32MHz external crystals (identical to the DK). When I go down to -30 deg C, the uart stops working. I believe that this is due to frame errors having to do with clock skew. Interesting enough, when I plug the usb cable (data only), the uart communications started up again.

In order to confirm a clock skew, I used a gpio pin as output of a pwm at 1mSec. I observed an increasing pwm output of 1.03-1.07msec. When usb was plugged in, the pwm output was exactly 1.00msec.

Not sure why this is happening, and why it is not happening when USB is connected?

Parents Reply
  • That example worked in turning on the HFCLK. I am able to use the UART all the way down to -40 deg C. For some reason, even though I release the HFCLK like your example, the current consumption does not go back down into the uA like expected. If I don't request and release the HFCLK (code I had before starting this thread), then the sleep currents are ok. My assumption is that something is holding the HFCLK (not the UART since I'm suspending it). Is there a way to check what is holding the HFCLK from being disabled ? Did you ever notice this behavour ?

Children
Related