Search results

  1. M

    Using FlexPWM on Teensy 4.0 for Interleaved PWM Signals with deadtime in between...

    If I would like to change frequency of the signal to precisely 8 MHz where should I look? My understanding is that peripheral clock is used for driving pwm/quad timer and other modules. Unfortunately it uses 150MHz or 132MHz (in case of 528MHz CPU clock). Both of them are not divided by 8MHz...
  2. M

    Using FlexPWM on Teensy 4.0 for Interleaved PWM Signals with deadtime in between...

    Mux should be configured for pin which will be used as PWM. extern "C" { #include "pwm.c" } void pwm_config_pin(int _pin) { *(portConfigRegister(_pin)) = pwm_pin_info[_pin].muxval; } This is basically the same as: IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_04 &= !B10111 | B1; // set pad to...
Back
Top