Replies: 1 comment 6 replies
-
this is not a simple register write, it is in fact register read, then AND (to clear the bit from the register value) and then write again the result back into the actual register. You are setting a bit, not writing to the register a full value. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to measure the number of cycles it takes for esp32s3 to set a bit , I did this to execute the function from the IRAM, I thought its gonna be faster. (I am using the touch peripheral)
I measured the required processor cycles and it was 113 CPU cycle !!
The assembly code is shown as follows:
My question is why would these instruction take about 113 cycles to execute ?? even though they are just simple instructions, what is the issue ?
Beta Was this translation helpful? Give feedback.
All reactions