efr32fg14 EVM harware difference between Input and pushpull

Status
Not open for further replies.

yefj

Advanced Member level 4
Joined
Sep 12, 2019
Messages
1,391
Helped
1
Reputation
2
Reaction score
5
Trophy points
38
Activity points
8,470
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:

reference manual page 1069:

Code:
GPIO_PinModeSet(BSP_GPIO_PB0_PORT, BSP_GPIO_PB0_PIN, gpioModeInput, 0);
//  GPIO_PinModeSet(BSP_GPIO_PB1_PORT, BSP_GPIO_PB1_PIN, gpioModeInput, 0);

  // Configure LED0 and LED1 as output
  GPIO_PinModeSet(BSP_GPIO_LED0_PORT, BSP_GPIO_LED0_PIN, gpioModePushPull, 0);

  GPIO_PinModeSet(BSP_GPIO_LED1_PORT, BSP_GPIO_LED1_PIN, gpioModePushPull, 0);
 

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?



 

Attachments

  • BRD2102A-A04-schematic.pdf
    997.6 KB · Views: 153
  • PCB2102A-A02-assy-draw.pdf
    2.3 MB · Views: 142
  • 1673009522444.png
    101 KB · Views: 107

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…