You don't tell us the range of period and frequency you want.
1) Set up a PWM.
2) Use the PWM clock to generate an interrupt after say 16 cycles.
3) Adjust pulse count by 16 on each interrupt.
4) ...
Thank you Ttelmah! I guessed this. Need internal configuration module CCP1 & (synchronize)SPECIAL EVENT TRIGGER? Is that possible?
There is no free pins!
Hi embedded systems experts! There is one problem: Need a code CCS to get the number of pulses. The required amount must be set programmatically, from 1 to 32767 pulses. Period and frequency should al ...