Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Microcontrollers
Míriam Laliga Cervilla
miriam.laliga@uvic.cat
2019-2020
Pere Tuset-Peiró
pere.tuset@uvic.cat1
Internet of Things
Overview
Applications
Communications
Distributed
computing Data analytics
2
Internet of Things
Applications to Industry
3
Internet of Things
Applications to Industry
4
Internet of Things
Hardware and software
Micro-controller
• ARM Cortex-M3 processor, 32 bits, 32 MHz
• 32 kBytes RAM, 512 kBytes FLASH
• 4x Timers, 2x SPI, 2x UART, 1x I2C, 1x ADC (12-bit)
• Security hardware acceleration: AES-218/256/SHA2
• Active: 13 mA, Sleep: 600 uA, Deep-sleep: 1.3 uA
Radio 1 (TI CC2538)
• IEEE 802.15.4-2006
• 2.4 GHz, 250 kbps, OQPSK+DSSS
• Transmit power: 7 dBm, Sensitivity: -97 dBm
• Transmit current: 24 mA, Receive current: 20 mA
Radio 2 (Atmel AT86RF215)
• IEEE 802.15.4g-2012
• Sub-GHz + 2.4GHz, M-FSK, MR-OFDM, OQPSK
• Transmit power: 14.5 dBm, Sensitivity: -123 dBm
• Transmit current: 62 mA, Receive current: 28 mA
Miscellaneous
• 4 LEDs (RGBY), 2 buttons (User, Reset)
• Sensor board (temperature, humidity, pressure, light)
• Supported by main open source projects
5
Internet of Things
Communications stack
6
Internet of Things
Energy consumption
LED blink Sensors + comunications
16mA @ 1s 40mA @ 10s
Deep sleep
10uA
7
Portada
DEGREE IN MECHATRONICS ENGINEERING
FACULTY OF SCIENCE AND TECHNOLOGY
Microcontrollers
Course overview
8
Course overview
Course objectives
• Study microcontrollers and its
applications, with a practical and
applied vision.
• Provide a global overview of
systems based on
microcontrollers.
• Give an in-depth overview of the
Active: 114 µA/MHz Active: 70 μA/MHz
internal structre of a
microcontroller, including the CPU Deep Sleep: 0.9 µA Deep Sleep: 1.5 μA
and its peripherals. Hibernate: 20 nA Hibernate: 0.39 μA
• Get acquainted with the tools
required to develop applications
for microcontrollers.
• Analyze, design and program
systems based on
microcontrollers.
9
Course overview
Microcontrollers = Chicken and egg problem
Electronics Software
10
Course overview
Methodology
• Assembler / C
Programming • Bare metal / RTOS
Input/Output • GPIO
• ADC/DAC
• UART
Communications • SPI
• I2C
• Timers
Peripherals • DMA
• Other
• Processor
MCU • Memory
11
Course overview
Work plan
Week Date Monday Thursday
12
Course overview
Schedule
15:00 16:00
Class
16:00 17:00
Student attention
17:00 17:30
Student attention
17:30 18:30
Class
18:30 19:30
13
Course overview
Evaluation
Option A
Item Ammount Weight Total Remarks
Option B
Item Ammount Weight Total Remarks
14
Course overview
References (main)
15
Course overview
References (complementary)
16
Course overview
References (complementary)
17
Course overview
Development environment (hardware)
MSP432P4111 Launchpad
• MSP432P401 MCU
• ARM Cortex-M4F, 32-bits, 48 MHz
• 256 kbytes RAM, 2 Mbytes FLASH
• 2 buttons/switch, 2 LEDs
• Segmented LCD
• Precision analog temperature sensor
• XDS110-ET Debug Probe
• EnergyTrace+ Technology
• Backchannel UART through USB
• 40-pin BoosterPack connector
• External connectivity to other
BoosterPack boards
18
Course overview
Development environment (hardware)
19
Course overview
Development environment (hardware)
20
Course overview
Development environment (hardware)
21
Course overview
Development environment (software)
22
Course overview
Development environment (software)
23
Course overview
Development environment (software)
24
Course overview
Development environment (software)
25