AnsweredAssumed Answered

Autonomous Clock Trimming Register Details needed for MC9S12ZVC micro

Question asked by Anwar Husen Gokavaram on Dec 28, 2016
Latest reply on Jan 4, 2017 by Radek Sestak

Hi Radek,

 

I would like to configure the Autonomous Periodical Interrupt to wakeup the MCU every 10sec. Could you please provide me the details about the significance of the Autonomous Clock Trimming Register? PFA the attached details from the reference manual. 

For your information, I have configured as follows:

CPMUACLKTR = (CPMUACLKTR_ACLKTR1_MASK|CPMUACLKTR_ACLKTR2_MASK|CPMUACLKTR_ACLKTR4_MASK);

Clock source for API is ACLK

CPMUAPIRH = 0xD7u;
CPMUAPIRL = 0x40u;

I observe a drift of around 200ms. And it is varying board to board. What could be the reason?

 

Autonomous Clock Trimming Register

Thanks in advance. 

 

Wish you a wonderful Happy New year 2017.

 

With Best Regards,

Anwar

Outcomes