Hello everybody! If someone could please help with such problem. I am a pianist, so I know very little about programming in general, but at the moment I program an MSP432 Texas Instruments launchpad and use uVision for that purpose. What I am asking is if there is a way in C, to ask the processor to do nothing for exactly one clock cycle? If not, what is the way to do the shortest pause possible in C? If I use an empty "if" statement, it will be considerably longer than one cycle: reading from memory to one register, loading a comparing value into another register, comparing. Too long. Passing exactly one cycle would be optimal, but if such isn't possible, what is the shortest possible "do nothing" in C?
Thank you!!
42Bastian Schick said:What you are looking for is a no-operation
Indeed - aka "NOP"
http://www.keil.com/support/man/docs/armcc/armcc_chr1359124998347.htm
Oh, no. Now you spoiled it ;-)