This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

A one cycle pass command in C (uvision MSP432)

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!!