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_analog [2016/11/08 08:02] feurstm32:peripherals:gpio_analog [2022/12/28 08:18] (current) – [MODER] ruan
Line 4: Line 4:
   * The Schmitt trigger input is inactive.   * The Schmitt trigger input is inactive.
   * The pull-up and -down resitors are inactive.   * The pull-up and -down resitors are inactive.
-  * Reading [[gpio#registers|IDR]] gets "0".+  * Reading IDR returns "0".
  
 \\ \\
  
-===== Programming Instruction =====+===== Programming Instructions =====
  
 ==== Enable Peripheral ==== ==== Enable Peripheral ====
Line 19: Line 19:
 Configure the MODE register, for every pin that should act as analog input: Configure the MODE register, for every pin that should act as analog input:
   * Write ''0x10'' to the corresponding fields in ''GPIOx->MODE''.   * Write ''0x10'' to the corresponding fields in ''GPIOx->MODE''.
-\\ 
- 
-> {{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 - Mode register ====
- +
-Mode register+
  
 \\ {{gpio_reg_common.svg}} \\ \\ \\ {{gpio_reg_common.svg}} \\ \\
  
 |< 100% 5em 5em >| |< 100% 5em 5em >|
-|Pin x|10|Analog input mode| +|Pin x|11|Analog input mode|
- +
-===== Data Registers ===== +
- +
-There are no data registers available in alternate function mode. \\+
  • stm32/peripherals/gpio_analog.1478592136.txt.gz
  • Last modified: 2016/11/08 08:02
  • by feur