nRF9160DK high accuracy UART baud rates

I'm a newbie (few weeks) with nRF9160-DK and using nRF Connect SDK v1.7.1 / VS Code on a Windows 10 PC

Good afternoon,


I'm struggling with how to set up and start the external crystal oscillator on the nRF9160DK to get high accuracy UART baud rates. I've spent hours and looked at loads of samples/applications with UART in them, and have found nothing. I've looked at Clock control documentation as suggested but thats way too advanced for me. Is there an easier way for newbies to get into this stuff ? Some nRF9160 clock setting examples that I can use and learn from under VS Code perhaps ?


Or maybe the high accuracy crystal is already selected by default, and I don't need to do anything ? Which would explain why none of the examples seem to use it. But from what I've read I don't think that is the case. I think HFXO is only started by 'triggering HFCLKSTART task', but what is that and how to do it ?


Apologies if this is a bit of a basic question, but I'm quite new to Nordic and get the feeling that there's a very obvious document somewhere that I should be reading but have somehow missed.

Parents
  • OK I tried both examples and they seem to work. The register access is simple and easy to understand. The method using the Zephyr clock subsystem is way over my head. I can't even begin to have the faintest idea what that is all about. Unfortunately for me I'm one of those guys that really likes to properly understand what is going on.
    But that's for me to work out. I'm happy with the answer I have. I think you can close this ticket.

Reply
  • OK I tried both examples and they seem to work. The register access is simple and easy to understand. The method using the Zephyr clock subsystem is way over my head. I can't even begin to have the faintest idea what that is all about. Unfortunately for me I'm one of those guys that really likes to properly understand what is going on.
    But that's for me to work out. I'm happy with the answer I have. I think you can close this ticket.

Children
No Data
Related