Need For Communication Interfaces: Why Are Communication Interfaces Required in Embedded Systems
Need For Communication Interfaces: Why Are Communication Interfaces Required in Embedded Systems
Level RS232
UART
Shifter Connector
UART chip operates at 5 Volts. The level conversion to the desired voltages is done
by the level shifter, and then the signals are passed on to the RS232 connector.
RS232 standard specifies a distance of 19.2 meters. However, you can achieve
distances up to 100 meters using RS232 cables. The data rates supported will be
dependent on the UART chip and the clock used.
RS232/UART
• Null Modem Cable Connection
– To connect two DTEs such as two PCs, the two RS232 ports using a
null modem cable are interconnected.
– If you want to connect two DTEs such as two PCs, you need to
interconnect the two RS232 ports using a null modem cable.
– The null modem cable connections are shown the figures for 25-pin
and 9-pin connectors.
– However, the minimal connections required are for TD, RD and GND.
– In 25 pin connectors, it is sufficient if to connect pin 2 to pin 3, pin 3
to pin 2 and pin 7 to pin 7. This is the minimal configuration.
– To make two devices communicate with each other using RS232
interface, you need to connect the two PCs using a null modem cable
and set the communication parameters on both the devices.
RS232/UART
1 1
2 2
3 3
4 4
5 5
6 6
7 7
20 20
2 2
3 3
4 4
5 5
6 6
7 7
8 8
Higher Layers
(Application, IrCOMM)
Link Management Protocol
(IrLMP)
Link Access Protocol
(IrLAP)
Physical Layer
(IrPHY)
Fig 6. Protocol Architecture
Infrared
• Physical layer: IrPHY specifies the data rates and the mode of
communication. IrDA has two specifications viz., IrDA Data and IrDA
control. IrDA Data has a range of 1 meter with bi-directional
communication. Serial IR (SIR) supports data rate up to 115 Kbps
and Fast IR (FIR) supports data rates up to 4 Mbps. IrDA Control has
a range of 5 meters with bi-directional communication speed up to
75 Kbps. A host such as PC can communicate with 8 peripherals
using IrDA protocols.
• Data Link layer: IrLAP is based on HDLC protocol. Master/slave
protocol is used for communication between two devices. The
device that starts the communication is the Master. The master
sends the command and the slave sends a response.
Infrared
• Link management layer: This layer facilitates a device to query the
capabilities of other devices. It also provides the software capability
to share IrLAP between multiple tasks.
• Higher layers: The higher layer protocols are application specific.
IrCOMM protocol emulates the standard serial port. When two
devices such both fitted with infrared interface come face to face,
they can exchange the data using the application layer protocols.
IEEE 1394 Firewire
• Apple Computers Inc. initiated the development of a mechanism to
interconnect consumer devices such as PC, printer, TV, VCR, digital
camera, CD player using a serial bus known as Fireware.
• Later on, it led to the development of the standard IEEE 1394.
• The consumer devices can be connected using this serial bus. The
cable length can be up to 4.5 meters.
• The only restriction is that the devices cannot be connected in
loops.
• IEEE 1394 provides plug and play capability and hot insertion
capability.
• Peer-to-peer communication is supported and hence even if the PC
is not there, any two devices can be connected.
IEEE 1394 Firewire
PC Printer TV VCR CD Player
Digital
Camera
Fig 7. Connecting Devices through IEEE 1394 Bus
Bus Management
Transaction Layer
Resources
Data Link Layer
Management
Physical Layer Node Control