This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

GPIOHigh Drive Mode is not working properly

Hello Everyone

I am trying to configure the two GPIO in High Drive mode 5mA but after compiling the program it does not seems like congifured to High drive Mode because the loudness of the buzzer is not increased so can anyone suggest me what went wrong in my GPIO configuration any ideas or suggestions will be helpful for me

main.c

Parents
  • GPIO_PIN_CNF_DRIVE_H0D1

    How is the buzzer connected? That says the GPIO pin at logic '0' is high drive, ie it will sink 5mA and at logic '1' it's disconnected entirely. But you say the voltage on the pins is 2.9V which makes it sound like you have the buzzer connected between the pin and ground, in which case I'm surprised it makes any noise at all.

    Is there a reason you're not using H0H1 which is just high drive 0s and 1s?

Reply
  • GPIO_PIN_CNF_DRIVE_H0D1

    How is the buzzer connected? That says the GPIO pin at logic '0' is high drive, ie it will sink 5mA and at logic '1' it's disconnected entirely. But you say the voltage on the pins is 2.9V which makes it sound like you have the buzzer connected between the pin and ground, in which case I'm surprised it makes any noise at all.

    Is there a reason you're not using H0H1 which is just high drive 0s and 1s?

Children
No Data
Related