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
  • I think the discrepancy is too big to caused by the clock source. Do you have a 52833 DK you can test this on for comparison? The System run current in idle and UARTE enable should not exceed 1 mA regardless of whether you are using HFINT or HFXO.

    Another thing you can to do troubleshoot this is to read out the following registers with the debugger:

    • HFCLKSTAT - check if xtal is enabled
    • UARTE.ENABLE - check if UARTE instance is enabled
Children
Related