This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[MSP432] Genrating a 8 MHz clock with Timer Module?!

Hello there, 

i want to generate a 8 MHz clock signal with Timer_A Module of the MSP432P401. It should have a duty cycle of 50%. My main clock comes from an 48 MHz crystal oscillator.

But with respect to the specs (Timer_A max Clock: 24MHz) I don't see any possible configuration to get the desired clock signal. 

The only possibility i have found is a 8 MHz signal with 66,7% or 33,3% duty cycle. 

I hope I am wrong, and you can help me...

Thanks and best regards

  • Hi,

    I've calculated the values for CCR0 and CCR1 to get a hardware generated clock in OUTMOD_7, but I agree with you. There are no settings that fit for perfect 50% duty cycle at 8MHz. You would need CCR0 to be 2 and CCR1 to be 1.5 when the timer is running in up-mode and you source the timer from 24MHz. And using interrupts isn't an option as well. So I do not see a chance for it at the moment, but this does not mean there isn't one. Maybe someone else has an idea? Let's ask our MSP-god: , do you see a possibility we do not? But do you need the 50% duty cycle? If you want to source an external device with it, then most of them do not care since they are only edge triggered.

    Dennis

  • I would consider using 32MHz for core and 16MHz for timer.

**Attention** This is a public forum