Sei sulla pagina 1di 25

Portada

DEGREE IN MECHATRONICS ENGINEERING


FACULTY OF SCIENCE AND TECHNOLOGY

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

1 12/09 No class Course overview


2 16/09 Introduction to microcontrollers Introduction to microcontrollers
3 23/09 Microcontroller architecture (CPU + Memory) Microcontroller architecture (Clocks + JTAG)
4 30/09 Microcontroller programming (ASM + C) Microcontroller programming (ASM + C)
5 07/10 Peripherals: GPIO Peripherals: TIMERS
6 14/10 Peripherals: ADC/DAC Lab 1
7 21/10 Communication buses: UART, SPI, I2C Lab 2
8 28/10 Advanced peripherals: FPU, DMA, LCD, CRC, AES No class
9 04/11 Operating systems Mid-term exam
10 11/11 Lab 3 Lab 4

11 18/11 Lab 5 Final project


12 25/11 Final project Final project
13 02/12 Final project No class
14 19/12 Final project Final project presentation
15 16/12 Final review Final exam

12
Course overview
Schedule

Begin End Monday Tuesday Wednesday Thursday Friday

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

Mid-Term 1 20% 20% Minimum mark: 3


Exam
Final 1 25% 25% Minimum mark: 3
Exam
Laboratory 5 7% 35% Mandatory

Project 1 20% 20% Mandatory


Homework 2 5% 10% Not mandatory

Option B
Item Ammount Weight Total Remarks

Recovery 1 45% 45% Minimum mark: 3


exam
Laboratory 5 7% 35% Mandatory

Project 1 20% 20% Mandatory


Homework 2 5% 10% Not mandatory

14
Course overview
References (main)

15
Course overview
References (complementary)

Embedded Systems with ARM Cortex-M Microcontrollers in


Assembly Language and C
• Dr. Yifeng Zhu, E-Man Press LLC, 3rd Edition
Embedded System Fundamentals with Cortex-M based
Microcontrollers, a Practical Approach
• Dr. Alexander G. Dean, ARM Education Media, 1st Edition
ARM Systems Developer’s Guide
• Sloss, Simes & Wright, Elsevier
Embedded Microcomputer Systems: Real-Time Interfacing
• Dr. Jonathan W. Valvano, Self-published

16
Course overview
References (complementary)

Real-Time Interfacing to ARM Cortex-M Microcontrollers


• Dr. Jonathan Valvano, Self-published
Real-Time Operating Systems for ARM Cortex-M
Microcontrollers
• Dr. Jonathan Valvano, Self-published
Introduction to ARM Cortex-M Microcontrollers
• Dr. Jonathan Valvano, Self-published
Introduction to the MSP432 Microcontroller
• Dr. Jonathan Valvano, Self-published
Real-time interfacing to the MSP432 Microcontroller
• Dr. Jonathan Valvano, Self-published

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)

Code Composer Studio 8.1.0


• IDE based on Eclipse
• Provides compiler, debugger
and tracing facilities
• Support for Windows, Mac
and GNU/Linux
• Support for MSP43x, C2000,
TM4x and other processors
• Can be downloaded from:
http://processors.wiki.ti.com/i
ndex.php/Download_CCS

22
Course overview
Development environment (software)

23
Course overview
Development environment (software)

24
Course overview
Development environment (software)

25

Potrebbero piacerti anche