Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
stm32:peripherals:gpio_output [2016/11/08 08:00] – [Setup input mode] feurstm32:peripherals:gpio_output [2022/12/28 08:17] (current) ruan
Line 10: Line 10:
 \\ {{gpio_output.svg}} \\ \\ \\ {{gpio_output.svg}} \\ \\
  
-===== Programming Instruction =====+===== Programming Instructions =====
  
 ==== Enable Peripheral ==== ==== Enable Peripheral ====
Line 24: Line 24:
   * Configure output type in ''GPIOx->OTYPER''. \\ (in conjunction with ''GPIOx->PUPDR'')   * Configure output type in ''GPIOx->OTYPER''. \\ (in conjunction with ''GPIOx->PUPDR'')
   * Configure output speed in ''GPIOx->OSPEEDR''.   * Configure output speed in ''GPIOx->OSPEEDR''.
-\\ 
- 
-> {{logo_hal.svg?72px |}} **Hardware Abstraction Layer** 
-> [[https://ennis.zhaw.ch/hal/structreg__gpio__t.html | Registry Types]] 
-> [[https://ennis.zhaw.ch/hal/hal__gpio_8h.html | InES GPIO HAL Interface]] 
 \\ \\
  
 ===== Configuration Registers ===== ===== Configuration Registers =====
  
-==== MODER ==== +==== GPIOx_MODER - Port mode register ====
- +
-Mode register+
  
 \\ {{gpio_reg_common.svg}} \\ \\ \\ {{gpio_reg_common.svg}} \\ \\
Line 42: Line 35:
 |Pin x|01|Output mode| |Pin x|01|Output mode|
  
-==== PUPDR ==== +==== GPIOx_PUPDR - Port pull-up / pull-down register ====
- +
-Push-up / pull-down register+
  
 \\ {{gpio_reg_common.svg}} \\ \\ \\ {{gpio_reg_common.svg}} \\ \\
Line 54: Line 45:
 |:::|11|Reserved| |:::|11|Reserved|
  
-==== OTYPER ==== +==== GPIOx_OTYPER - Port output type register ====
- +
-Output type register+
  
 \\ {{gpio_reg_otyper.svg}} \\ \\ \\ {{gpio_reg_otyper.svg}} \\ \\
Line 64: Line 53:
 |:::|1|Output type: open-drain| |:::|1|Output type: open-drain|
  
-==== OSPEEDR ==== +==== GPIOx_OSPEEDR - Port output speed register ====
- +
-Output speed register +
  
 \\ {{gpio_reg_common.svg}} \\ \\ \\ {{gpio_reg_common.svg}} \\ \\
Line 78: Line 65:
 ===== Data Registers ===== ===== Data Registers =====
  
-==== ODR ==== +==== GPIOx_ODR - Port output data register ====
- +
-Output data register+
  
 \\ {{gpio_reg_odr.svg}} \\ \\ \\ {{gpio_reg_odr.svg}} \\ \\
Line 88: Line 73:
 |:::|1|Set pin x| |:::|1|Set pin x|
  
-==== BSRR ==== +==== GPIOx_BSRR Port bit set / reset register ====
- +
-Bit set / reset register+
  
 \\ {{gpio_reg_bsrr.svg}} \\ \\ \\ {{gpio_reg_bsrr.svg}} \\ \\
Line 100: Line 83:
 |:::|1|Clear/reset pin x| |:::|1|Clear/reset pin x|
  
-===== Legend ===== 
- 
-\\ {{legende.svg}} \\ \\ 
  • stm32/peripherals/gpio_output.1478592019.txt.gz
  • Last modified: 2016/11/08 08:00
  • by feur