2024-11-01 02:09 AM
Hi,
I am confused with pin toggle timings, why I am getting non equal pulse widths like in the picture, I turn off all compiler optimizations and disable all of the interrupts, code is simple pin toggling. My controller is STM32L431 running on 80MHz.
Thank you very much for any advice!
__disable_irq();
while(1) {
GPIOB->BSRR = GPIO_BSRR_BS15;
__NOP();
__NOP();
GPIOB->BSRR = GPIO_BSRR_BR15;
__NOP();
__NOP();
}