Question
HAL_gpio driver switching speed
Posted on August 09, 2016 at 19:29
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