contact us
shenzhen office :
zip code: 518104
tel : ( 86)755-274666816
fax : ( 86)755-29697112
url: 金沙js9线路中心-金沙app下载大厅
e-mail:
r & d center: building 101 ,xin feng yuan, center road,shajing ,shenzhen,gd ,prc
factory add: 1-3 floors, building a. fufang technology park, fuyong, baoan district, sz, gd, p.r.c.
hk office :
tel: (852)21873989
fax: (852)21873986
welcome to contact us!
using a serial bus in a system has many advantages over a parallel bus.
1. lower component cost
2. smaller printed circuit board
3. simplified design
4. typically, lower power consumption
the following table provides a quick overview comparing these serial buses:
these three serial buses are described in the following sections.
take place between the bus master and slaves. data transfers directly between two slave devices (flyby
transfers) are not allowed. the spi bus master signals are shown below.
sck spi bus clock output by spi bus master
so output data from bus master
master outputs an individual device select signal for each spi device slave.
figure 2.2 is an example of an spi read bus cycle of a spansion spi flash. for spansion spi devices,
the bus cycle events are as follows:
1. cs# is asserted low to select the flash.
2. the spi read command is send.
3. the internal 24-bit flash memory address is send.
4. the first flash data byte is read out.
in figure 2.2 at the left of the sck signal are shown the options ofmode 0andmode 3. depending on the
system sck should be high (mode3) when idle. in other systems sck it should be low (mode0) when idle.
in both mode 0 and 3 data is clocked in on the rising edge of clock and out on the falling edge of clock.
the spi bus is a loose standard. some devices can have a reversed sck polarity. note that some spi
devices can be connected in a daisy chain manner, but again this is not a requirement of the spi standard.
of the 2nd spi and so on. this paper does not discuss this. note that, like with jtag, none of the daisy
chained devices would have independent access to the bus master.
3. i2c
scl spi bus clock.
sda data
i2c bus has only two signals: scl and sda. they are both bi-directional and open collector. pull-up resistors
on scl and sda are required. scl is used for clock and wait. sda is used for address and data since there
is only one data line full-duplex cannot be supported.
figure 3.1 shows an example i2c system is shown below with two master/slave devices and two slave only
devices. the i2c bus does not have device select signals, but selects an i2c device by sending a device
select byte. therefore, all i2c devices must be preprogrammed with a unique i2c bus address before they
are used on the i2c bus. the i2c protocol supports up to 127 addressable devices.
down scl until it is ready for the next byte.
bus arbitration is done with the sda line. all of the potential bus masters simultaneously try to drive the sda
signal. when any bus master detects that they have driven a '1', but detected a '0' on the sda signal it has
was the addressed slave device.
“jtag boundary scan”. jtag is commonly used for the following applications:
1. board assembly test (verifies the connectivity of device pins to the pcb)
2. development tool (in-circuit emulator)
3. system debug (provides a “back door” into the system)
4. testing internal device circuitry (not be discussed here)
and spi can be found in both high pin count devices like microcontrollers and in low pin count devices like
a/d converters.
signals are shown below:
1. tdi (test data in) - daisy chained
2. tdo (test data out) - daisy chained
3. tck (test clock) - shared
4. tms (test mode select) - shared
5. trst (test reset) optional
connection and three jtag devices.
a jtag controller is connected at the connector and it drives tck and tdi into device #1. the tdi data
back at the jtag controller at tdo. the buses signals tms and tck control the data transfer.
4.1 jtag bus cycle
data outputs change on the falling edge of tck and data is sampled on rising edge of tck. tms and trst
are not shown. data transfers with jtag are takes more clocks than the other serial buses, because in jtag
the data must pass sequentially through the devices in the chain. see figure 4.2.
using serial buses instead of parallel buses can cut component costs, space, and power consumption. lower
system performance is typical, but could be acceptable in many applications. complete systems can be built
using either spi or i2c. jtag is typically used only during product development, manufacturing, or servicing.
colophon
no information
1529920203
jojo-tech