SAMA5D7 - PMC Oscillator Calibration

Moderator: nferre

Posts: 18
Joined: Tue Mar 27, 2018 8:27 pm

SAMA5D7 - PMC Oscillator Calibration

Wed Aug 28, 2019 8:38 pm


I'm using a SAMA5D27C-D5M SiP with the internal 12MHz RC oscillator as Main Clock. However, this is causing a high drift in my external RTC (around 1 second per 3 minutes). This was observed by comparing the RTC time (hwclock command) and the System time (date command). I found a register that can be used to calibrate the RC oscillator (PMC Oscillator Calibration Register). There is some documentation in the Clock Generator chapter but it's not clear to me how this calibration works. How can I use this calibration? Could this solve the RTC drift problem?

Thanks in advance!

Return to “SAMA5-based”

Who is online

Users browsing this forum: thackerp and 2 guests