25MHz out an compare output pin

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by hzrnbgy on Sat Sep 10 15:04:57 MST 2011
I was wondering if its possible to generate a clean 25MHz, 50% duty cycle waveform using a 32 bit timer assuming I have a clock source of 48MHz

I am considering using this method instead of a separate crystal oscillator to drive an Ethernet chip.

(48MHz) SYSCLK --> SYSAHBCLKDIV(divide by 1)

48MHz --> 32 bit timer

PresCale register=0, TC incremented every PCLK

MR0 = 25000000
MR1 = 12500000

reset TC on MR0 match