Hi,
At 16MHz one instruction cycle is 250ns. To get 1us delay you could doAny longer and you'd probably set up a loop or use some other tricks.Code:ASM NOP NOP NOP NOP ENDASM
/Henrik.
Hi,
At 16MHz one instruction cycle is 250ns. To get 1us delay you could doAny longer and you'd probably set up a loop or use some other tricks.Code:ASM NOP NOP NOP NOP ENDASM
/Henrik.
Nice!
Can I use this ASM code inside a IF....ENDIF condition? For example,
IF something
ASM
NOP
NOP
NOP
NOP
ENDASM
ENDIF
"No one is completely worthless. They can always serve as a bad example."
Anonymous
Thanks. I'll try that.
"No one is completely worthless. They can always serve as a bad example."
Anonymous
just think the IF ... ENDIF will take some time ... ( especially if "something" is a complex expression ) ...
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
This might be a great opportunity to utilize an O-scope :-]
Have fun!
Bookmarks