Much appreciated if someone can advise on the following:-
I have run a small 5VDC motor / gearbox directly with the 18M2 chip, pin B.6 as below, & have had success experimenting with duty & cycle parameters to get good speed control etc.
test:
pwmout B.6,99,250
main:
pwmduty B.6,250
pause 3000...