Shared Flashcard Set

Details

Module 8- Interrupts
ece331
56
Electrical Engineering
Undergraduate 1
04/20/2016

Additional Electrical Engineering Flashcards

 


 

Cards

Term
Software execution speed verses I/O hardware
Definition
software executes at MHz (μsec) speeds
I/O hardware operates at msec-sec speeds
Term
interfacing software & I/O hardware
requires ____
Definition
synchronization
•coordination of timed events
Term
I/O Device Hardware “States”
Definition
IDLE
BUSY
READY
Term
Idle
Definition
device is disabled or inactive
no I/0 in idle state
Term
Busy
Definition
Device is actively performing task and is unable to perform a new task yet, will set a flag when task is complete
Term
Ready
Definition
device is active and awaiting new task
Term
Latency
Definition
Elapsed time between start and end of some operation (Clicking on a link vs link opening)
Term
Real-Time system
Definition
System with bounded latency, system will respond within a given time limit
Term
Bandwidth
Definition
Max data flow possible (bytes/sec
Term
throughput
Definition
actual rate of data processing or operation completion
Term
Priority
Definition
order of service when two or more simultaneous service requests are possible
Term
Methods for synchronizing software to I/O(peripheral) hardware.
Definition
Blind Cycle
Busy wait
Interrupt(IRQ)
Periodic polling
Direct Memory access (DMA)
Term
Blind Cycle
Definition
Wait fixed time for I/O to finish its job (Software delay loop)
Term
Busy wait
Definition
software loop checks flag to know when I/O job is finished
Term
Interrupt(IRQ)
Definition
hardware generated break in software execution, Asynchronous communication between processor and peripheral hardware
Inputs- Requests IRQ when new data is available (Interrupt service routine ISR stores new input data to memory)
Output devices- Request IRQ when output is idle" Give me more data to send out"
Term
Periodic polling
Definition
Use Clock Interrupt (SysTicktime) to periodically check I/O status via flag
for tasks that demand interrupt but I/O device does not have a direct interrupt
Term
Direct Memory access (DMA)
Definition
Uses a DMA controller to transfer memory values from input devices or to output devices without software assistance, DMA synchronization allows high bandwidth and low latency.
Term
Exception
Definition
Break in normal program flow Reset Non maskable interrupt(NMI) Faults Interrupts
Term
Exception Handling
Definition
When exceptions occur they are managed by blovks of code written to handle each individual exception
Fault handlers
System handlers (NMI and other)
Interrupt service routines(ISR and all interrupts)
address of each handler is stored in ROM at pre-set Vector address
Term
Reset
Definition
Power on reset or forced external reset, restart programming execution from begginging of code
Term
Non Maskable interrupt (Nmi)
Definition
Always active interrupt, (external NMI pin)
Term
Faults
Definition
Error detected during program execution( hard(unknown), memory,bus,usage
Term
Exception type- "OTHER"
Definition
ARM specific exceptions( SysTick which isnt peripheral block)
Term
Handler/ISR flow
Definition
Break normal program flow, execute Hander/ISR, return to normal program flow
Term
Exception Vector address
Definition
Each exception has a unique vector address in ROM which contains address of full handler/ISR
Term
Types of Exception
Definition
Trigger, thread, arm(disarm), flag, global interrupt enable
Term
trigger
Definition
Asynch hardware event that causes an interrupt
Term
Thread
Definition
Path of action for software execution, unique register values and variables for each side. ISR is a background thread.
Term
arm/Disarm
Definition
To enable or disable an interrupt source, a trigger, each interrupt source has an arm bit
Term
flag
Definition
Hardware generated bit that indicates if an exception has occured, readable by software and is typically reset by writing to the flag bit (cleared by ISR/Handler
Term
Global interrupt enable
Definition
System wide control bits to enable disable all interrupts from generating flags.
Term
Hard interrupts are____
Exceptions faults software interrupts are____
Definition
Asynchronous
Synchronous
Term
Interrupt service routine (ISR)
Definition
Subroutine which processor is forced to execute to respond to a specific event
Term
Steps hardwired in the CPU to occur when an exception occurs
Definition
1.Finish current instruction
2.Push CPU registers onto stack
3.Switch to handler/privileged mode
4.Load PC with address of exception handler
5.Load LR with EXC_RETURNcode
6.Load IPSR with exception number
7.Start executing code in exception handler
Term
MSP
Definition
Main stack pointer available in thread mode and handler mode
Term
PSP
Definition
Process stack pointer,only available in thread mode
Term
Interrupt priority
Definition
Lowest IRQ# has highest priority
Term
PRIMASK
PM=1
PM=0
assembly instructions used to set/clear PRIMASK?
Definition
exception Mask register, PM=1, global disable of configurable exceptions
pm=0 enable conf exceptions, pm=0 on reset
CPSID, sets primask PM to 1 disable
CPSIE- Sets primask PM to 0 enable
Term
CONTROL
Definition
defines privilege and stack
Term
Control mode that defines execution privilege in thread mode
Definition
nPRIV,bit[]
0 thread mode has privileged access
1, has unprivileged access
Term
CONTROL that defines current stack
Definition
SPSEL,bit[]
0 Use SP_Main(MSP) as current stack
1 Use SP_Process(PSP) as current stack in
Term
NVIC
Definition
nested vectored interrupt controller, takes control during handler mode, automates action to minimize IRQ latency, manage multiple interrupts
Term
NVIC_ISER
Definition
Interrupt Set-Enable Register- WRITE 1 TO enable policy
Term
NVIC_ICER
Definition
Interrupt Clear Enable Register, write 1 to clear polocu
Term
Tail chaining
Definition
used for back to back interrupts- next IRQ chained to the tail of last IRQ
Term
Ports that support interrupts
Definition
A & D
Term
Interrupt status flag
Definition
Bit 24 0= none 1= interrupt; writes 1 to reset ISF
Term
Pin interrupt config
Definition
IRQC- bits 19:16
Term
What do you write to clear interrupt flag?
Definition
1 to ISF
Term
What are the three conditions that must be true for an interupt to occur?
Definition
1) Enable: interrupts globally enable, I=0 in PRIMASK
2) ARM: control bit for each possible source is set
3)Trigger: Hardware action sets source specific flag
Term
What happens if you dont clear trigger flag?
Definition
you will get endless interrupts
Term
provides asynchronous communication with peripheral devices
Definition
Interrupt
Term
has highest priority other
than Reset
Definition
NMI
Term
How would an ASM program implement a global disable of all peripheral interrupt sources?
Definition
CPSID I (DISABLE ALL MASKABLE PERIPH interrupt sources)
Term
What is the function of the Nested Vectored Interrupt Controller
within the ARM controller?
Definition
The NVIC manages tasks during Handler mode including automated interrupt actions such as preserving the CPU state, negotiating interrupt priority, and tail-chaining of multiple interrupt sources.
Term
Discuss the impact, or limitations, of choosing a serial communication standard with a shared receive
and transmit line
Definition
A shared Rx/Tx line minimizes the number of signals/wires needed but eliminates the opportunity to simultaneously transmit and receive.
Supporting users have an ad free experience!