Advertisement

Great Cow BASIC: Part 7: Controlling the outputs to set duty and frequencies of LEDs with PWM Module

Great Cow BASIC: Part 7: Controlling the outputs to set duty and frequencies of LEDs with PWM Module Sorry ... no sound from 00:40 to 02:00.... I have just setting the scene, recapping and saying what we are going to do!

The training session explains how to set up and use multiple PWM modules PWM module with a variable PWM duty and frequency.

This training session uses PWM to the power to one of more LEDs. So, far we have covered setup, outputs, creating a variable, inputs and now PWM. The session shows:

1. PWM module. This method support up to nine PWM modules. The signal is constant and uses no CPU cycles. The method shown generates a variable duty cycle and frequency. These frequency is changed within the program using a simple calculation and the duty cycle is changed using the value returned from the 10bit ADC. The chip requires the use of PPS - this is also covered.

The video uses the latest board layout, same as training session 4, from Chris Roper provided this.

Module

Post a Comment

0 Comments