Midterm 1 Flashcards
Embedded System
A special computer designed for specific control functions
Components of an embedded system
- Sensor (input)
- Controllers (logic + calculation)
- Actuator (physical output)
Cyber-physical system
Embedded system + physical environment
Note: Physical considerations should impact the way we think about logic
Embedded controllers in order of efficiency
- ASIC
- FPGA
- DSP
- MPU
Embedded controllers in order of flexibility
- MPU
- DSP
- FPGA
- ASIC
Behavior of a GPIO pin is determined by ________ at ________
the user
at run time
“Previously” on a UML Activity Diagram indicates…
We need a STATE VARIABLE to keep track of the previous state
What controller does the Atmel SAM Xplained Pro use?
ARM Cortex M4 MPU
Inputs must be configured with…
- An internal pull-up resistor (default is HIGH)
2. An internal pull-down resistor (default is LOW)
What replaces macros with their definitions?
The compiler
ASIC- about
- Application Specific IC
- Does ONE task only
- Gates/transistors are physically on the IC
- Not reprogrammable
Ex. Satellites
ASIC- pros
- Most efficient
- Fast
- Best performance
ASIC- cons
- Design is challenging and slow
- Expensive
- Not reprogrammable
FPGA- about
-Field Programmable Gate Array
Ex. FPGA + I2C at NI
FPGA- pros
- Fast
- Power efficient
- Programmable
FPGA- cons
- Big
2. Harder to reprogram than a microprocessor
DSP- about
- A specialized microcontroller
- uses software
- PARALLELISM to increase efficiency
DSP- pros
- Efficient
2. Programmable
Microprocessor- about
- a GENERAL PURPOSE processing unit
- runs software
Ex. BeagleBone, desktop computer, Atmel boards, phones, etc.
Microprocessor- pros
- flexible
- cheap
Microprocessor- cons
Least efficient
Types of microprocessors
- MPU
- CPU
- DSP
- System on a Chip (SoC)
- System in a package (SiP)
MPU
- a STANDALONE CPU
- 32 or 64 bits
MCU (microcontroller)- about
- a single-chip machine with a processor AND peripherals
- built-in peripherals (RAM, ROM, TC, IO Ports)
- usually no OS
Ex. Atmel board
MCU- pros
- Low power
- Simple
- Cheap
DSP Chip- about
- A single chip with a DSP + peripherals for signal processing (ex. Fast RAM)
- Parallel processing/pipelining
DSP chip- pros
- Fast (low latency)
2. Better quality ADC/DAC
SoC- about
- Advanced processing device with ALL PERIPHERALS ON ONE CHIP
- Usually has an OS
Ex. Smartphones
SiP- about
Like SoC
BUT puts components on multiple dies and puts them into a SINGLE PACKAGE
for modularity
Ex. BeagleBone Black
ARM
Advanced RISC Machines
RISC- complex actions compiled by several simple instructions
Low energy, low cost
32 DATA registers (NOT memory registers)
Pipelining
NVIC priority levels
8 to 256
We have 16
Why do we need pull-up/pull-down resistors?
Without them, GPIO pins are left “floating”
DMA
Direct Memory Access
Allows USART to access memory directly
Copies printf statement to RAM where USART will send out data
Peripheral DMA Controller
Allows microprocessor to access peripherals (ex. USARTx) by writing to and reading from the memory addresses (even though they are separate devices)
Interrupt (definition)
A signal to the processor emitted by hardware or software indicating a event that needs immediate action
Types of interrupts
- External- ex. Button press, serial message received
- Internal- ex. SysTick, processor fault
- Exception- ex. Divide by zero
Interrupt handling: when a processor detects an interrupt, it…
- Halts normal execution
- Saves the current program state
- Calls the interrupt handler
Interrupt Handler Code is usually written by ________
The user to perform a needed task
Interrupt Handler code executes until…
Completion
Then return to the previous program execution
Interrupt interface to the processor is required for
- Internal interrupts- interrupts from the processor (ex. Fault, clock timer)
- External interrupts- interrupts from devices external to the processor (ex. GPIO pins)
What does the NVIC do?
- Reads all internal and external interrupt requests (IRQ’s)
- Evaluates interrupts in order of priority
- Calls the interrupt Handler with the highest priority IRQ
Interrupt masking
Allows software to ignore specific interruptions
Set via binary values where each bit represents a particular interrupt
Most embedded systems are…
Real-time Systems
Need a clock to keep track of deadlines
ARM Cortex M4 system timer
Built in with SysTick
24-but timer