Mi Microcontr troller r Archi hitectur tures and nd Ge General al-Pu Purpose I/O
Chaipo Chaiporn J n Jaik aikae aeo De Department of f Computer Engineering Kasetsart Unive versity
01204322 Embedded System
Revised 2019-12-26
Mi Microcontr troller r Archi hitectur tures and nd Ge - - PowerPoint PPT Presentation
Mi Microcontr troller r Archi hitectur tures and nd Ge General al-Pu Purpose I/O 01204322 Embedded System Chaipo Chaiporn J n Jaik aikae aeo De Department of f Computer Engineering Kasetsart Unive versity Revised 2019-12-26 Ou
Chaipo Chaiporn J n Jaik aikae aeo De Department of f Computer Engineering Kasetsart Unive versity
01204322 Embedded System
Revised 2019-12-26
2
3
SoC MCU CPU
4
and FPU (Floating-Point Unit)
and data buses
intel.com
5
microchip.com ti.com
6
specific components on a single chip
Bluetooth
espressif.com st.com
8
https://www.st.com/en/microcontrollers-microprocessors/stm32-32-bit-arm-cortex-mcus.html ARM Cortex-M0/M0+ ARM Cortex-M3 ARM Cortex-M33 ARM Cortex-M4 ARM Cortex-M7
9
https://community.arm.com/cfs-file/__key/communityserver-blogs-components-weblogfiles/00-00-00-21-42/2021.ISA.png
10
https://www.slideshare.net/element14/study-on-32bit-cortex-m3-powered-mcu-stm32f101
11
PLL Demo
https://th.rs-online.com/web/p/crystal- units/8149507/
12
Image by PublicDomainPictures from Pixabay
13
GPIO Pin
AN4899: STM32 GPIO configuration for hardware settings and low-power consumption
14
service request
ISR (Interrupt Service Routine) is executed
sleep to save energy
(NVIC) allows prioritization of interrupts
https://lastminuteengineers.com/handling
Priority: IRQ2 > IRQ1
ST’s training slides on Moving from 8 to 32 bits hands-on workshop
15
ticks provided as input
the system in a safe state (e.g., reset)
This Photo by Unknown Author is licensed under CC BY-SA-NC
https://visualgdb.com/tutorials/arm/stm32/timers/
16
AN2834: How to get the best ADC accuracy in STM32 microcontrollers
17
http://www.anglia-live.com/angliaCust/ldp/ang_ldpSt14.aspx
18
Image by tomekwalecki from Pixabay
19
TDI TDO
Materials from AN4899 Application Note: STM32 GPIO configuration for hardware settings and low-power consumption
21
22
Output logic: HIGH
Output logic: LOW
Output logic: HIGH Output logic: LOW
23
Schematic Wiring
24
25
HAL_GPIO_WritePin(LED_GPIO_Port, LED_Pin, 1) HAL_GPIO_WritePin(LED_GPIO_Port, LED_Pin, 0)
26
pulled up, or pulled down
immunity
floating pulled-up pulled-down
Schmitt Trigger Demo
27
Schematic Wiring
28
input pin internal pull-up Switch Debouncing Demo
29
30
(either 0 or 1) or SW pin
HAL_GPIO_ReadPin(SW_GPIO_Port, SW_Pin)
31
datasheet
datasheets
32
Taken from ST’s STM32F042x4 datasheet
33
Taken from ST’s STM32F042x4 datasheet
34
Taken from ST’s STM32F042x4 datasheet
35
components into single chips
more specific components into chips/modules
crucial for embedded applications
components for measuring and producing digital logic