I've been caught out with this one a few times, but no like this.
I have software that generates pwm, not using the ccp, in software, there are 2 channels using portb,0 and portb,1.
The pwm routines runs in a loop continuously, while everything else runs in an inetrrupt.
The pwm works fie, however if I try and use any other bits on portb as outputs the output appears for a fe uS, but as soon as the inetrrupt retrurns to the pwm routine the output clears itself.
Seems like a rmw issue, however it still does it with nothing but a 'scope or logic analyser connected to the pic.
Whats going on here then, is it due to the freq that the pwm o/p's are operating, about 500hz?
I have software that generates pwm, not using the ccp, in software, there are 2 channels using portb,0 and portb,1.
The pwm routines runs in a loop continuously, while everything else runs in an inetrrupt.
The pwm works fie, however if I try and use any other bits on portb as outputs the output appears for a fe uS, but as soon as the inetrrupt retrurns to the pwm routine the output clears itself.
Seems like a rmw issue, however it still does it with nothing but a 'scope or logic analyser connected to the pic.
Whats going on here then, is it due to the freq that the pwm o/p's are operating, about 500hz?