I think it's not EE, but oh wel, who am I? The clock speed isn't the only thing. Think about compiler optimization, other bit size operators and variables, different opcode set, processor cache, opcode multiplier and probably a list the size of the Intel headquarters with other changes between those two. I think your best bet is to time the loop and in some sort of fashion use a timer to mimic that delay operation. These baby's aren't as predictable I'm afraid. Regards, Claudio -----Oorspronkelijk bericht----- Van: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]Namens Levente Molnar Verzonden: donderdag 19 september 2002 17:48 Aan: PICLIST@MITVMA.MIT.EDU Onderwerp: [EE-OT] Delay code on INTEL type processors Dear PIClisters, I have seen, that there are Delay Code Generators for PIC and/or SX microcontrollers. What do you think, for an Intel type processor, taking in consideration its frequency, what else is meaningful to achieve a certain amount of time delay by software, (eg. for(i=0; iuP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads