MOD5272 CPU clock speed clarification

Discussion to talk about hardware related topics only.
Post Reply
ephogy
Posts: 30
Joined: Fri Aug 29, 2008 12:53 pm

MOD5272 CPU clock speed clarification

Post by ephogy »

Hi All,

Just wondering if anyone can clarify the CPU clock frequency on the MOD5272 board.

In the bsp.cpp file, there is a CPU_CLOCK variable defined as

Code: Select all

const unsigned long CPU_CLOCK = 66355200
also in the bsp.cpp file, the OS timer is setup as follows:

Code: Select all

   sim.timer1.tmr = ( sim.timer1.tmr & 0x00FF ) | 0x0400; // Set prescale to 1/5
...
sim.timer1.trr = ( WORD ) ( 781250L / TICKS_PER_SECOND ); //Set refernce count to give the proper Timer tick interval
...
sim.timer1.tmr = ( sim.timer1.tmr & 0xFFF9 ) | 0x0004; // Set Master_Clk/16 and start
Based on this, it looks like the OS thinks the CPU clock is 781250 * 5 * 16 = 62500000

And in the MOD5272 data sheet, it lists the clock speed as 62 MHz.

Does anyone know which one is correct? I'm fairly certain that it's either 62 MHz or 62.5 MHz.

Cheers,
Keith
User avatar
TomNB
Posts: 538
Joined: Tue May 10, 2016 8:22 am

Re: MOD5272 CPU clock speed clarification

Post by TomNB »

The correct value is 62.5MHz.
ephogy
Posts: 30
Joined: Fri Aug 29, 2008 12:53 pm

Re: MOD5272 CPU clock speed clarification

Post by ephogy »

Much appreciated. Thank you.
Post Reply