Hi,
I've been trying different PWM settings mainly on the 18LF4431 PIC, and it's to complicated for me.
Also having thought about what I need for 6x PWM, I think a simpler TMR type program will be ok.
What I am trying is to set a TIMER LOOP (using TMR1, unless there are other suggestions) to time a 20MS 'SERVO PERIOD' LOOP, then as the LOOP starts, switch ON/OFF RB0-RB5 in sequence for up to 2MS each . The 'DUTY ON' time will be set from inputting 6 times using USART.
Here is a program I've been trying from an earlier one on a 16F648 PIC, which of course has lots of differences.
It nearly works, but I'm puzzled why the TMR1H/L keep clearing?
Camerart.