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!!
Why? I don't know much on programming, it is true. Although I know quite a bit about piano performance, I grant myself that :) If I know much I wouldn't ask such a question.
A non sequitur is a conclusion or reply that doesn't follow logically from the previous statement.
https://www.merriam-webster.com/dictionary/non%20sequitur
"knowing very little about programming" is in no way a consequence of "being a pianist"
Sorry for an off-topic, but if you know a number of guys, who practice piano 10 hours a day, you will agree with me. We even have a term between us: "a victim of an art school" :) But I agree, I had to put the word "and" there, it would be clearer. I am a pianist AND I don't know much about programming.