Quantcast
Viewing all articles
Browse latest Browse all 5279

Bare metal, Assembly language • Re: Looking for information on the RPi 5 System Clock

Just out of curiosity, this is indeed interesting question especially for embedded and/or automation applications. So, is this 54MHz counter the most precise hardware counter running with constant frequency?

Code:

mrs x0, cntpct_el0
I used rdtsc on Intel but at those times the core frequency was constant. The only inconvenience that came later was to make sure these "time stamp counters" are actually from the same core, so you're comparing apples to apples and oranges to oranges. ARMv8 CPU has cycle counters in PMU but since core clock is adjusted all the time these cycles have meaning for performance analysis and have no meaning as a time stamps.

Statistics: Posted by ed1k — Wed Jul 17, 2024 5:58 pm



Viewing all articles
Browse latest Browse all 5279

Trending Articles