Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can NanoCore12 vary the pulse-width of a square wave?

0
10 Posted

Can NanoCore12 vary the pulse-width of a square wave?

0
10

The duty cycle of the square wave can easily be varied to produce a PWM waveform. Varying the pulse-width can, for example, control the shaft position of a servo motor, the speed of a DC motor, the effective brightness of a light, or the temperature of a heater. While this can be accomplished via a general-purpose output port by a simple software loop, there is a powerful hardware subsystem that will do it for you without any software overhead. You just set up the desired PWM parameters and the PWM waveform will be automatically generated on the chosen PWM output pin (channel). There are several of these PWM channels on NanoCore12, and each is independently programmable and free-running!

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123