2182848_en-US

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

2182848_en-US

2182848_en-US

CMU Reference Count calculation discrepancy between RTD and Reference Manual

This post is a copy from here, Device: S32G3

In Reference manual, RMS32G3 Rev 4, Section 69.6 Programming Guidelines:

CasperQian_0-1759997197718.png

  • 3*fref /fbus
  • 8+(5*fref/fmonitored)

In Code (Mcu_TS_T40D11M40I2R0/src/Clock_Ip_Monitor.c)

CasperQian_1-1759997381181.png

  • 3*fref /fbus
  • 9+(5*fref/fmonitored)
  • 80 (CLOCK_IP_CMU_REFERENCE_COUNTER_MINIMUM_VALUE)

I'm not sure where in the reference manual to include 80 as a choice for the reference count and also why they chose 9 instead of 8 in the second equation. Should the reference manual be updated or the code? Can anybody help clarify this? Thanks

Casper

RTDRe: CMU Reference Count calculation discrepancy between RTD and Reference Manual

Hi @CasperQian ,

From my point of view, as you can see in the formula: it contains celling of, this means if the result is 8.1, it return 9. For this reason, 9 used instead of 8.

From RM, 80 chosen as minimum reference count in RCCR follows this:

Nhi_Nguyen_1-1760003834520.png

Best regards,

Nhi


Tags (1)
No ratings
Version history
Last update:
‎11-20-2025 11:07 PM
Updated by: