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.

TM4C1294NCPDT: Generating low frequency synchronized PWM with timer

Part Number: TM4C1294NCPDT

Tool/software:

Good evening. I need to generate 2 signals, one in 500kHz and one is 50Hz, and these signals has to be synchronized.

It is impossible to use PWM controller, as it has 16bit timeer counter and no configuration to meet these frequencies. The only way is to use 32bit counters of timers, but I see no way to use 32bit timer to generate output signal on pin.

  • Hi,

    I need to generate 2 signals, one in 500kHz and one is 50Hz, and these signals has to be synchronized.

    It is impossible to use PWM controller, as it has 16bit timeer counter and no configuration to meet these frequencies

    You can prescale the System Clock up to /64. See the PWMDIV register. With the clock divider, it will allow the 16 counter to cover 50Hz and 500kHz.

    The only way is to use 32bit counters of timers, but I see no way to use 32bit timer to generate output signal on pin.

    The timer module in PWM mode uses 24-bit counter which is sufficient to cover the 50Hz PWM. 

  • Thank you, looks like second aproach is ok.

    For PWM controller, with /64 divider 500kHz is not possible, only 468.75kHz or 625kHz.