I do believe that the response to this question is in err. The previous responses indicating external hardware really seem to be your answer. This last response would give a pulse time of somewhere around .5mS not the .5uS requested. Fred > ---------- > From: Andre Abelian[SMTP:engelec@EARTHLINK.NET] > Sent: Wednesday, July 23, 1997 5:39 PM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: Output frequency > > WF AUTOMA‚̀O wrote: > > > > 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! > > > > Maw. > > > Yes you can. > loop bsf porta,ra0 > call delay > bcf porta,ra0 > goto loop > delay movlw .100 ; DECIMAL VALUE IS YOUR FREQUENCY > movwf count > d decfsz count > goto d > retlw oo > > > HOPE THIS HELPS > > ANDRE ABELIAN >