Hello, in the code bellow i see that gpio pin is defined as input or as pushpull.
I am trying to look at the manual diagram shown bellow , how "hardware wise" pushpull work and how "input" works?
Thanks.
data sheet:
Not sure what you are asking, the function seems pretty obvious and is similar to most modern uC GPIO. Think of the output with enable as a 74HC125 tri-state driver. In input mode the driver is permanently disabled.
Hello FVM, i have a button connected to the Input,i have found a diagram from other website shown bellow.
when i press the button connected to gnd i see how it works.
but when the button is not prssed and we have open circuit how does the Input functions?
Thanks.
If you connect a button (lets assume single-throw switch to ground) to the input, you need a pull-up resistor. Either place external pull-up or activate internal pull-up of the pin.
Hello,i have attached the scematics and assembly prints of similar board .
as we can see one side of the button connected to ground.
the other side of the switch connected to mcu PD5,how can i want what happence in the mcu shown in the diagram bellow
What is the component marked red ? it looks like a buffer with hysteresis in it.
in gpio we have high or low results to store
What is DIN DOUT?