I would like to drive STM32L011D3 GPIO in output to "1" or "0" with a minimum of instruction. I think we need:1 LDR + 1 ORR or AND + 1 STR = 3 instructions and 5 cycles Is there a more cycle-efficient way to do this?
Is it possible to set an output to "1" or "0" with an instruction of one cycle?