Sunteți pe pagina 1din 17

Transparent connectivity

for
embedded system design

1
Abstract
 embedded system design is a topic of multidisciplinary fields..

 for embedded system design, seamless connectivity should be


between the hardware and software.

 seamless connectivity i.e. development of transparent bridge.

 Here a USB/SPI transparent bridge is used to interface an


embedded system to a PC.
2
Abstract

 The bridge consist of hardware module that transmits the


embedded system data through SPI to a PC using USB.

 A device driver for the USB/SPI bridge provides a straightforward


application programming interface to the embedded system

3
Introduction
 Some protocols, like the SPI , are used to network microcontroller
to peripheral devices .

 Many microcontrollers have integrated SPI hardware.

 The Serial Peripheral Interface Bus or SPI is a synchronous serial


data link.

 SPI bus operates in full duplex mode.

4
Introduction
 Serial peripheral interface bus communicate in master/slave mode.

The SPI bus uses four wires or logic signals.


•SCLK — Serial Clock (output from master)
•MOSI — Master Output, Slave Input (output from master)
•MISO — Master Input, Slave Output (output from slave)
•SS — Slave Select (active low; output from master)
5
Introduction

 MOSI and MISO are the two data lines that allow both the master
and slave devices to exchange data simultaneously.

The control line, slave select (SS), is activated when the master is
about to initiate a data transfer to a slave device.

6
Introduction

 In a multiple slaves system, the data and clock lines are shared by
all the slaves, but all slaves need a dedicated slave select line.
7
Introduction

 To begin a communication, the master first configures the clock,


using a frequency less than or equal to the maximum frequency the
slave device supports.

 The master then pulls the slave select low for the selection of
desired slave.
8
Introduction

During each SPI clock cycle, a full duplex data transmission occurs:

•the master sends a bit on the MOSI line; the slave reads it from
that same line

•the slave sends a bit on the MISO line; the master reads it from
that same line
 After data completion , SS to logic high. 9
Introduction
 All devices

• on a SPI bus located on the same circuit board and


permanently connected to one another.

•With USB  physically added or removed from USB at any


time.

10
Introduction
 USB establish communication between devices and host controller.

 Each host controller may provide one or more USB ports.

USB

11
Introduction
The USB uses four wires to transfer data
•VBUS and Ground to carry a 5-volt signal
• D+ and D- wires  carry the data and signaling
information

12
Introduction
 USB does not have a clock signal.actually clock signal is embedded
into the data stream.

 Furthermore, a USB device requires a device driver to access the


USB device through the facilities of the USB host and the PC’s
operating system.

 The driver should provide a straightforward interface to the device.

13
System overview
 USB/SPI bridge system have three basic modules:-
1) Target system( embedded system)
2) Target application (PC & its OS)
3) USB/SPI bridge

 The USB/SPI bridge module links the target system


and target application module.

 The target application module is completely hidden by


the USB/SPI bridge module.

 The USB/SPI bridge module consists:-


a) microcontroller
b) USB node controller Fig-Block diagram of USB/SPI
c) device driver bridge system
14
System overview
 The USB/SPI Bridge creates a transparent link between an SPI
device and the application layer of a PC.

 The hardware module of USB/SPI bridge recieves data via


SPI from an embedded system a PC over USB

 Data may also flow in the opposite direction.

 The bridge device driver completes the link to the application


layer of a PC..
15
Conclusion
 The bridge consists of a hardware module that transfers data from
an embedded system through the SPI to a PC using a USB.

 The USB/SPI Bridge allows transparent connectivity between an


embedded system and a personal computer.

 The design of a transparent USB/SPI bridge will aid in the design of


embedded systems.

16
References
1. “Introduction to Serial Peripheral Interface,” Embedded.com,
2007
2. USBN9603 Datasheet:
http://www.national.com/ds.cgi/US/USBN9603.pdf
3. Universal Serial Bus Specification,
Revision 1.1, September 23, 1998:
http://www.usb.org/developers/docs/usbspec.zip
4. http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus
5. http://en.wikipedia.org/wiki/Usb

17

S-ar putea să vă placă și