STM32 GPIO Lecture 17 : GPIO Input data register

GPIO Input data register


 

GPIO input data register is used to read the I/O state of particular GPIO pin or GPIO port. Here you can only read this register and not write into this register.

 

GPIO Input data register
Figure. GPIO Input data register

 

We know that GPIO port has 16 pins, so that’s why 16-31 are reserved. So, 16-31pins not used. Thus, only 0-15 pins used. 

These bits are read-only and can access in word mode only. And whenever firmware or code reads the value which is there inside the input data register will be returned to the program. They contain the input value of the corresponding I/O port.

The input data register will update for every one AHB1 bus clock cycle.

In the following article, let’s discuss GPIO Output data register and summary of various modes

 

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.