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
|
|
Term
|
Definition
device is disabled or inactive no I/0 in idle state |
|
|
Term
|
Definition
Device is actively performing task and is unable to perform a new task yet, will set a flag when task is complete |
|
|
Term
|
Definition
device is active and awaiting new task |
|
|
Term
|
Definition
Elapsed time between start and end of some operation (Clicking on a link vs link opening) |
|
|
Term
|
Definition
System with bounded latency, system will respond within a given time limit |
|
|
Term
|
Definition
Max data flow possible (bytes/sec |
|
|
Term
|
Definition
actual rate of data processing or operation completion |
|
|
Term
|
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
|
Definition
Wait fixed time for I/O to finish its job (Software delay loop) |
|
|
Term
|
Definition
software loop checks flag to know when I/O job is finished |
|
|
Term
|
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
|
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
|
Definition
Break in normal program flow Reset Non maskable interrupt(NMI) Faults Interrupts |
|
|
Term
|
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
|
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
|
Definition
Error detected during program execution( hard(unknown), memory,bus,usage |
|
|
Term
|
Definition
ARM specific exceptions( SysTick which isnt peripheral block) |
|
|
Term
|
Definition
Break normal program flow, execute Hander/ISR, return to normal program flow |
|
|
Term
|
Definition
Each exception has a unique vector address in ROM which contains address of full handler/ISR |
|
|
Term
|
Definition
Trigger, thread, arm(disarm), flag, global interrupt enable |
|
|
Term
|
Definition
Asynch hardware event that causes an interrupt |
|
|
Term
|
Definition
Path of action for software execution, unique register values and variables for each side. ISR is a background thread. |
|
|
Term
|
Definition
To enable or disable an interrupt source, a trigger, each interrupt source has an arm bit |
|
|
Term
|
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
|
Definition
System wide control bits to enable disable all interrupts from generating flags. |
|
|
Term
Hard interrupts are____ Exceptions faults software interrupts are____ |
|
Definition
|
|
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
|
Definition
Main stack pointer available in thread mode and handler mode |
|
|
Term
|
Definition
Process stack pointer,only available in thread mode |
|
|
Term
|
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
|
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
|
Definition
nested vectored interrupt controller, takes control during handler mode, automates action to minimize IRQ latency, manage multiple interrupts |
|
|
Term
|
Definition
Interrupt Set-Enable Register- WRITE 1 TO enable policy |
|
|
Term
|
Definition
Interrupt Clear Enable Register, write 1 to clear polocu |
|
|
Term
|
Definition
used for back to back interrupts- next IRQ chained to the tail of last IRQ |
|
|
Term
Ports that support interrupts |
|
Definition
|
|
Term
|
Definition
Bit 24 0= none 1= interrupt; writes 1 to reset ISF |
|
|
Term
|
Definition
|
|
Term
What do you write to clear interrupt flag? |
|
Definition
|
|
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
|
|
Term
has highest priority other than Reset |
|
Definition
|
|
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. |
|
|