> > Hello, PICmaniacs > > I'm using a PIC16f84 at 4mhz, and would like to know if is > possible to me to create a frequency of 2mhz at some output pin! Nope. The 16F84 doesn't have any hardware to generate such frequencies. And since the chip divides the external frequency by 4, the instruction clock is 1 Mhz. So clearly no program can generate the frequency either. The best you could do is to take a higher frequncy clock and divide it down. Then use an output pin to gate the 2 Mhz clock. Something like an 8 Mhz oscillator and a 74HCT74 flip flop. Use the flip-flop to generate a 4 Mhz and 2 Mhz clock. Connect the PIC output pin to the reset of the 2 Mhz FF. So when the pin is 0 the clock stops. When the pin is 1 you get 2 Mhz out. Now your resolution isn't going to be real great. It may be a few clock ticks before the clock stops. Just some thoughts... BAJ