Lecture-13-to-15-STM GPIO Port Pin and HAL - GPIO Module
Lecture-13-to-15-STM GPIO Port Pin and HAL - GPIO Module
and
GPIO Software Module
STM32F302R8 block diagram GPIO Ports in STM32F302R8
STM32F302R8 block diagram GPIO Ports in STM32F302R8
• There are 8 ports in STM32F302R8
GPIO Ports in STM32F302R8
• 15 pin ports
• GPIO PORT A – PA[15:0]
• GPIO PORT B – PB[15:0]
• GPIO PORT C – PC[15:0]
• GPIO PORT D – PD[15:0]
• GPIO PORT E – PE[15:0]
• 8 pin ports
• GPIO PORT F – PF[7:0]
• GPIO PORT G – PG[7:0]
• GPIO PORT H – PH[7:0]
Typical STM GPIO port pin block
diagram/schematic
GPIO Port Pin Hardware and GPIO
Software Module
//Blinking LED Example
#include "stm32f3xx_hal.h"
int main(void) {
// 1. Initialize the HAL Library
HAL_Init();