On 9 July 2010 14:55, wrote: > Matt, > >> It might be better if you include all of the code you are running. You >> do not show any of the setup here. Have you set RC1/2 as digital pins? > > Yes, in ANSEL. > >> At power up, these pins will be configured for digital inputs. >> Either try clearing the relevant bits in ANSEL, or use RC4/5 >> Also, make sure that you have cleared the relevant bits in TRISC to >> set the pins as outputs. > > Yes. > > I have mentioned tha the o/p toggles between +5V and 0V at low frequency but at higher frequencies, it does not reach 0V but reaches only 1V. Have you tried using RC4/5, to elimitate any possible interference from the analogue circuitry on RC1/2? Matt -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist