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_alternate [2018/01/10 15:34] – updated AF mapping table according to DocID024030 Rev2, which is equal to Rev9 kjazstm32:peripherals:gpio_alternate [2022/12/28 08:20] (current) ruan
Line 15: Line 15:
   * [[gpio_input#programming_instructions|digital input]],   * [[gpio_input#programming_instructions|digital input]],
   * [[gpio_output#programming_instructions|digital output]] or   * [[gpio_output#programming_instructions|digital output]] or
-  * [[gpio_analog#programming_instructions|analgo input]].+  * [[gpio_analog#programming_instructions|analog input]].
 \\ \\
- 
-> {{logo_hal.svg?72px |}} **Hardware Abstraction Layer** 
-> [[https://ennis.zhaw.ch/hal/structreg__gpio__t.html | Register 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}} \\ \\
Line 34: Line 26:
 |Pin x|10|Alternate function mode| |Pin x|10|Alternate function mode|
  
-==== AFRL/H ==== +==== GPIOx_AFRL/H Alternate function register (low / high) ====
- +
-Alternate function register (low / high)+
  
 \\ {{gpio_reg_afrl.svg}} \\ \\ \\ {{gpio_reg_afrl.svg}} \\ \\
Line 48: Line 38:
 |:::|0100|AF4: I²C 1..3| |:::|0100|AF4: I²C 1..3|
 |:::|0101|AF5: SPI 1..6| |:::|0101|AF5: SPI 1..6|
-|:::|0110|AF6: SPI 2,3, SAI 1|+|:::|0110|AF6: SPI 2/3, SAI 1|
 |:::|0111|AF7: SPI 3, USART 1..3| |:::|0111|AF7: SPI 3, USART 1..3|
-|:::|1000|AF8: USART 6, UART 4,5,7,8| +|:::|1000|AF8: USART 6, UART 4/5/7/8| 
-|:::|1001|AF9: CAN 1,2, Timer 12..14, LCD|+|:::|1001|AF9: CAN 1/2, Timer 12..14, LCD|
 |:::|1010|AF10: USB OTG HS/FS| |:::|1010|AF10: USB OTG HS/FS|
 |:::|1011|AF11: Ethernet| |:::|1011|AF11: Ethernet|
Line 59: Line 49:
 |:::|1111|AF15: Event Out| |:::|1111|AF15: Event Out|
  
-==== PUPDR ==== +==== GPIOx_PUPDR - GPIO port pull-up / pull-down register ====
- +
-Push-up / pull-down register+
  
 \\ {{gpio_reg_common.svg}} \\ \\ \\ {{gpio_reg_common.svg}} \\ \\
Line 71: Line 59:
 |:::|11|Reserved| |:::|11|Reserved|
  
-==== OTYPER ==== +==== GPIOx_OTYPER - Port output type register ====
- +
-Output type register+
  
 \\ {{gpio_reg_otyper.svg}} \\ \\ \\ {{gpio_reg_otyper.svg}} \\ \\
Line 81: Line 67:
 |:::|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 93: Line 77:
 |:::|11|Speed: 100 MHz| |:::|11|Speed: 100 MHz|
  
-===== Legend ===== 
- 
-\\ {{legende.svg}} \\ \\ 
  • stm32/peripherals/gpio_alternate.1515598482.txt.gz
  • Last modified: 2018/01/10 15:34
  • by kjaz