Module3-Dynamic Response of A System
Module3-Dynamic Response of A System
Basic
Processing Unit
SOME FUNDAMENTAL CONCEPTS
To execute an instruction, processor has to perform following 3
steps:
Fetch contents of memory-location pointed to by PC.
PC[PC] +4
Carry out the actions specified by instruction (in the IR).
Timing checks: Timing check that some function is carried out within
a specified time.
Watchdog timers
Fault finding techniques
Reversal checks: If there is a direct relationship between
input and output.
The value of output is taken and input is computed and then
compared with actual input.
Parity and error coding checks: This form of checking is
commonly used for detecting memory and data transmission errors.
Communication channels are frequently subjected to interference
and hence affect the data being transmitted.
For ex: character 1010000 would have a parity bit placed after MSB
0 with even parity 01010000 and 1 with odd parity 11010000.
Such a method can detect single error but not the presence of two
errors.
Sensors:
It goes through all test routines and not ready to take data
until tests indicate fault free.
Basic ROM test
Basic RAM test
Emulation and Simulation
Simulation-
Instead of testing a program by running it with an actual
microcontroller, one can test it by running it with a computer
program that simulates the microcontroller.
The display screen can be divided into number of windows
in which information can be displayed.
source code as it is executed
the cpu registers and flags with current status.
I/O ports
registers and timers
the memory situation