Docsity

Types, Features, and Protocols of Serial Interfaces: RS-232, USB, Firewire, Ethernet, Blue, Study notes of Electrical and Electronics Engineering

Partial preview of the text

Download Types, Features, and Protocols of Serial Interfaces: RS-232, USB, Firewire, Ethernet, Blue and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

  • Serial Interfaces --- Part 1 ECE 153B --- Mar 3,

Serial Interfaces ^ “Simple” Serial Interfaces^ ^ RS-232^ ^

Point–to–point communications ^ Simplest serial communication ^ Generally no address decoding, though multi-drop systems exist  Max speed ~ 1 M bits per sec (^2)  IC (Inter–IC) Bus  Serial, 2-wire bus ^ As opposed to point–to–point communications  Popular in embedded systems

Serial Interfaces ^ “Complex” Serial Interfaces^ ^ Ethernet^ 

Local Area Networking^ ^ Computer to computer to shared peripheral connections  Developed by Xerox PARC, IEEE 802.3  Complex protocols

Serial Interfaces ^ Wireless Serial Interfaces^ ^ Bluetooth^ 

Wireless communication between electronic devices  Protocols emerging based on ethernet-like model  RF portion very complex  WiFi (IEEE 802.11)  Wireless LAN^ ^ Computer to computer connections  Same protocols as ethernet plus more  RF portion (again) quite complex

Serial Communication ^ Start bit and Data bits^ ^ Once the start bit has been sent, the transmitter sendsthe actual data bits^ ^ There may either be 5, 6, 7 or 8 data bits^ ^ Both receiver and transmitter must agree on thenumber of data bits, as well as the baud rate^ 

Simple protocol  Almost all devices transmit data using either 7 or 8 data bits

Serial Communication ^ Stop bit^ ^ After the data has been transmitted, a stop bit is sent^ ^ A stop bit has a value of 1 (a mark

state) and it can be

detected correctly even if the previous data bit alsohad a value of 1 ^ This is accomplished by the stop bit's duration ^ Stop bits can be 1, 1.5, or 2 bit periods in length.

Serial Communication ^ Parity error checking is very rudimentary^ ^ While it will tell you if there is a single

bit error in the

character, it doesn't show which

bit was received in error

^ Parity is an example of a single bit error detection code  If an even

number of bits are in error (e.g. 2) then the parity bit would not indicate any error at all!

Bi-Directional, Serial Communications ^ Full-duplex^ ^ Send and receive data at the same time^ 

Two-way (full duplex) communications is possible with onlythree wires: one to send, one to receive, and a commonsignal ground wire

^ Half-duplex^ ^ Send and receive, but not simultaneously^ 

Can be configured to use only two wires in the cable - the dataline and the signal ground

DCE and DTE Devices ^ DTE : Data Terminal Equipment ^ DCE : Data Communications Equipment^ ^ Historically, this refers to the connection between a computerterminal (DTE) and a modem (DCE)^ ^ In RS-232C, these terms are used to indicate the pin-out for theconnectors on a device and the direction of the signals on the pins^ ^ In modern practice, DTE is a computer

and DCE is everything else

RS-232C Connectors ^ DTE devices use a 25-pin male connector^ ^ In the 9-pin abbreviated version, a DB-9 male connector ^ DCE devices use a 25-pin female connector (or DB-9)^ ^ A DTE device and a DCE device can communicate using a straight-through pin-for-pin connection^ ^ To connect two like devices, you must instead use a “null modem”cable^ 

Null modem cables cross the transmit and receive lines in the cable,and are discussed later

Hardware Flow Control ^ RTS stands for Request To Send^ ^ This line and the CTS line are used when"hardware flow control" is enabled in both theDTE and DCE devices^ 

The DTE device puts this line in a ‘mark’ conditionto tell the remote device that it is ready and able toreceive data

Hardware Flow Control ^ RTS^ ^ If the DTE device is not able to receive data (typicallybecause its receive buffer is almost full), it will put thisline in the ‘space’ condition as a signal to the DCE tostop sending data^ 

When the DTE device is ready to receive more data (i.e. afterdata has been removed from its receive buffer), it will placethis line back in the ‘mark’ condition

Software Flow Control ^ Xon/Xoff or "software" flow control^ ^ Software flow control uses special control characterstransmitted from one device to another to tell the otherdevice to stop or start sending data^ 

DC1 (0x11) means start (transmitter on -- Xon)  DC3 (0x13) means stop (transmitter off -- Xoff)  With software flow control the RTS and CTS lines arenot used.

Handshaking Signals ^ DTR stands for Data Terminal Ready^ ^ Intended function is very similar to the RTS line except ithas to do with the communications equipment^ ^ RTS/CTS is end-to-end flow control ^ DSR (Data Set Ready) is the companion to DTR inthe same way that CTS is to RTS