MSD4
MSD4
Hakim Altamimi
Chapter focus
Focus on electronics hardware which includes computer,
controller
Digital control and multiple tasks coordination Data acquisition, monitoring and automation Data communication with external systems User interface- input configuration and customized data,
display system states and diagnostics Data storage Calibration and self-testing
Control with a PC
Advantage of using PC as platform for embedded
controller
Reduce time in system dev. cycle tested PC motherboards
are available in the market. Save dev. cost- no cost for dev. of computer and cheaper PC software tools Large choice of data storage (HD, FD) standard hardware with software drivers supported by manufacturers Engineers dont need to waste time on building interfaces and software drivers because they are ready, so they can focus only on the desired systems Standard software. OS such as winXP, Linux ease the software development
Control with a PC
Disadvantages of using PC as platform for embedded
system
Cost increases for high volume and cost sensitive products
we pay for all components even though we dont use Less effective if a lot of customized interfaces to be built (limited interfaces) - its better to design by our self Spare parts availability- PC technology is changing rapidly Non real-time OS- we must by RTOS or use RTLinux Design problem- if theres a problem we need to debug it ourself since no much information about the motherboard are available
Control with C
Discussion: based on the PC advantages and
disadvantages, derive the advantages and disadvantages of using C as and embedded controller
actuators) or external devices to computer Some issues and problems need to be handled when interfacing such as:
Voltage and current levels incompatibility Electrical isolation Timing incompatibility for data transfer Analog-to-digital and digital-to-analog
Analog interfaces
DAC- to be elaborated in details in IM06 In brief: device that converts digital input value into analog
Output Voltage =
Analog interfaces
Full-scale voltage (VFS) for DAC normally Vref The voltage for each step change for a 1-bit change in
digital value is called resolution. Its also called 1 LSB = 1 = 2 Example resolution for some DAC with Vref= 5V
n 8
12
Analog interface
Example of interfacing DAC with M68HC11
recall of whats been taken Device that converts analog voltage to digital code ADC transfer function
The conversion is performed till full scale voltage minus one LSB (resolution) because the FS voltage is n+1 bits for an n-bits converter (over range)
Analog interface
An 8-bit ADC wit parallel interface
28
1 = 255
Analogue interface
Example: calculate the resolution for the following a) AD7819
2.5V, Vref= 4.069V and Vref= 5.1V. Which ADC can be used to
convert the input voltage Vin= 2 mV.
Signal conditioning
Signals from transducers are normally very small, non-
linear and not in a condition that is suitable to be directly read/ sent to microcomputer, thus signal conditioning is required Signal conditioners can be:
Amplifiers for this sem Filters Linearizers Converters Buffers/ protectors
Op-amp
We have taken a whole chapter on this topic To recap on the op-amp types: Inverting amplifier Non-inverting amplifier Unity gain amplifier/ buffer Summing amplifier Integrating amplifier Differential amplifier Difference amplifier
be connected to an ADC with input range of 0 to 5V. Design a suitable signal conditioning circuit.
+10 Vi Signal conditioning circuit VO 5 ADC 0
-10
Signal conditioning
Example: pressure sensor graphical TF is given below
Signal conditioning
If the sensor is to be interfaced with 12 bits ADC with
be directly interfaced with the ADC Design a suitable signal conditioning circuit.