I already said a quiet doah! to myself after sending this. Having spent more than a little while simulating it I of all people should remember a 628 has a PWM module... and yes it is simply a brilliant gem of a micro. James caska@virtualbreadboard.com -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Byron A Jeff Sent: Tuesday, June 25, 2002 12:17 AM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]: Serial timing dilemma On Mon, Jun 24, 2002 at 10:47:12AM +1000, James Caska wrote: > I suppose if you have already moved to the 628 its probably not practical, > but I imagine you could quite likely use the 877 PWM with a low frequency > setting to generate a nice consistant pulsestream and then update the > frequency each time you receive a new serial packet. You might need to keep > track of how many output pulses the PWM has actually made to synchronise > with your serial input data but then the serial stream would be less time > critical. It's imminently practical. The 628 has the same 10 bit PWM module as the 877. Another reason why it's the cream of the crop when it comes to 18/20 pin PICs. BAJ -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body