AnsweredAssumed Answered

HAL_gpio driver switching speed

Question asked by Gerhard on Aug 9, 2016
Latest reply on Aug 9, 2016 by Clive One

Is the HAL_gpio driver slow compared to driving a pin in another fashion?

If I use

HAL_GPIO_WritePin(GPIOA, ANA_IN_J1_02_Pin, GPIO_PIN_RESET);

HAL_GPIO_WritePin(GPIOA, ANA_IN_J1_02_Pin, GPIO_PIN_SET);

 

At 16MHz I would expect the pin to toggle at 8MHz but the highest it does is about 600KHz, so High/Low for about 700nS

 

Any help appreciated

Outcomes