Professional Documents
Culture Documents
OBJECTIVE:
•What is Embedded System?
•Microprocessor Vs Microcontroller
•Embedded product Development cycle
•Embedded tools Overview
OBJECTIVE (Contd...)
• How Embedded System communicate to
external world?
CPU
ALU
GENERIC MICROCOMPUTER
ARCHITECTURE
WHAT IS MICROPROCESSOR?
Coding, Editing
Compiling/ PCB Layout
Assembling Procurement
Debugging Assemble
Component
O.K
Finished
Embedded
System
Embedded Tools
•Cross Assembler / Compiler Linker
• Debugger
• Simulator
• In Circuit Emulator
DSCOPE SIMULATOR
In Circuit Emulator
In Circuit Emulator (Contd..)
How Embedded System
Communicate to external World?
•Via Input/Output ports
Input/Output Ports
Parallel Serial
PARALLEL INPUT/OUTPUT PORTS
Embedded 1 byte at a
System time
Example for Parallel
Communication
Parallel Input/Output
Advantage and disadvantage of
parallel communication
Advantages Disadvantages
* Data transfer rate is * More number of wires,
high. not suitable for larger
distance communication
NOTE:
Most of Embedded system has both
* parallel- used between on board
peripherals
* serial- used for larger distance
SERIAL COMMUNICATION
Transmitter Receiver
• Framing
• Data speed
• Error checking
• Transmission medium
• Protocol
Synchronisation
• Synchronous
• Asynchronous
Format Synchronous Asynchronous
Simplex:
* Data flow only in one direction
e.g. T.V broadcasting, PC to printer
Half duplex:
Two way communication, but data flow
only in one direction at a time.
E.g. Walkie-Talkie
Full duplex:
Two way communication simultaneously.
E.g.Telephone
Framing
• Start bit(s)
• Data bit(s)
• Parity bit(s)
• Stop bit(s)
START STOP
DATA PARITY
Error Checking
Sources of error:-
1. Parity Checking
2. Checksum (or) Longitudinal Redundancy check
(LRC)
3.Cyclical Redundancy Check(CRC)
Data Speed
Unit: Baud
example:-
If baud rate of modem is 2400, then 2400 bits are
transmitted per second.
Transmission Medium
• Telephone Line
• Co-Axial cable
• Fiber Optics
PROTOCOL
The rules that governs the transmission of data
between two system.
Recommended Standard
What this standard specifies?
Electrical - Common Voltage and Signal Levels
TXD TXD
DTE Embedded
PC System
RXD RXD
Disadvantages of RS232
• Maximum Distance is only 50 feet
• operates at 5v
1 2 32
APPLICATION APPLICATION
PRESENTATION PRESENTATION
SESSION SESSION
TRANSPORT TRANSPORT
NETWORK NETWORK
PHYSICAL PHYSICAL
Physical Layer
Defines
• Electrical
• Data rate
Defines
• Medium Access Control
• Structures transmission
Defines
• Acknowledgement of message
• Retransmitting message
Session Layer
Defines
• Start and stop of communication
Presentation Layer
Defines
• Translates Application Message Format
suitable to communicate system
Application Layer
Defines
Coding:
• Hexadecimal 0…….9,A…..F
• Each Hexadecimal Character is represented in
•equivalent ASCII
Bits/Byte:
1 Start Bit
7 Data Bits
1 bit for Odd/Even parity, no bit for no parity
1 Stop bit,if parity is used, 2 bits if no parity is used
A Typical a Network
Maintenance
Control / Monitoring
Control / Monitoring Churning Room Control / Monitoring
Cream preparation Room Butter packing By-products manufacturing
PC-Vue
Modbus
Modbus
Decantation
Milk storage
Evaporator # 1
Example:
QUERY
Functi LRC
Start Address Data END
on Check
1 2 2 # 2
CHAR CHAR CHAR CHAR 1
CHAR
• CHAR
• CRLF
RESPONSE
Bits/Byte:
1 Start Bit
8 Data Bits
1 bit for Odd/Even parity, no bit for no parity
1 Stop bit, if parity is used,2 bits if no parity is used
Error Checking:
Cyclical Redundancy Check(CRC)
Example:
Functi CRC
Start Address Data END
on Check
T1-T2-T3-T4 # 16 T1-T2-T3-T4
8 8
8 BITS
BITS BITS
BITS
RESPONSE