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.
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