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!!
The Cortex-M3 reference manual lists all op-codes. What you are looking for is a no-operation opcode.
https://community.arm.com/developer/ip-products/processors/b/processors-ip-blog/posts/cortex-m-resources
=>
https://developer.arm.com/ip-products/processors/cortex-m/cortex-m3?_ga=2.168564771.30730016.1586785060-714993074.1584002927
developer.arm.com/.../ed
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 ;-)
Yay yay yay!!! Thanks!!!