Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| stm32:peripherals:gpio_input [2016/11/08 08:08] – [Programming Instruction] feur | stm32:peripherals:gpio_input [2022/12/28 08:15] (current) – ruan | ||
|---|---|---|---|
| Line 21: | Line 21: | ||
| * Write '' | * Write '' | ||
| * Configure pull-up / -down in '' | * Configure pull-up / -down in '' | ||
| - | \\ | ||
| - | |||
| - | > {{logo_hal.svg? | ||
| - | > [[https:// | ||
| - | > [[https:// | ||
| \\ | \\ | ||
| ===== Configuration Registers ===== | ===== Configuration Registers ===== | ||
| - | ==== MODER ==== | + | ==== GPIOx_MODER - GPIO port mode register |
| - | + | ||
| - | Mode register | + | |
| \\ {{gpio_reg_common.svg}} \\ \\ | \\ {{gpio_reg_common.svg}} \\ \\ | ||
| Line 39: | Line 32: | ||
| |Pin x|00|Input mode (reset state)| | |Pin x|00|Input mode (reset state)| | ||
| - | ==== PUPDR ==== | + | ==== GPIOx_PUPDR - GPIO port pull-up / pull-down register |
| - | + | ||
| - | Push-up / pull-down register | + | |
| \\ {{gpio_reg_common.svg}} \\ \\ | \\ {{gpio_reg_common.svg}} \\ \\ | ||
| Line 52: | Line 43: | ||
| ===== Data Registers ===== | ===== Data Registers ===== | ||
| - | ==== IDR ==== | + | ==== GPIOx_IDR - Port input data register |
| - | + | ||
| - | Input data register | + | |
| \\ {{gpio_reg_idr.svg}} \\ \\ | \\ {{gpio_reg_idr.svg}} \\ \\ | ||
| Line 60: | Line 49: | ||
| * Register is read only \\ \\ | * Register is read only \\ \\ | ||
| - | ===== Legend ===== | ||
| - | |||
| - | \\ {{legende.svg}} \\ \\ | ||