> No, you do not! > > The PC does not wrap around within a page. It will automatically advance to > the next page (ie; carry into the MSBits). So you are executing whatever > instruction sits at 0x200 (and following). That doesn't seem to be happening. I have let the PIC run for 10 or 15 seconds or more, then turned on the scope, and the square wave is still there! > However, all is not lost! You can use the PWM peripheral to generate your > 2MHz square wave. After setting it up, the PIC will be completely free to do > other tasks! > > You will need to: > > set PR2 to a value of 1 so that timer 2 counts 0,1,0,1,0,1, . . . > enable timer 2 > enable one of the PWM outputs > set the duty cycle register of the PWM output to 1. I didn't realize the PWM output could run that fast - I'll give it a try. Thanks! Ron _______________________________________________ http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist