ARM Cortex-M3 processor

Download Report

Transcript ARM Cortex-M3 processor

www.silabs.com
Lizard Labs
Peripheral Reflex System
EFM32 Training Module
Peripheral Reflex System
Z
Z
Z
Z
Brain
Sensor
nerve
2
Z
Z
Spine
Motor
nerve
Peripheral Reflex System
Z
Z
Z
ARM
Cortex-M3
processor
Z
Z
Z
Peripheral
reflex system
Timer
3
ADC
Reflexes versus Interrupts
ARM
Cortex-M3
processor
Timer
ADC
Energy Efficient Peripherals
4
Reflexes versus Interrupts
ARM
Cortex-M3
processor
UNKNOWN
DELAY
Timer
ADC
Energy Efficient Peripherals
5
Reflexes versus Interrupts
ARM
Cortex-M3
processor
HIGH
CURRENT
CONSUMPTION
UNKNOWN
DELAY
Timer
ADC
Energy Efficient Peripherals
6
Reflexes versus Interrupts
ARM
Cortex-M3
processor
Timer
PRS
Z
Z
Z
ADC
Energy Efficient Peripherals
7
Peripheral Reflex System
Z
Z
Z
ARM Cortex-M3
processor
Peripheral
Reflex
System
8
PRS Producers
Timer
GPIO
PRS Consumers
ADC
DAC
Peripheral Reflex System
Z
Z
Z
ARM Cortex-M3
processor
Peripheral
Reflex
System
9
PRS Producers
Timer
GPIO
PRS Consumers
ADC
DAC
Example: ADC samples to RAM
Peripheral
Reflex
System
Start conversion
Timer
Overflow
Analog input
ADC
ADC
DMA Request
Sample done
Sample Data
Direct
Memory
Access
 SW Examples:
 AN0021 Analog to Digital Converter
10
 AN0013 Direct Memory Access
Sample Data
RAM
Example: Pulse width measurement
Analog input
ACMP
Reference
Reset &
Start
+
Overflow
Peripheral
Reflex System
-
Reference
Analog
input
Reflex signal
TIMER Count value
 SW Example: AN0025 Peripheral Reflex System
11
Capture
Timer
Peripherals With PRS Support
12
Reflex Producers
Reflex Consumers
•
ACMP
•
ADC
•
ADC
•
DAC
•
DAC
•
TIMER
•
GPIO
•
LESENSE
•
RTC
•
UART
•
BURTC
•
USART
•
TIMER
•
PCNT
•
LETIMER
•
LESENSE
•
UART
•
USART
•
USB
•
VCMP
Reflex signals
PRS and Energy Modes
CPU and Memory
ARM
ARM Cortex-M3
Cortex-M
processor
Flash
Program
Memory
RAM
Memory
Clock Management
Memory
Protection
Unit
High Freq
Crystal Osc
High Freq
RC Osc
Voltage
Regulator
Voltage
Comparator
Low Freq
Crystal Osc
Low Freq
RC Osc
Brown-out
Detector
Power-on
Reset
Ultra Low Freq
RC Osc
Auxiliary
RC Osc
Back-up
Power
Domain
Embedded
Trace
Macrocell
Debug
Interface
DMA
Energy Management
32-bit bus
Peripheral Reflex System
Serial Interfaces
USART
Low
Energy
UART
USB
UART
I2C
I/O Ports
External
Bus
Interface
TFT
Driver
External
Interrupt
General
Purpose
I/O
Pin
Reset
GPIO
Wake-up
Available down to:
13
Timers and Triggers
Timer/
Counter
Low Energy
Sensor IF
Low Energy
Timer
Real Time
Counter
Pulse
Counter
Watchdog
Timer
ADC
DAC
LCD
Controller
Operational
Amplifier
Security
AES
Accelerator
Analog
Comparator
Backup
RTC
EM0
Run Mode
Analog Modules
EM1
Sleep
EM2
Deep Sleep
EM3
Stop Mode
EM4
Shutoff Mode
PRS API in emlib
 Use emlib API functions to configure PRS:
 1) Configure producer as normal
 2) Configure PRS channel
 3) Configure consumer
14
PRS on external pins
 PRS channels 0-3 can be routed to external pins
 Useful when debugging autonomous peripherals
Timer
15
ADC
Summary
PRS advantages
 Energy Efficient
 Autonomous
 Fast
 Predictable latency
 Highly configurable
16
www.silabs.com
www.silabs.com