Dan Michaels writes: > > If you simply write a loop to poll RC1 [or RC0/RB0 when using > external connections - as you indicated you have already done], > then you should see the 20khz PWM signal on your portB pin. > > .... > > 3 - simple loop should do it, without any external connections. > > L1 btfss portc,1 ; PWM ch#2 output bit > bcf portb,2 ; signal out > btfsc portc,1 > bsf portb,2 > goto L1 > Thanks a lot Dan your third tip worked fine. []s Rodrigo Real -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads