STM32H7 gpio speed problem
Hello everyone,
I am encountering difficulties with a project. I decided to use an STM32H7B0 microcontroller, which I had previously used in other projects, for a new application. However, I have encountered a difficulty due to the signal propagation delays between the core and the GPIO peripherals.
Specifically, I need to wait for the state change of an input and immediately change the state of an output pin at a particular point in the code. The pins are already allocated on two ports and I cannot change them at the moment (the need is for multiple inputs and outputs).
The issue is that the propagation time, besides being excessively long (currently not below 200ns), is not stable.
I am working at 280MHz, have DMA enabled for ADC, and disable interrupts during the execution of this code. I have already tried all levels of optimization:
while (LL_GPIO_IsInputPinSet(INPUT_GPIO_Port, INPUT_Pin) && __HAL_TIM_GET_COUNTER(&htim17) < 250) { } LL_GPIO_ResetOutputPin(OUTPUT_GPIO_Port, OUTPUT_Pin);
It does not seem to depend on the code but rather on the access time to the peripherals.
