Hi all,
Hopefully a quick one..... Can I read from a pwm pin using a btfss portx,x on a 16f1827 or will this drive it mad? I need to know how many pwm cycles have occured between events on another pin, I could write a routine using the pwm period data and timer to increment a register, connect timer1 through a pin as counter(lose a i/o ) or check the port the pwm is on, the tris bit has to be set to use the pwm. I know I could try it and see what happens but I fear there maybe problems others may have found?
Cheers Geoff
Hopefully a quick one..... Can I read from a pwm pin using a btfss portx,x on a 16f1827 or will this drive it mad? I need to know how many pwm cycles have occured between events on another pin, I could write a routine using the pwm period data and timer to increment a register, connect timer1 through a pin as counter(lose a i/o ) or check the port the pwm is on, the tris bit has to be set to use the pwm. I know I could try it and see what happens but I fear there maybe problems others may have found?
Cheers Geoff