Yeah I see, but what I'm trying to do is for example: take the CLKIN_IRC (12MHz) clock ,multiply it for some value (10 -> 120MHz) using the MAINPLL, and then use the output of the MAINPLL as the clock source for the CLK_M3_TIMER0. However, CLK_M3_TIMER0 is not a base clock, so I could not modify it using the Chip_Clock_SetBaseClock function.
Chip_Clock_SetupMainPLLMult(CLKIN_IRC, 10);
Chip_Clock_SetBaseClock(CLK_BASE_MX, CLKIN_MAINPLL, true, false); //CLK_M3_TIMER0 will cause an error
I can only modify the BASE_M3_CLK, but by doing this, all the peripherals that uses BASE_M3_CLK as base clock will be affected too. If possible I would like to affect only the TIMER0.
My objective in the end is to clock sync two LPC1837 boards, so if one is counting faster than the other, I can make it count slower by reducing the clock rate. I'll use the those values as timestamps for the incoming frames on the Ethernet port.
Thanks for your help.
Kind regards, Luiz