Timer/PCA exercises




PWM signal generated by the PCA

Write a function that generates a 8-bit pulse width modulated signal using a selected module of the programmable counter array. The input parameter is the duty cycle in % and a number that selects a module. The signal frequency should be the highest allowed by the system clock.