Gday again,

Thanks for that info. I changed the PR2 as per your calculation. It still does not seem to give the same value as I enter in the terminal application. If I am correct in my coding, if I send it 100 with a terminal app 100 should display on the LCD and it should set the duty cycle to 100. This is not the case. It says 34 on the LCD and reflects that in the duty cycle.

Any ideas?

Thanks,

Ben