Microcontrollers: Lecture 2 Low power Modes, Buses, Memory, GPIOs. Michele Magno

Size: px
Start display at page:

Download "Microcontrollers: Lecture 2 Low power Modes, Buses, Memory, GPIOs. Michele Magno"

Transcription

1 Microcontrollers: Lecture 2 Low power Modes, Buses, Memory, GPIOs Michele Magno 1

2 Calendar : Power consumption; Low power States; Buses, Memory, GPIOs Interrupts, Timers, ADC, DAC Exercises Serial Communications Programming STM DMA / Interfacing external devices Sensors / Radios Projects presentation and exercises. 2

3 Outline MCU Architecture Power Consumption Frequency and voltage Low power modes Buses Memory GPIOs 3

4 Example of MCU Architecture Clock Memory ADC - DAC I/O Port CPU BUS DMA TIMERs USARTx 4

5 Performance Metrics How we compare and classify microcontrollers? Performance Metrics NOT easy to define and mostly application depended. Eletrical: Power Consumptions Voltage Supply Noise Immunity Sensitivity Goal: best tradeoff power consumptions Vs performances Computation: Clock Speed MIPS (instructions per sec) Latency Lateness of the response Lag between the begin and the end of the computation Throughput Tasks per second Byte per second 5

6 Power as a Design Constraint Why worry about power? Battery life in portable and mobile platforms Power consumption in desktops, server farms - Cooling costs, packaging costs, reliability, timing - Power density: 30 W/cm2 in Alpha (3x of typical hot plate) Where does power go in CMOS? Dynamic power consumption Power due to shortcircuit current during transition Power due to leakage current P ACV 2 f AVI short f VI leak 6

7 Dynamic Power Consumption C Total capacitance seen by the gate s outputs Function of wire lengths, transistor sizes,... V Supply voltage Trend: has been dropping with each successive fab ACV 2 f A - Activity of gates How often on average do wires switch? f clock frequency Trend: increasing... Reducing Dynamic Power 1) Reducing V has quadratic effect; Limits? 2) Lower C - shrink structures, shorten wires 3) Reduce switching activity - Turn off unused parts or use design techniques to minimize number of transitions 7

8 Short-circuit Power Consumption AVI short f Vin I short C L Vout Finite slope of the input signal causes a direct current path between V DD and GND for a short period of time during switching when both the NMOS and PMOS transistors are conducting Reducing Short-circuit 1) Lower the supply voltage V 2) Slope engineering match the rise/fall time of the input and output signals 8

9 Leakage Power VI leak Sub-threshold current Sub-threshold current grows exponentially with increases in temperature and decreases in Vt 9

10 How can we reduce power consumption? Dynamic power consumption Reduce the rate of charge/discharge of highly loaded nodes Reduce spurious switching (glitches) Reduce switching in idle states (clock gating) Decrease frequency Decrease voltage (and frequency) Static power Consumption Smaller area (!) Reduce device leakage through power gating Reduce device leakage through body biasing Use higher-threshold transistors when possible Power performance tradeoffs! 10

11 Why Ultra-low Power Is so Important Longer battery life Smaller products Simpler power supplies Less EMI simplifies PCB Permanent battery Reduced liability 11

12 STM32L1x - Block Diagram 12 Frequency is plaining an important role For performance and Power Presentation Title

13 STM32F4 - clock features Four oscillators on board HSE (High Speed External Osc) 4..26MHz (can be bypassed by and ext. Oscillator) HSI (High Speed Internal RC): factory trimmed internal RC oscillator 16MHz +/- 1 LSI (Low Speed Internal RC): 32kHz internal RC used for IWDG, optionally RTC and AWU LSE (Low Speed External oscillator): kHz osc (can be bypassed by an external Osc) precise time base with very low power consumption (max 1µA). optionally drives the RTC for Auto Wake-Up (AWU) from STOP/STANDBY mode. Two PLLs Main PLL (PLL) clocked by HSI or HSE used to generate the System clock (up to 168MHz), and 48 MHz clock for USB OTG FS, SDIO and RNG. PLL input clock in the range 1-2 MHz. PLLI2S PLL (PLLI2S) used to generate a clock to achieve HQ audio performance on the I 2 S interface. More security Clock Security System (CSS, enabled by software) to backup clock in case of HSE clock failure (HSI feeds the system clock) linked to Cortex NMI interrupt Spread Spectrum Clock Generation (SSCG, enabled by software) to reduce the spectral density of the electromagnetic interference (EMI) generated by the device

14 CSS STM32L1 an advanced system clock 14 The 5 clocks sources, the PLL and the CSS offers the maximum flexibility and safety for any battery-operated application. HSI 16 MHz High Speed Internal 16MHz. Multiplied by 2 using the PLL to reach the 32MHZ. User trimable with +/-0.5% accuracy MSI Internal 64kHz to 4MHz Multi-Speed Internal clock Very low frequency to address ultra-low-consumption budget application. LSI 38kHz Low Speed Internal clock (also called Security clock). Used for Watchdog security and RTC. HSE External 1-24MHz LSE 32kHz High Speed External clock: external quartz could be 1 to 24MHz. USB 48MHz clk will require only a 16MHz crystal(cheaper), x3 using PLL. You can still reached ultra-low-consumption value below 16MHz (down to 65KHz) In case of HSE failure Clock Security System (CSS) will switch to HSI. Low Speed External clock ( KHz) Mainly used for precise RTC. Could be used to calibrate HSI & MSI. LSE could also be calibrate by external clock (eg: 50Hz of Home power supply)

15 / 2, KHz HSE /2, to 31 OSC32_IN LSE OSc OSC32_OUT ~32KHz LSI RC OSCILLATORS! 16MHz HSI RC 4-26 MHz OSC_OUT HSE Osc OSC_IN VCO / P / Q x N / R IWDGCLK / M RTCCLK TIM5 IC4 HSI STM32F4 - clock scheme CSS SELECTION, APB1 HSE SYSCLK AHB Prescaler Prescaler /1,2 512 /1,2,4,8,16 PRESCALING PLLCLK 168 MHz & max SECURITY PLL48CLK (USB FS, SDIO & RNG) /8 SysTick APB2 Prescaler /1,2,4,8,16 PCLK1 up to 42MHz If (APB1 pres CLOCKS! =1) x1 TIMxCLK Else TIM2..7, x2 If (APB2 pres =1) x1 Else x2 HCLK up to 168MHz PCLK2 up to 84MHz TIMxCLK TIM1,8..11 PLL VCO / P MCO1 /1..5 EXT MCO2 /1..5 HSI HSE PLLCLK LSE SYSCLK HSE PLLCLK PLLI2S x N PLLI2S / Q / R PLLI2SCLK I2SCLK MACTXCLK MACRXCLK MACRMIICLK USB HS ULPI clock Ext. Clock I2S_CKIN Ethernet PHY USB2.0 PHY

16 Clocks 16 Osc/Clocks Speed Cons. Precision 25 C/0-85 C Wakeup HSE ext crystal 1-24 MHz ~500 µa ~0.01% (100ppm) 1ms HSE ext clock 1-32 MHz NA NA HSI 16 MHz 100 µa 1%/2.5% 3.7 µs MSI 65 khz-4.2 MHz µa 0.5%/3% 3.7 µs PLL 2-32 MHz 350 µa NA 100 µs LSI 37 khz 0.4 µa 50% 200 µs LSE ext crystal 32.7 khz typ 0.5 µa ~0.002%(20ppm) ~1s LSE ext clock khz NA NA

17 Clock Scheme 17 System Clock (SYSCLK) sources MSI HSI HSE PLL Configurable dividers provides AHB, APB1/2 and TIM clocks RTC / LCD Clock sources LSE LSI HSE clock divided by 2, 4, 8 or 16 Clock Security System (CSS) in case of HSE clock failure Interrupt linked to Cortex NMI USB Clock (USBCLK) provided from the internal PLL (PLLVCO/2) Clock-out capability on MCO pin

18 ADC Clocks 18 ADC digital interface was designed to operate in a completely independent manner, at its maximum speed using an internal 16 MHz clock source (HSI), whatever the CPU operating frequency (which can range from sub-khz up to 32 MHz). ADC APB2 clock (PCLK2) ADC Peripheral HSI (16 MHz) Digital Interface ADC Prescalers: /1, /2 and /4 ADCCLK Analog Interface

19 Peripheral Clock Gating 19 Clocking the peripheral increases consumption when the Bus clock is running So the clock driving each peripheral can be gated Default mode at reset is gated, minimizing consumption Peripheral can be gated automatically when entering Sleep mode Be aware of non-synchronous consumption though! (GPIO sink/source, etc) Consumption (ex: HD): range 1 range 2 range 3 LP Sleep / Run Condition: 32 MHz 16 MHz 4 MHz 65 khz GPIOA GPIOB CRC DMA FSMC SYSCFG & RI TIM TIM TIM TIM LCD WWDG USB PWR DAC ALL Value µa/mhz

20 20 Power Modes And Voltages Presentation Title

21 A practical example: STM32L1 Platform 21 Ultra-low-power and efficient with 1.65V to 3.6V VDD range Run on MSI CLK: 183 µa/mhz (Active mode) Run full speed (32 MHz): 249 µa/mhz with 2.61 CoreMark/MHz Run low-power (32 khz 137 khz): from 9 µa to 37 µa (down to 4.4 µa in Low-power Sleep) Additional 2 ultra-low-power modes Stop mode: down to 500 na (1.2 μa with RTC) Standby mode: down to 300 na (with POR, PDR, 3 wakeup pins and 20byte of backup RAM retention) Dynamic voltage scaling Maximum f CPU (MHz) µa/ DMIPS² µa/ DMIPS² µa/ DMIPS² 1.2 V 1.5 V 1.8 V V CORE Value given for V DD 25 C Execution from Flash 2/ Run from Flash with int. osc. at min values

22 Dynamic voltage scaling in Run mode 22 Voltage scaling optimizes the product efficiency (Consumption vs Performance) User selects a Range (voltage scaling) according to : External V DD Frequency (performance required) Wait state for Flash 22

23 Limitations depending on the power supply range 23 Operating power supply range ADC operation USB VCORE Maximum CPU frequency (fcpu max) V DD = 1.65 to 1.8V Not functional Not functional Range 2 or Range 3 16 MHz (1ws) 8 MHz (0ws) V DD = 1.8 to 2.0V Conversion time up to 500 Ksps Not functional Range 2 or Range 3 16 MHz (1ws) 8 MHz (0ws) V DD = 2.0 to 2.4V Conversion time up to 500 Ksps Functional * Range 1, Range 2 or Range 3 32 MHz (1ws) 16 MHz (0ws) V DD = 2.4 to 3.6V Conversion time up to 1 Msps Functional * Range 1, Range 2 or Range 3 32 MHz (1ws) 16 MHz (0ws) * requires range 1 + USB transceiver requires VDD>=3.V to be compliant 23

24 Limitations depending on V CORE 24 V CORE Maximum CPU frequency (Fcpu max) Programming Flash/EEPROM HSI HSE Max Maximum PLL frequency after Multiply ADC Clock max Range MHz to 4.2 MHz (1ws) 32 khz to 2.1 MHz (0ws) No Not for SYSCLK 4 MHz 24 MHz 4 MHz Range 2 8 MHz to 16 MHz (1ws) 32 khz to 8 MHz (0ws) Yes Yes 16 MHz 48 MHz 16 MHz Range 1 16 MHz to 32 MHz (1ws) 32 khz to 16 MHz (0ws) Yes Yes 32 MHz (clock) 24 MHz (crystal) 96 MHz 16 MHz

25 25 System Modes Presentation Title

26 System modes 26 RUN SLEEP:CPU stopped LPRUN: power regulator in LP mode LPSLEEP: power regulator in LP mode +CPU stopped STOP: power regulator in LP mode + all clock stopped STANDBY: power regulator stopped

27 Low-power modes transitions 35 LPSleep Sleep LPRun Shutdown Stop1 Run Standby Stop2 Reset

28 Typ current V DD Range STM32L1x Power profile 128 Kbytes Flash die µA/MHz 105 C 25 C 249µA/MHz 1 Full speed (32MHz) 12µA Wake up time Stop to Run: 8μs Standby to run: 50μs 183µA/MHz 1 MSI clock (4.2MHz) 9 µa 6.2µA 4.4 µa 2.7μA 1.2µA 2 500nA 3 1.4μA 900nA 2 300nA 3 Dynamic Run From Flash Low-Power 32KHz Low-Power Sleep KHz Stop w/ RTC or w/o RTC Standby 1/ Dhrystone power consumption value executed from Flash with V DD =3V 2/ Stop and standby with RTC given with V DD =1.8V 3/ Stop and standby without RTC given with V DD =3V

29 Typ current V DD Range STM32L1x Power profile 256 Kbytes Flash die µA/MHz 105 C 25 C 218µA/MHz 1 Full speed (32MHz) 12µA Wake up time Stop to Run: 8μs Standby to run: 50μs 162µA/MHz 1 MSI clock (4.2MHz) 11 µa 6.2µA 4.4 µa 2.7μA 1.5µA 2 630nA 3 1.4μA 1.3µA 2 350nA 3 Dynamic Run From Flash Low-Power 32KHz Low-Power Sleep KHz Stop w/ RTC or w/o RTC Standby 1/ Dhrystone power consumption value executed from Flash with V DD =3V 2/ Stop and standby with RTC given with V DD =1.8V 3/ Stop and standby without RTC given with V DD =3V

30 Interconnect Controller Down to LP Sleep mode 30 The IC provides autonomous communication between peripherals (independent from CPU and DMA). It offers fast and predictable latency. Available in Sleep or LP-Sleep mode (Wakeup time from sleep to run is 0.36μs!!) Z Z Z ARM Cortex-M3 Interconnect Trig Controller CH1 CH5 IC producer TIMERS (Trigger Out) TIMERS (CC event) RTC COMPARATORS OSCILLATORS IC Consumer TIMERS (Trigger In) DAC ADC TIMERS (Input Capture) TIMERS (OCREF clear)

31 STM32L1 pushing its limits Datasheet update(1/2) 31 Full 1.8V 3.6V V DD range 32 MHz Aggressive consumption in Stop mode (25 3.6V) with: Stop Mode: 0.57 μa Stop Mode + RTC: V Stop Mode + RTC: V Aggressive consumption in Standby mode (25 3.6V) with: Standby Mode: 0.3 μa Standby Mode + RTC: V Standby Mode + RTC: V Backup register retention (80Bytes) I/O leakage: 10nA

32 Low Power Modes: Sleep Mode 32 SLEEP Mode: Core stopped, peripherals kept running Entered from by executing special instructions WFI (Wait For Interrupt) Exit: Any peripheral interrupt WFE (Wait For Event) An event can be an interrupt enabled in the peripheral control register but NOT in the NVIC OR an EXTI line configured in event mode Exit: as soon as the event occurs No time wasted in interrupt entry/exit Two mechanisms to enter this mode Sleep Now: Enter SLEEP mode as soon as WFI or WFE is executed Sleep on Exit: Enter as soon as it exits the lowest priority ISR The stack is not popped before entering the sleep, it will not be pushed when the next interrupt occurs, saving running time

33 Low Power Modes: LPRUN 33 LP RUN Mode: Core running, peripherals kept running Entered by System Clock is set to multispeed internal (MSI) RC oscillator (131kHz max) Execution from SRAM or Flash memory Internal regulator is in low power mode to minimize the regulator's operating current FLASH can be in Power Down mode (when executing from RAM) VREFINT can be OFF The system clock frequency and enabled peripherals are both limited. Overall consumption of digital IP limited to 200µA When flash is in Power Down Mode, interrupts must be mapped to RAM (Vector Table Offset Register)

34 Low Power Modes: LPRUN 34 The current limitation in LPRun applies to the domain powered by the regulator The consumption of VDDA and IO supply is not specifically limited in this mode

35 Low Power Modes: LP Sleep (1/2) 35 LP sleep Mode: Core stopped, peripherals kept running Entered by executing special instructions from LPRUN mode WFI (Wait For Interrupt) WFE (Wait For Event) Internal regulator is in low power mode to minimize current draw FLASH can be in Power Down mode V REFINT can be OFF

36 Low Power Modes: STOP 36 STOP Mode: all peripheral clocks, PLL, MSI, HSI and HSE are disabled, SRAM and register contents are preserved. If the RTC, LCD and IWDG are running they are not stopped Voltage Regulator can be put in Low Power mode Wake-up sources: WFI was used for entry: any EXTI Line configured in Interrupt mode WFE was used for entry: any EXTI Line configured in event mode EXTI sources can be: one of the 16 GPIO lines, PVD, RTC sources, Comparators, USB wakeup After resuming from STOP, the clock config returns to its reset state (MSI used as system clock) Wake-up time from Stop mode on MSI RC at 4MHz STM32L15x typ Regulator in run or in low power mode mode (V REFINT ON) 7.9 µs Regulator in run or in low power mode mode (V REFINT OFF with Fast Wakeup) 7.9µs

37 Definition of Wake Up Time from STOP mode 37 Wake Up Time from STOP mode is defined here as from IT event to the interrupt vector fetch Wake Up time contributors: ANALOG delay : MSI start up : 3.5us REGULATOR switch from LP to MR mode : 3.5us (voltage range has an impact on the startup of the regulator / temperature also has an impact 6.5µs MAX) EEPROM start up : 3us MAX (after the ready of the regulator) DIGITAL delay System synchronization: 10 clock cycles Interrupt vector fetch / context restoring : 20 clock cycles Wake Up clock : Wakeup sequence is done on MSI and its frequency is the one selected before entering STOP mode. (max wakeup freq is 4.2MHz) Wake Up time in datasheet : 8.2µs typ / 9.3µs max (range 1 and range 2)

38 WakeUp from STOP Timing Diagram 38 WakeUp Event Analog WakeUp WakeUp Time MSI PD MSI READY MSI Clock MSI StartUp (3.5us MAX) 20 cycles MSI 4MHZ REG PD READY LP mode REG StartUp (3.5us MAX) MR mode REGULATOR EE PD EE READY IddQ mode EE wakeup (3us MAX) Operating mode EEPROM CPU CLK 6.5µs 2µs Interrupt vector fetch 1 st ISR word fetch start Analog delay 3 cycles 7 cycles 20 cycles

39 Low Power Modes: Standby 39 STANDBY Mode: V CORE domain is powered off and V REFINT can be OFF. SRAM and register contents are lost except registers in the STANDBY circuitry RTC and IWDG are kept running in STANDBY (if enabled) In STANDBY mode all IO pins are high impedance except Reset pad (still available) RTC_AF1 pin, if configured WKUP1, WKUP2 and WKUP3 pins if enabled Wake-up sources: WKUP1, WKUP2, WKUP3 pins rising edge RTC alarm A, RTC alarm B, RTC Wakeup, Tamper event, TimeStamp External reset in NRST pin IWDG reset After wake-up from STANDBY mode, program execution will restart in the same way as after a RESET. Wake-up time from STANDBY mode on MSI RC at 2MHz STM32L15x typ STANDBY with V REFINT ON 57.2 µs STANDBY with V REFINT OFF 2.4 ms

40 Standby Circuitry 40 Standby Circuitry contains Low power calendar RTC (Alarm, periodic wakeup) 80 Bytes Data RTC registers Separate 32KHz Osc (LSE) for RTC RCC CSR register: Clock + LSE config Standby Circuitry -> Reset only by RTC domain RESET Wakeup Pin 1 RCC CSR reg 32kHz OSC (LSE) Wakeup sources 3 wakeup pins (1 for MD) RTC Alarm A or AlarmB Wakeup Pin 3 RTC_AF1 Wakeup Pin 2 Wakeup Pin 2 Wakeup Logic LSI IWDG RTC Bytes Data RTC Wakeup Timer RTC Tamper / Timestamps Events RTC Alternate functions Tamper detection: resets all RTC user backup registers RTC Alarm Outputs: Alarms A/B, Wakeup on AF1 pin RTC Clock calibration Output

41 Typ current V DD Range CPU ON STM32L1x Power profile 256 Kbytes Flash die Peripherals activated RAM & context preserved Backup registers preserved µA/MHz 105 C 25 C 218µA/MHz 1 Full speed (32MHz) 12µA Wake up time Stop to Run: 8μs Standby to run: 50μs 162µA/MHz 1 MSI clock (4.2MHz) 11 µa 6.2µA 4.4 µa 2.7μA 1.5µA 2 630nA 3 1.4μA 1.3µA 2 350nA 3 Dynamic Run From Flash Low-Power 32KHz Low-Power Sleep KHz Stop w/ RTC or w/o RTC Standby

42 Overview RUN (Range1) at 80 MHz 120 µa / MHz** 3 RUN (Range2) at 26 MHz 100 µa / MHz** Wake-up time LPRUN at 2 MHz 112 µa / MHz** 6 cycles 6 cycles 4 µs 5 µs SLEEP at 26 MHz LPSLEEP at 2 MHz STOP 1 (full retention) STOP 2 (full retention) 35 µa / MHz 48 µa / MHz 6.6 µa / 6.9 µa* 1.1 µa / 1.4 µa* Application benefits High performance CoreMark score = 273 Outstanding power efficiency 14 µs STANDBY + 32 KB RAM 350 na / 650 na* ULPBbench score = µs STANDBY 115 na / 415 na* 256 µs SHUTDOWN 30 na / 330 na* VDD = C VBAT 4 na / 300 na* * : with RTC ** : from SRAM1

43 Low Power system design challenges

44 Introduction 45 The relation and balance between the performance and execution time needs to be carefully analyzed to find a best compromise which leads to lowest energy consumption. P T = Time of Period P = Activation Time Duty Cycling = (Activity Period/Time of Period) * 100% T

45 MCU Shootout 46 MCU A MCU B Active mode 2 ma 2.1 ma (+5%) Low power mode 1 ua 0.6 ua (-40%) Current or energy? And what about power profile? MCU A MCU B Energy (10% active in 1s interval) 10% Duty Cycling Energy (0.1% active in 1s interval) 0.1% Duty Cycling uj uj (+4,8%) 3 uj 2.7 uj (-10%)

46 Power versus Energy 47 What if the MCUs have different architectures and CoreMark scores? The time spent in active mode will not be equal. MCU A(16-bit) MCU B(32-bit) Active mode time 10 % 7 % Energy (in 1s) uj uj (-26.6 %) Less time spent in active lower total energy consumed. We can do so by using optimization techniques.

47 Use the compiler optimizations 48 optimization size of test code energy consumed in 1s max speed 5456 B 40.6 uj min size 3944 B 77.6 uj (+92%!) To reduce time spent in Active mode we have to select Speed Optimization compiler target

48 49 BUSES AND MEMORY Presentation Title

49 Processor vs. MCU

50 Harvard architecture Separate Instruction & Data buses enable parallel fetch & store Advanced 3-Stage Pipeline Includes Branch Forwarding & Speculation Additional Write-Back via Bus Matrix Pipeline

51 STM32 Value line 64K-128KBytes System Diagram ARM Lite Hi-Speed Bus Matrix / Arbiter (max 24MHz) (max 24MHz) Flash I/F Core and operating conditions - ARM Cortex -M DMIPS/MHz up to 24 MHz V to 3.6 V range to +105 C Rich connectivity - 8 communications peripherals Advanced analog - 12-bit1.2 µs conversion time ADC - Dual channel 12-bit DAC Enhanced control - 16-bit motor control timer - 6x 16-bit PWM timers CORTEX TM -M3 CPU 24 MHz JTAG/SW Debug Nested vect IT Ctrl 1 x Systick Timer DMA 7 Channels 1 x 16-bit PWM Synchronized AC Timer Up to 16 Ext. ITs 37/51/80 I/Os 1 x SPI 1 x USART/LIN Smartcard/IrDa Modem Control Bridge ARM Peripheral Bus Bridge 64kB - 128kB Flash Memory 8kB SRAM 20B Backup Data Clock Control ARM Peripheral Bus (max 24MHz) 6 x 16-bit Timer 2 x Watchdog (independent & window) 2-channel 12-bit DAC 1 x 12-bit ADC up to16 channels Temperature Sensor Power Supply Reg 1.8V POR/PDR/PVD XTAL oscillators 32KHz + 4~25MHz Int. RC oscillators 40KHz + 8MHz PLL RTC / AWU 1 x CEC 2 x USART/LIN Smartcard / IrDa Modem Control 1 x SPI 2 x I 2 C

52 On-Chip Buses

53 Why have so many busses? 54 Many designs considerations Master vs Slave Internal vs External Bridged vs Flat Memory vs Peripheral Synchronous vs Asynchronous High-speed vs low-speed Serial vs Parallel Single master vs multi master Single layer vs multi layer Multiplexed A/D vs demultiplexed A/D

54 Advanced Microcontroller Bus Architecture (AMBA) - Advanced High-performance Bus (AHB) Advanced Peripheral Bus (APB) AHB High performance Pipelined operation Burst transfers Multiple bus masters Split transactions APB Low power Latched address/control Simple interface Suitable of many peripherals

55 Example: Cortex M3 Core IF Multiply possibilities of bus accesses to SRAM, Flash, Peripherals, DMA BusMatrix added to Harvard architecture allows parallel access Efficient DMA and Rapid data flow Direct path to SRAM through arbiter, guarantees alternating access Harvard architecture + BusMatrix allows Flash execution in parallel with DMA transfer Increase Peripherals Speed for better performance Dual Advanced Peripheral buses (APB) architecture w/ High Speed APB (APB2) up to 72MHz and Low Speed APB (APB1) up to 36MHz Allows to optimize use of peripherals (18MHz SPI, 4.5Mbps USART, 72MHz PWM Timer, 18MHz toggling I/Os)

56 Details: STM32F100RBT6B

57 Memory RAM (usually SRAM) Volatile memory for runtime execution Fastest access, low amount (<100Kb) Allocates variables Flash ROM On-chip non-volatile memory used for code or data storage 8-512Kb, about 10k write cycles Bootloader: protected section to upload code in flash (Ferroelectric Random Access Memory) FRAM Forefront of next generation non-volatile memory technology On-chip non-volatile memory faster (50ns) and lower power (250x less) than Flash. External memory Connected via serial (I2C, SPI) or dedicated (FSMC) interface 58

58 Memory - Address Space On-Chip FLASH/ROM and RAM memory Everything is mapped into a single, contiguous address space: All memory, including RAM, Flash/ROM, information memory, special function registers (SFRs), and peripheral registers. Flash / ROM RAM Peripherals Memory Address Description Access End: 0FFFFh Interrupt Vector Table Word/Byte Start: 0FFE0h End: 0FFDFh Flash/ROM Word/Byte 0F800h Start *: 01100h End *: 010FFh 0107Fh Information Memory Start: 01000h (Flash devices only) End: 0FFFh Boot Memory Start: 0C00h (Flash devices only) End *: Start: End: Start: End: Start: End: Start: 09FFh 027Fh 0200h 01FFh 0100h 00FFh 0010h 000Fh 0000h RAM 16-bit Peripheral modules 8-bit Peripheral modules Special Function Registers Word/Byte Word/Byte Word/Byte Word Byte Byte 59 59

59 Memory map Statically defined memory map (faster addr decoding) 4GB of address psace

60 General Purpose I/O (GPIO)

61 General Purpose I/O Each MCU pin can be used as a General Purpose digital input or output. Input: read binary value of specified pin, used for simple communication with external world (e.g. button state) Can be configured to trigger interrupt Output: set binary value of specified pin (e.g. LED, simple signal trigger)

62 Each pin is independent GPIO - Inside Inputs/Outputs Ports (out) and Pins (in) are different!!! Output section Input section

63 APB2 GPIO in STM32 The STM32 is well served with general purpose IO pins, having up to 81 bidirectional IO pins with interrupt capability. The IO pins are arranged as five ports each having 16 IO lines. PA [15:0] GPIO port A PB [15:0] PC [15:0] PD [15:0] PE [15:0] GPIO port B GPIO port C GPIO port D GPIO port E

64 GPIO: Block Diagram

65 Avoid floating inputs!!! GPIO General Purpose I/O Use a pull-up/down resistor, GND, or internal programmable logic To Input Logic VCC Button 5.6K Button produces either Vcc or Floating input. Adding a pull-down resistor fixes it. VCC Button 5.6K Some ports have internal programmable resistors Port Pin

66 Let s assume we two possible microcontrollers as in table. A battery of 100mAh a 3.7V. Evaluate the minimal Duty Cycling that maximize the number of tasks executed and achieve 2 weeks for each Microcontroller assuming the minimal time for the active task is 1s at 16MHz and 2s at 8MHz. Active mode Low power mode Exercise MCU A (1.8V to 3V) 2 ma (8Mhz) MCU B (1.5V to 3V) 3 ma (16Mhz) 0.6 ua 1 ua 67 E task = P * time -> MCU-A -> P = 2mA*1.8V ; E task = 3.6mW * 2s = 7.2mJ MCU B-> P = 3mA * 1.5V; E task = 4.5mW * 1s = 4.5mJ E Battery = 100mAh * 3600s * 3.7V-> 1320J Presentation Title

67 Exercise 68 Theoretical Max Numbers tasks (no dissipation in sleep) : E battery / E task MCU A -> MCU B -> Lifetime in Continuous mode[h]: Battery [mah] / Current Consumption [h] MCU A -> 50 h MCU B -> 33 h (But double number of Tasks) Duty Cycling. D = P/T *100. Example MCU A => P = 2s, T = 10s -> D= 20%. Example MCU B=> P = 1s T= 10s -> D= 10% E Sleep = P LowPowerMode * Sleep time [T-Active Time] -> MCU-A -> P = mA*1.8V = 3.6µW * 8s = 8.6µJ MCU B-> P = 0.001mA * 1.5V = 1.5µW * 9s = 13.5µJ Presentation Title

68 Exercise I 69 Evaluate the life time using the following duty cycling MCU B: T= 1000s; P = 1s; D=? MCU A: T = 2000s; P = 2s; D =? Which one last more? How Long? E tot (T) = E sleep (T- P) + E task (T) MCU_B => E task = 4.5mJ ; E sleep = 1.5µW * 999s= 1.498mJ; E tot = 5.99mJ MCU_A => E task = 7.2mJ ; E sleep = 3.6µW * 1998s = 7.19mJ; E tot = 14.49mJ LifeTime (s) = (E battery / E tot ) * T MCU_B => 7 Years! MCU_A => 6 years! Presentation Title

Interconnects, Memory, GPIO

Interconnects, Memory, GPIO Interconnects, Memory, GPIO Dr. Francesco Conti f.conti@unibo.it Slide contributions adapted from STMicroelectronics and from Dr. Michele Magno, others Processor vs. MCU Pipeline Harvard architecture Separate

More information

Universität Dortmund. MCUs Low-Power Features

Universität Dortmund. MCUs Low-Power Features MCUs Low-Power Features Why Low Power Is so Important for MCUs? Longer battery life Smaller products Simpler power supplies Less EMI simplifies PCB Permanent battery Reduced liability Power as a Design

More information

STM32L4 System operating modes

STM32L4 System operating modes STM32L4 System operating modes Typical application profile 2 Tperiod Tperiod I DD Process IRQ ACTIVE IRQ ACTIVE OFF STARTUP INITIALIZATION TASKS Tasks TASKS INACTIVE INACTIVE INACTIVE Application phases:

More information

Hello, and welcome to this presentation of the STM32L4 power controller. The STM32L4 s power management functions and all power modes will also be

Hello, and welcome to this presentation of the STM32L4 power controller. The STM32L4 s power management functions and all power modes will also be Hello, and welcome to this presentation of the STM32L4 power controller. The STM32L4 s power management functions and all power modes will also be covered in this presentation. 1 Please note that this

More information

Hello, and welcome to this presentation of the STM32 Reset and Clock Controller.

Hello, and welcome to this presentation of the STM32 Reset and Clock Controller. Hello, and welcome to this presentation of the STM32 Reset and Clock Controller. 1 The RCC controller integrated inside STM32 products manages system and peripheral clocks. STM32F7 devices embed two internal

More information

STM bit ARM Cortex MCUs STM32F030 Series

STM bit ARM Cortex MCUs STM32F030 Series STM32 32-bit ARM Cortex MCUs STM32F030 Series ST has licensed Cortex-M processors 2 Forget traditional 8/16/32-bit classifications and get Seamless architecture across all applications Every product optimized

More information

ARM Cortex core microcontrollers 12 th Energy efficient operation

ARM Cortex core microcontrollers 12 th Energy efficient operation ARM Cortex core microcontrollers 12 th Energy efficient operation Balázs Scherer Budapest University of Technology and Economics Department of Measurement and Information Systems BME-MIT 2017 The importance

More information

STM32F4 Introduction F1/F2/F4 Comparison Features Highlight

STM32F4 Introduction F1/F2/F4 Comparison Features Highlight STM32F4 Introduction F1/F2/F4 Comparison Features Highlight February 20 th 2012 2 Content Product family overview F1/F2/F4 features comparisons Features highlight Boot & Remap feature RTC calibration &

More information

STM8L and STM32 L1 series. Ultra-low-power platform

STM8L and STM32 L1 series. Ultra-low-power platform STM8L and STM32 L1 series Ultra-low-power platform 8-bit and 32-bit MCU families 2 Flash (bytes) 2 M 1 M 128 K 16 K 8-bit Core STM8S Mainstream STM8A F and STM8AL Automotive STM8L Ultra-low-power 32-bit

More information

AVR XMEGA Product Line Introduction AVR XMEGA TM. Product Introduction.

AVR XMEGA Product Line Introduction AVR XMEGA TM. Product Introduction. AVR XMEGA TM Product Introduction 32-bit AVR UC3 AVR Flash Microcontrollers The highest performance AVR in the world 8/16-bit AVR XMEGA Peripheral Performance 8-bit megaavr The world s most successful

More information

Reset and clock control (RCC)

Reset and clock control (RCC) Reset and clock control (RCC) RESET Sources 86 System RESET Resets all registers except some RCC registers, PWR registers and Backup domain Sources Low level on the NRST pin (External Reset) WWDG event

More information

STM32 F-2 series High-performance Cortex-M3 MCUs

STM32 F-2 series High-performance Cortex-M3 MCUs STM32 F-2 series High-performance Cortex-M3 MCUs STMicroelectronics 32 bit microcontrollers, 120 MHz/150 DMIPS with ART Accelerator TM and advanced peripherals www.st.com/stm32 STM32 F-2 series The STM32

More information

Introducing STM32 L0x Series. April

Introducing STM32 L0x Series. April Introducing STM32 L0x Series April 2014 www.emcu.it 20- to 80pins 20- to 100pins 48- to 144pins Memory size (Bytes) ST s Ultra-low-power Continuum (1/2) 2 512K 256K 192K STM32L0 Cortex TM -M0+ STM32L1

More information

AN4749 Application note

AN4749 Application note Application note Managing low-power consumption on STM32F7 Series microcontrollers Introduction The STM32F7 Series microcontrollers embed a smart architecture taking advantage of the ST s ART- accelerator

More information

to ARM Cortex TM -M3 October 17, 2007 MCD Application Team

to ARM Cortex TM -M3 October 17, 2007 MCD Application Team Introduction to ARM Cortex TM -M3 October 17, 2007 MCD Application Team CONTENTS Introduction to the Cortex-M3 Architecture Overview Comparison to ARM7 Bit Banding and Unaligned data access Interrupt and

More information

STM32F4 Labs. T.O.M.A.S Technically Oriented Microcontroller Application Services V1.07

STM32F4 Labs. T.O.M.A.S Technically Oriented Microcontroller Application Services V1.07 STM32F4 Labs T.O.M.A.S Technically Oriented Microcontroller Application Services V1.07 CONTENT 1/3 2 1. GPIO lab 2. EXTI lab 3. SLEEP lab 4. STOP lab 5. STANDBY lab 6. DMA Poll lab 7. DMA Interrupt lab

More information

AVR XMEGA TM. A New Reference for 8/16-bit Microcontrollers. Ingar Fredriksen AVR Product Marketing Director

AVR XMEGA TM. A New Reference for 8/16-bit Microcontrollers. Ingar Fredriksen AVR Product Marketing Director AVR XMEGA TM A New Reference for 8/16-bit Microcontrollers Ingar Fredriksen AVR Product Marketing Director Kristian Saether AVR Product Marketing Manager Atmel AVR Success Through Innovation First Flash

More information

STM32G0 MCU Series Efficiency at its Best

STM32G0 MCU Series Efficiency at its Best STM32G0 MCU Series Efficiency at its Best Key Messages of STM32G0 Series 2 2 3 Efficient Arm Cortex -M0+ at 64 MHz Compact cost: maximum I/Os count Best RAM/Flash Ratio Smallest possible package down to

More information

AK-STM32-ETH Development Board

AK-STM32-ETH Development Board AK-STM32-ETH Development Board Reference manual Copyright 2011 Artekit Italy All rights reserved Contents About this document... 3 Revision history... 3 Contact information... 3 Life support policy...

More information

Introduction to Microcontrollers

Introduction to Microcontrollers Introduction to Microcontrollers Michele Magno IIS Group - ETH Zurich michele.magno@iis.ee.ethz.ch 1 Outline MCU Architecture CPU Power Consumption MCU Peripherals ARM Architecture ARM Coretx ARM Instruction

More information

AN2585 Application note

AN2585 Application note AN2585 Application note Application examples of the STM32F101xx and STM32F103xx core and system peripherals Introduction The STM32F10xxx is built around the latest Cortex -M3 core from ARM designed for

More information

STM32F7 series ARM Cortex -M7 powered Releasing your creativity

STM32F7 series ARM Cortex -M7 powered Releasing your creativity STM32F7 series ARM Cortex -M7 powered Releasing your creativity STM32 high performance Very high performance 32-bit MCU with DSP and FPU The STM32F7 with its ARM Cortex -M7 core is the smartest MCU and

More information

TEVATRON TECHNOLOGIES PVT. LTD Embedded! Robotics! IoT! VLSI Design! Projects! Technical Consultancy! Education! STEM! Software!

TEVATRON TECHNOLOGIES PVT. LTD Embedded! Robotics! IoT! VLSI Design! Projects! Technical Consultancy! Education! STEM! Software! Summer Training 2016 Advance Embedded Systems Fast track of AVR and detailed working on STM32 ARM Processor with RTOS- Real Time Operating Systems Covering 1. Hands on Topics and Sessions Covered in Summer

More information

Designing with STM32F2x & STM32F4

Designing with STM32F2x & STM32F4 Designing with STM32F2x & STM32F4 Course Description Designing with STM32F2x & STM32F4 is a 3 days ST official course. The course provides all necessary theoretical and practical know-how for start developing

More information

STM32 F0 Value Line. Entry-level MCUs

STM32 F0 Value Line. Entry-level MCUs STM32 F0 Value Line Entry-level MCUs Key Messages 2 STM32 F0: Is the Cortex -M0 core generated with ST s STM32 DNA, for cost sensitive designs. The STM32 F0 is benefiting of STM32 DNA, providing the essential

More information

AN4809 Application note

AN4809 Application note Application note Migrating between STM32L0 Series and STM32L4 Series / STM32L4+ Series microcontrollers Introduction For the designers of STM32 microcontroller applications, being able to easily replace

More information

STM32 Cortex-M3 STM32F STM32L STM32W

STM32 Cortex-M3 STM32F STM32L STM32W STM32 Cortex-M3 STM32F STM32L STM32W 01 01 STM32 Cortex-M3 introduction to family 1/2 STM32F combine high performance with first-class peripherals and lowpower, low-voltage operation. They offer the maximum

More information

STM32 F2 series High performance Cortex M3 MCUs

STM32 F2 series High performance Cortex M3 MCUs STM32 F2 series High performance Cortex M3 MCUs STMicroelectronics 32 bit microcontrollers, 120 MHz/150 DMIPS with ART Accelerator TM and advanced peripherals www.st.com/stm32 STM32 F2 series The STM32

More information

STM32SnippetsL0. STM32L0xx Snippets firmware package. Features. Description

STM32SnippetsL0. STM32L0xx Snippets firmware package. Features. Description STM32L0xx Snippets firmware package Data brief Features Complete free C source code firmware examples for STM32L0xx microcontrollers Basic examples using direct-access registers as defined in CMSIS Cortex

More information

Hello, and welcome to this presentation of the STM32 Real- Time Clock. It covers the main features of this peripheral, which is used to provide a

Hello, and welcome to this presentation of the STM32 Real- Time Clock. It covers the main features of this peripheral, which is used to provide a Hello, and welcome to this presentation of the STM32 Real- Time Clock. It covers the main features of this peripheral, which is used to provide a very accurate time base. 1 The RTC peripheral features

More information

STM32F7 series ARM Cortex -M7 powered Releasing your creativity

STM32F7 series ARM Cortex -M7 powered Releasing your creativity STM32F7 series ARM Cortex -M7 powered Releasing your creativity STM32 high performance Very high performance 32-bit MCU with DSP and FPU The STM32F7 with its ARM Cortex -M7 core is the smartest MCU and

More information

STM32L052x6 STM32L052x8

STM32L052x6 STM32L052x8 Ultra-low-power 32-bit MCU ARM-based Cortex-M0+, up to 64 KB Flash, 8 KB SRAM, 2 KB EEPROM, USB, ADC Data brief Features Ultra-low-power platform 1.65 V to 3.6 V power supply -40 to 105/125 C temperature

More information

AN4311 Application note

AN4311 Application note Application note Assessing STM32L1 Series current consumption Introduction The STMicroelectronics ARM Cortex -M3 based STM32L1 series uses ST s proprietary ultra-low-leakage process technology with an

More information

STM32G070CB/KB/RB. Arm Cortex -M0+ 32-bit MCU, 128 KB Flash, 36 KB RAM, 4x USART, timers, ADC, comm. I/Fs, V. Features

STM32G070CB/KB/RB. Arm Cortex -M0+ 32-bit MCU, 128 KB Flash, 36 KB RAM, 4x USART, timers, ADC, comm. I/Fs, V. Features STM32G070CB/KB/RB Arm Cortex -M0+ 32-bit MCU, 128 KB Flash, 36 KB RAM, 4x USART, timers, ADC, comm. I/Fs, 2.0-3.6V Datasheet - production data Features Core: Arm 32-bit Cortex -M0+ CPU, frequency up to

More information

LPC4370FET256. Features and benefits

LPC4370FET256. Features and benefits Page 1 of 5 LPC4370FET256 32-bit ARM Cortex-M4 + 2 x M0 MCU; 282 kb SRAM; Ethernet;two HS USBs; 80 Msps 12-bit ADC; configurable peripherals The LPC4370 are ARM Cortex-M4 based microcontrollers for embedded

More information

Universität Dortmund. ARM Cortex-M3 Buses

Universität Dortmund. ARM Cortex-M3 Buses ARM Cortex-M3 Buses Modulo 2 No change in class organization Thursday aftenoon (17-19) Lectures (Rossi) Aprile Giugno (Mod 2) room 1.3 Friday afternoon (14-18) (Benatti): LAB2 Content natural prosecution

More information

STM8L151x6/8 STM8L152x6/8

STM8L151x6/8 STM8L152x6/8 8-bit ultra-low-power MCU, up to 64 KB Flash, 2 KB data EEPROM, RTC, LCD, timers, USARTs, I2C, SPIs, ADC, DAC, comparators Features Datasheet - production data Operating conditions Operating power supply:

More information

AN2606 Application note

AN2606 Application note Application note STM32 microcontroller system memory boot mode Introduction The bootloader is stored in the internal boot ROM memory (system memory) of STM32 devices. It is programmed by ST during production.

More information

Getting Started With the Stellaris EK-LM4F120XL LaunchPad Workshop. Version 1.05

Getting Started With the Stellaris EK-LM4F120XL LaunchPad Workshop. Version 1.05 Getting Started With the Stellaris EK-LM4F120XL LaunchPad Workshop Version 1.05 Agenda Introduction to ARM Cortex Cortex -M4F M4F and Peripherals Code Composer Studio Introduction to StellarisWare, I iti

More information

Ultra Low Power Microcontroller - Design Criteria - June 2017

Ultra Low Power Microcontroller - Design Criteria - June 2017 Ultra Low Power Microcontroller - Design Criteria - June 2017 Agenda 1. Low power technology features 2. Intelligent Clock Generator 3. Short wake-up times 4. Intelligent memory access 5. Use case scenario

More information

STM32L4+ MCU series Excellence in ultra-low-power with more performance

STM32L4+ MCU series Excellence in ultra-low-power with more performance STM32L4+ MCU series Excellence in ultra-low-power with more performance Key messages of STM32 L4+ series 2 + More performance and still ULP leader ST has stretched the STM32L4 architecture to reach 150

More information

AT-501 Cortex-A5 System On Module Product Brief

AT-501 Cortex-A5 System On Module Product Brief AT-501 Cortex-A5 System On Module Product Brief 1. Scope The following document provides a brief description of the AT-501 System on Module (SOM) its features and ordering options. For more details please

More information

[MG2420] MCU Module Datasheet. (No. ADS0705) V1.0

[MG2420] MCU Module Datasheet. (No. ADS0705) V1.0 [MG2420] MCU Module Datasheet (No. ADS0705) V1.0 REVISION HISTORY Version Date Description VER.1.0 2013.10.22 First version release. V1.0 Page:2/17 CONTENTS 1. INTRODUCTION... 4 1.1. DEFINITIONS... 4 2.

More information

Hello, and welcome to this presentation of the STM32 general-purpose IO interface. It covers the general-purpose input and output interface and how

Hello, and welcome to this presentation of the STM32 general-purpose IO interface. It covers the general-purpose input and output interface and how Hello, and welcome to this presentation of the STM32 general-purpose IO interface. It covers the general-purpose input and output interface and how it allows connectivity to the environment around the

More information

AN4325 Application note

AN4325 Application note Application note Getting started with STM32F030xx and STM32F070xx series hardware development Introduction This application note is intended for system designers who require a hardware implementation overview

More information

Introduction to ARM LPC2148 Microcontroller

Introduction to ARM LPC2148 Microcontroller Introduction to ARM LPC2148 Microcontroller Dr.R.Sundaramurthy Department of EIE Pondicherry Engineering College Features of LPC2148 in a Nut Shell CPU = ARM 7 Core Word Length = 32 Bit ROM = 512 KB RAM

More information

STM8L151x4, STM8L151x6, STM8L152x4, STM8L152x6

STM8L151x4, STM8L151x6, STM8L152x4, STM8L152x6 STM8L151x4, STM8L151x6, STM8L152x4, STM8L152x6 8-bit ultra-low-power MCU, up to 32 KB Flash, 1 KB Data EEPROM, RTC, LCD, timers, USART, I2C, SPI, ADC, DAC, comparators Datasheet - production data Features

More information

The course provides all necessary theoretical and practical know-how for start developing platforms based on STM32L4 family.

The course provides all necessary theoretical and practical know-how for start developing platforms based on STM32L4 family. Designing with STM32L4 Family Course Description Designing with STM32L4 is a 3 days ST official course. The course provides all necessary theoretical and practical know-how for start developing platforms

More information

STM8L151x4, STM8L151x6, STM8L152x4, STM8L152x6

STM8L151x4, STM8L151x6, STM8L152x4, STM8L152x6 STM8L151x4, STM8L151x6, STM8L152x4, STM8L152x6 8-bit ultralow power MCU, up to 32 KB Flash, 1 KB Data EEPROM, RTC, LCD, timers, USART, I2C, SPI, ADC, DAC, comparators Features Datasheet - production data

More information

Advanced Microcontrollers Grzegorz Budzyń Extras: STM32F4Discovery

Advanced Microcontrollers Grzegorz Budzyń Extras: STM32F4Discovery Advanced Microcontrollers Grzegorz Budzyń Extras: STM32F4Discovery Plan STM32F4Discovery module STM32F407 description STM32F4Discovery STM32F4Discovery Easily availble(farnell), cheap(~15 EUR) and powerful

More information

New STM32 F7 Series. World s 1 st to market, ARM Cortex -M7 based 32-bit MCU

New STM32 F7 Series. World s 1 st to market, ARM Cortex -M7 based 32-bit MCU New STM32 F7 Series World s 1 st to market, ARM Cortex -M7 based 32-bit MCU 7 Keys of STM32 F7 series 2 1 2 3 4 5 6 7 First. ST is first to sample a fully functional Cortex-M7 based 32-bit MCU : STM32

More information

MICROPROCESSOR BASED SYSTEM DESIGN

MICROPROCESSOR BASED SYSTEM DESIGN MICROPROCESSOR BASED SYSTEM DESIGN Lecture 5 Xmega 128 B1: Architecture MUHAMMAD AMIR YOUSAF VON NEUMAN ARCHITECTURE CPU Memory Execution unit ALU Registers Both data and instructions at the same system

More information

AN4809 Application note

AN4809 Application note AN4809 Application note Migrating between STM32L0 Series and STM32L4 Series / STM32L4+ Series microcontrollers Introduction For the designers of STM32 microcontroller applications, being able to easily

More information

AN3147 Application note

AN3147 Application note Application note STM8L family power management Introduction This document is intended for application designers who require a hardware implementation overview of low power modes in the STM8L product families.

More information

ARDUINO MEGA INTRODUCTION

ARDUINO MEGA INTRODUCTION ARDUINO MEGA INTRODUCTION The Arduino MEGA 2560 is designed for projects that require more I/O llines, more sketch memory and more RAM. With 54 digital I/O pins, 16 analog inputs so it is suitable for

More information

STM32 Journal. In this Issue:

STM32 Journal. In this Issue: Volume 1, Issue 2 In this Issue: Bringing 32-bit Performance to 8- and 16-bit Applications Developing High-Quality Audio for Consumer Electronics Applications Bringing Floating-Point Performance and Precision

More information

Arduino Uno R3 INTRODUCTION

Arduino Uno R3 INTRODUCTION Arduino Uno R3 INTRODUCTION Arduino is used for building different types of electronic circuits easily using of both a physical programmable circuit board usually microcontroller and piece of code running

More information

AN5123 Application note

AN5123 Application note Application note STSPIN32F0A - bootloader and USART protocol Introduction Cristiana Scaramel The STSPIN32F0A is a system-in-package providing an integrated solution suitable for driving three-phase BLDC

More information

Military Grade SmartFusion Customizable System-on-Chip (csoc)

Military Grade SmartFusion Customizable System-on-Chip (csoc) Military Grade SmartFusion Customizable System-on-Chip (csoc) Product Benefits 100% Military Temperature Tested and Qualified from 55 C to 125 C Not Susceptible to Neutron-Induced Configuration Loss Microcontroller

More information

STM32 F4 Series Cortex M4 http://www.emcu.it/stm32f4xx/stm32f4xx.html www.emcu.it STM32 F4 Main common features Cortex -M4 (DSP + FPU) STM32F429/439 180 MHz 1 to 2-MB Flash 256-KB SRAM STM32F427/437 180

More information

Engineer-to-Engineer Note

Engineer-to-Engineer Note Engineer-to-Engineer Note EE-388 Technical notes on using Analog Devices products and development tools Visit our Web resources http://www.analog.com/ee-notes and http://www.analog.com/processors or e-mail

More information

STM32F429 Overview. Steve Miller STMicroelectronics, MMS Applications Team October 26 th 2015

STM32F429 Overview. Steve Miller STMicroelectronics, MMS Applications Team October 26 th 2015 STM32F429 Overview Steve Miller STMicroelectronics, MMS Applications Team October 26 th 2015 Today - STM32 portfolio positioning 2 More than 30 product lines High-performance 398 CoreMark 120 MHz 150 DMIPS

More information

STM8 platform 8-bit microcontrollers

STM8 platform 8-bit microcontrollers STM8 platform 8-bit microcontrollers We shoot for better performance & price MCD market vision 2 Flash size (bytes) 1 MB High performance and ultra-low-power STM32F (2.0 to 3.6 V) STM32L Ultra-low-power

More information

Low Power Design. Renesas Electronics America Inc Renesas Electronics America Inc. All rights reserved.

Low Power Design. Renesas Electronics America Inc Renesas Electronics America Inc. All rights reserved. Low Power Design Renesas Electronics America Inc. Renesas Technology & Solution Portfolio 2 Microcontroller and Microprocessor Line-up 2010 2012 32-bit 8/16-bit 1200 DMIPS, Superscalar Automotive & Industrial,

More information

STM8L151x4, STM8L151x6, STM8L152x4, STM8L152x6

STM8L151x4, STM8L151x6, STM8L152x4, STM8L152x6 STM8L151x4, STM8L151x6, STM8L152x4, STM8L152x6 8-bit ultralow power MCU, up to 32 KB Flash, 1 KB Data EEPROM, RTC, LCD, timers, USART, I2C, SPI, ADC, DAC, comparators Features Operating conditions Operating

More information

STM8L151x8 STM8L152x8 STM8L151R6 STM8L152R6

STM8L151x8 STM8L152x8 STM8L151R6 STM8L152R6 STM8L151x8 STM8L152x8 STM8L151R6 STM8L152R6 8-bit ultralow power MCU, up to 64 KB Flash + 2 KB data EEPROM, RTC, LCD, timers, USARTs, I2C, SPIs, ADC, DAC, comparators Features Operating conditions Operating

More information

2-Oct-13. the world s most energy friendly microcontrollers and radios

2-Oct-13.  the world s most energy friendly microcontrollers and radios 1 2 3 EFM32 4 5 LESENSE Low Energy Sensor Interface Autonomous sensing in Deep Sleep LESENSE with central control logic ACMP for sensor input DAC for reference generation Measure up to 16 sensors Inductive

More information

STM32 MCU family. 32-bit Flash microcontrollers powered by ARM Cortex -M3. June

STM32 MCU family. 32-bit Flash microcontrollers powered by ARM Cortex -M3. June STM32 MCU family 32-bit Flash microcontrollers powered by ARM Cortex -M3 June 2007 www.st.com/mcu Welcome to the world of STM32 Releasing your creativity The STM32 family of 32-bit Flash microcontrollers

More information

Embedded Programming with ARM Cortex-M3 Basic Experiments 1

Embedded Programming with ARM Cortex-M3 Basic Experiments 1 Embedded Programming with ARM Cortex-M3 Basic Experiments 1 Alan Xiao, Ph.D Handheld Scientific, Inc. qiwei@handheldsci.com Today s Topics Basics (with the Discovery board): 1. General Input/Output (GPIO)

More information

KL03 Product Brief Supports all KL03 devices

KL03 Product Brief Supports all KL03 devices Freescale Semiconductor Document Number:KL03PB Product Brief Rev 3, 07/2014 KL03 Product Brief Supports all KL03 devices 1 KL03 sub-family introduction The device is highly-integrated, market leading ultra

More information

RL78 Ultra Low Power MCU Lab

RL78 Ultra Low Power MCU Lab RL78 Ultra Low Power MCU Lab Renesas Electronics America Inc. Renesas Technology & Solution Portfolio 2 Renesas Technology & Solution Portfolio 3 Microcontroller and Microprocessor Line-up 2010 2012 32-bit

More information

STG - STM32 + FreeRTOS + LwIP/EmWin

STG - STM32 + FreeRTOS + LwIP/EmWin Formation STM32 + FreeRTOS + LwIP/EmWin: This course covers the STM32 ARM-based MCU family, the FreeRTOS Real Time OS, the LWIP TCP/IP Stack and/or the EmWin GUI Stack - Processeurs ARM: ST processors

More information

Hello, and welcome to this presentation of the STM32F7 System Configuration Controller.

Hello, and welcome to this presentation of the STM32F7 System Configuration Controller. Hello, and welcome to this presentation of the STM32F7 System Configuration Controller. 1 STM32F7 microcontrollers feature a set of configuration registers. The System Configuration Controller gives access

More information

Creating Energy Efficient Computers Marius Grannæs

Creating Energy Efficient Computers Marius Grannæs www.silabs.com Creating Energy Efficient Computers Marius Grannæs Microcontrollers & Radios EFM32 Gecko Microcontrollers... the world s most energy friendly microcontrollers EFR Draco Radios... the world

More information

AN4777 Application note

AN4777 Application note Application note Implications of memory interface configurations on low-power STM32 microcontrollers Introduction The low-power STM32 microcontrollers have a rich variety of configuration options regarding

More information

Hello, and welcome to this presentation of the STM32 Low Power Universal Asynchronous Receiver/Transmitter interface. It covers the main features of

Hello, and welcome to this presentation of the STM32 Low Power Universal Asynchronous Receiver/Transmitter interface. It covers the main features of Hello, and welcome to this presentation of the STM32 Low Power Universal Asynchronous Receiver/Transmitter interface. It covers the main features of this interface, which is widely used for serial communications.

More information

Low Power Design Michael Thomas, Applications Engineer

Low Power Design Michael Thomas, Applications Engineer Low Power Design Michael Thomas, Applications Engineer Class ID: CL01B Renesas Electronics America Inc. Michael Thomas (Applications Engineer) 5 years at Renesas Electronics RX200 Technical Support RTOS,

More information

STM32 ARM Cortex TM - M3 Based Product Introduction. Sept 2007

STM32 ARM Cortex TM - M3 Based Product Introduction. Sept 2007 STM32 ARM Cortex TM - M3 Based Product Introduction Sept 2007 What is the STM32? STM32 reshapes the Microcontroller Market First MCU family combining 32bit performance and features with the integration

More information

MSP430xxxx Microcontrollers Low Power Modes

MSP430xxxx Microcontrollers Low Power Modes MSP430xxxx Microcontrollers Low Power Modes Modes à basse consommation 1 Power is a priority architectural design constraint Why worry about power? Battery life in portable and mobile platforms Power consumption

More information

Infineon C167CR microcontroller, 256 kb external. RAM and 256 kb external (Flash) EEPROM. - Small single-board computer (SBC) with an

Infineon C167CR microcontroller, 256 kb external. RAM and 256 kb external (Flash) EEPROM. - Small single-board computer (SBC) with an Microcontroller Basics MP2-1 week lecture topics 2 Microcontroller basics - Clock generation, PLL - Address space, addressing modes - Central Processing Unit (CPU) - General Purpose Input/Output (GPIO)

More information

SBAT90USB162 Atmel. SBAT90USB162 Development Board User s Manual

SBAT90USB162 Atmel. SBAT90USB162 Development Board User s Manual SBAT90USB162 Atmel AT90USB162 Development Board User s manual 1 1. INTRODUCTION Thank you for choosing the SBAT90USB162 Atmel AT90USB162 development board. This board is designed to give a quick and cost-effective

More information

Value-line ARM -based 32-bit MCU with up to 256 KB Flash, timers, ADC, communication interfaces, V operation

Value-line ARM -based 32-bit MCU with up to 256 KB Flash, timers, ADC, communication interfaces, V operation Features STM32F030x4 STM32F030x6 STM32F030x8 STM32F030xC Value-line ARM -based 32-bit MCU with up to 256 KB Flash, timers, ADC, communication interfaces, 2.4-3.6 V operation Datasheet - production data

More information

Product Technical Brief S3C2412 Rev 2.2, Apr. 2006

Product Technical Brief S3C2412 Rev 2.2, Apr. 2006 Product Technical Brief S3C2412 Rev 2.2, Apr. 2006 Overview SAMSUNG's S3C2412 is a Derivative product of S3C2410A. S3C2412 is designed to provide hand-held devices and general applications with cost-effective,

More information

ZigBee Compliant Platform 2.4G RF Low Power Transceiver Module for IEEE Standard. DATA SHEET Version B

ZigBee Compliant Platform 2.4G RF Low Power Transceiver Module for IEEE Standard. DATA SHEET Version B ZMD400-A01 ZigBee Compliant Platform 2.4G RF Low Power Transceiver Module for IEEE 802.15.4 Standard DATA SHEET Version B Quan International Co., Ltd., ZMD400 Features Fully compliant 802.15.4 Standard

More information

Clock and Fuses. Prof. Prabhat Ranjan Dhirubhai Ambani Institute of Information and Communication Technology, Gandhinagar

Clock and Fuses. Prof. Prabhat Ranjan Dhirubhai Ambani Institute of Information and Communication Technology, Gandhinagar Clock and Fuses Prof. Prabhat Ranjan Dhirubhai Ambani Institute of Information and Communication Technology, Gandhinagar Reference WHY YOU NEED A CLOCK SOURCE - COLIN O FLYNN avrfreaks.net http://en.wikibooks.org/wiki/atmel_avr

More information

TouchCore351-ML16IP. Capacitive Touch Sensor Controller

TouchCore351-ML16IP. Capacitive Touch Sensor Controller Total Solution of MCU TouchCore351-ML16IP Capacitive Touch Sensor Controller CORERIVER Semiconductor reserves the right to make corrections, modifications, enhancements, improvements, and other changes

More information

Typical Applications: GHz Bluetooth low energy systems - Proprietary 2.4 GHz systems - Sports and leisure equipment - Mobile phone accessories,

Typical Applications: GHz Bluetooth low energy systems - Proprietary 2.4 GHz systems - Sports and leisure equipment - Mobile phone accessories, PTR5618 Coin-size Ultra Low Power Bluetooth Low Energy System on Module Embedded Cortex M4F 32 bit processor The PTR5618 ultra-low power Bluetooth Low Energy/ANT/2.4GHz Proprietary Multi-protocol modules

More information

Xynergy It really makes the difference!

Xynergy It really makes the difference! Xynergy It really makes the difference! STM32F217 meets XILINX Spartan-6 Why Xynergy? Very easy: There is a clear Synergy achieved by combining the last generation of the most popular ARM Cortex-M3 implementation

More information

STM8L151x4, STM8L151x6, STM8L152x4, STM8L152x6

STM8L151x4, STM8L151x6, STM8L152x4, STM8L152x6 STM8L151x4, STM8L151x6, STM8L152x4, STM8L152x6 8-bit ultralow power MCU, up to 32 KB Flash, 1 KB Data EEPROM RTC, LCD, timers, USART, I2C, SPI, ADC, DAC, comparators Features Operating conditions Operating

More information

STM32 Seminar STM32F2 High-Performance. COMPEL/STM Seminar

STM32 Seminar STM32F2 High-Performance. COMPEL/STM Seminar STM32 Seminar STM32F2 High-Performance COMPEL/STM Seminar Nov/Dec 2011 STM32 F2 Series highlights 1/2 Advanced technology and process from ST: Memory accelerator: ART Accelerator Multi AHB Bus Matrix 90nm

More information

STM32x. tec.pres. STM32 ARM CortexTM-M3 Based Product Introduction

STM32x. tec.pres. STM32 ARM CortexTM-M3 Based Product Introduction STM32x tec.pres. STM32 ARM CortexTM-M3 Based Product Introduction 0101 STM32x Cortex M3 Hierarchical processor integrating core and advanced system peripherals Cortex-M3 core Harvard architecture 3-stage

More information

NXP Microcontrollers Selection Guide

NXP Microcontrollers Selection Guide November 2012 NXP Microcontrollers Selection Guide NXP LPC family of microcontrollers is changing the landscape for embedded applications. Featuring award-winning innovations in connectivity, flexibility,

More information

Product Technical Brief S3C2413 Rev 2.2, Apr. 2006

Product Technical Brief S3C2413 Rev 2.2, Apr. 2006 Product Technical Brief Rev 2.2, Apr. 2006 Overview SAMSUNG's is a Derivative product of S3C2410A. is designed to provide hand-held devices and general applications with cost-effective, low-power, and

More information

WHICH MICRO? What does MCU needs to do in my system? What are the tasks? Dr. Adriana Becker-Gomez

WHICH MICRO? What does MCU needs to do in my system? What are the tasks? Dr. Adriana Becker-Gomez 1 WHICH MICRO? What does MCU needs to do in my system? What are the tasks? Dr. Adriana Becker-Gomez Email: axbeec@rit.edu Office: 9-3477 2 Specs System design: High level definition (functional specs)

More information

Hello, and welcome to this presentation of the STM32L4 System Configuration Controller.

Hello, and welcome to this presentation of the STM32L4 System Configuration Controller. Hello, and welcome to this presentation of the STM32L4 System Configuration Controller. 1 Please note that this presentation has been written for STM32L47x/48x devices. The key differences with other devices

More information

New STM32WB Series MCU with Built-in BLE 5 and IEEE

New STM32WB Series MCU with Built-in BLE 5 and IEEE New STM32WB Series MCU with Built-in BLE 5 and IEEE 802.15.4 Make the Choice of STM32WB Series The 7 keys points to make the difference 2 Open 2.4 GHz radio Multi-protocol Dual-core / Full control Ultra-low-power

More information

Copyright 2016 Xilinx

Copyright 2016 Xilinx Zynq Architecture Zynq Vivado 2015.4 Version This material exempt per Department of Commerce license exception TSU Objectives After completing this module, you will be able to: Identify the basic building

More information

AN Migrating to the LPC1700 series

AN Migrating to the LPC1700 series Rev. 01 6 October 2009 Application note Document information Info Keywords Abstract Content LPC1700, Migration, LPC2300/2400, ARM7, Cortex-M3 This application note introduces the important features of

More information

Lecture 5: Computing Platforms. Asbjørn Djupdal ARM Norway, IDI NTNU 2013 TDT

Lecture 5: Computing Platforms. Asbjørn Djupdal ARM Norway, IDI NTNU 2013 TDT 1 Lecture 5: Computing Platforms Asbjørn Djupdal ARM Norway, IDI NTNU 2013 2 Lecture overview Bus based systems Timing diagrams Bus protocols Various busses Basic I/O devices RAM Custom logic FPGA Debug

More information

AN4515 Application note

AN4515 Application note Application note Using Batch Acquisition Mode (BAM) to maximize power efficiency on STM32F410/411/412 microcontroller lines Introduction The STM32F410, STM32F411 and STM32F412 lines are part of the STM32

More information