TurboLS
- 3rd March 2005, 01:23
I have the HPWM working at 3.6kHz and I want to use that signal to set the interrupt flag on the rising edge. The signal coming out of the HPWM is fine when I do not have it wired to PORTB.0. Are my registers set correctly to make PORTB.0 an input and the others an output??
TRISB = %00000001 ' Set PORTB to all output, except for bit 0
That's the only thing I can think of that would be messing up the signal when I connect the two pins (CCP1, pin 17 and INTB0, pin 40). Any suggestions?
TRISB = %00000001 ' Set PORTB to all output, except for bit 0
That's the only thing I can think of that would be messing up the signal when I connect the two pins (CCP1, pin 17 and INTB0, pin 40). Any suggestions?