Hey there,
I would like to use the internal PWM module in my PIC16F628 chip instead of the PWM software statement. I have heard this will allow me to use a seperate clock speed (rc=3?) so I can run a motor speed control while monitoring several other switches with my Xtal. Where I am really stuck is... How to set up the loops such that I am really doing 2 things at once.... , checking conditions of switches and fetching POT value for PWM on a seperate clock speed. I would appreciate any help.
thanks!

'general idea, no coding as I do not want to be mocked just yet
example....

loop 1: 'internal RC constant or something
' fetch POT value...store as B0
' use value for PWM output to motor



loop2: 'external 4Mhz crystal
'if then else statements looking at 5 switch values
'branching to subroutines