I got my 74HC4017 circuit working. The circuit takes the output of the PWM generator as the clock source, and then switches between each output in sequence. You can't see from the photo, but each LED lights up in sequence. Once you go above 100Hz then all of the LEDs appear to be lit, but they're actually being lit sequentially. I added the LEDs as a visual indicator about what's going on. I am planning to take the signal output from each pin on the 4017 and feed each one into a different MOSFET driver logic input (non-inverted). I'll then feed the inverted PWM signal into the inverted input on the gate driver, and both non-inverted and inverted inputs will be ANDed together and this logical product will be reflected on the output. I'll also feed the non-inverted PWM signal into the clock input on the 4017. Next up I need to adjust my Arduino code to output both a PWM signal and its inverted output. Thankfully I'm using a library ( eFlexPwm) that someone wrote to work with the hardware PWM timers on the NXP IMXRT1062DVJ6 ARM Cortex-M7 CPU. The library makes it super easy to generate PWM waveforms. I'm using the Teensy 4.1 Arduino board for my project. It's the fastest Arduino board out there right now. The CPU runs at 600MHz.
|