STM32 GPIO Lecture 12 : Output configuration of GPIO Pin in Push pull mode

Output configuration of GPIO Pin in Push pull mode


 

Output configuration
Figure. Output configuration

 

In this article, let’s understand the GPIO output mode.

For output mode, there are two configurations.

  1. open drain,
  2. push-pull.

 

In this article, let’s see about push-pull output type configuration.

In push-pull mode “0” in the Output data register activates the N-MOS whereas a “1” in the Output data register activates the P-MOS.  The data present on the I/O pin is sampled into the input data register over every AHB1 clock cycle. Read access to the input data register gets the I/O state. Read access to the output data register gets the last written value.

To set GPIO output type register in push-pull mode, in GPIO_OTYPER register bit is set to “0”.

In the following article, let’s see Output configuration of GPIO Pin in Open drain mode.

 

FastBit Embedded Brain Academy Courses,

Click here: https://fastbitlab.com/course1

FastBitLab

The FastBit Embedded Brain Academy uses the power of internet to bring the online courses related to the field of embedded system programming, Real time operating system, Embedded Linux systems, etc at your finger tip with very low cost. Backed with strong experience of industry, we have produced lots of courses with the customer enrolment over 3000+ across 100+ countries.