Andrei, Check out the Delay Code Generator from Nikolai Golovchenko at: http://www.piclist.com/cgi-bin/delay.exe You can specifiy the precise delay. And the code is commented with the delay times for the various sub-loops. This is an excellent, time-saving resource. Andrew Be sure to alse check out Nikolai's code generator for multiplication and division by a constant. Outstanding! ________________________________________________ Get your own "800" number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag ---- On , Andrei B. (andrixnet@YAHOO.COM) wrote: > How can I do exactly N * 1ms delay on a PIC16F84 without the timer at > 4MHz ? > > I've tried some loops, but every way I thought about it, I couldn't get > anything less the N * 1ms + X us (X usually 4) (I include call and > return in the calculation) > > Anyideas on how to make a delay exactly N * 1ms call/return inclusive > at 4MHz without the timer? > > Thank you. > > > ===== > ing. Andrei Boros > Centrul pt. Tehnologia Informatiei > Societatea Romana de Radiodifuziune > > __________________________________________________ > Do You Yahoo!? > Great stuff seeking new owners in Yahoo! Auctions! > http://auctions.yahoo.com > > -- > 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