Real-time system
- Must be able to validate that their timing is corrrect
When is a system safety critical
If a failure can cause loss of goods, money or life
Give 2 benefits of smaller sampling period
- Reduces oscillation
Disadvantage of smaller sampling period
Demanding of processor time
Multi-rate control systems
Have aspects (sensors, actuators etc.) that depend on different timing rates
Give 3 difficulties associated with RT systems
Fast RT system
System must act in a short amount of time in response to an input
Slow RT system
The system doesn’t need to act quickly in response to an input
Hard RT system
Must meet a hard deadline
Soft RT system
The moment in time that an action must occur isn’t that important
Embedded system
Performs one type of job
What converts assembly to machine code
Assembler
Give 4 benefits of C over assembly language
Register
Storage location that can read/write to ALL bits at the same time
Which is quicker, a register or RAM?
Register
Do values from RAM go straight into processing?
No, they are stored in a register first
Accumulator
Accumulates the RESULT of arithmetic. Is the most versatile
R Registers
General purpose
B Registers
Like an accumulator but only for * and /
Data pointer
Points to data
Program Counter (PC)
Points to next instruction in memory
Stack pointer
Points to the next value to be removed from the stack
Signed integer data type
16 bit signed integer
Bit data type
1 bit, used for RAM