Professional Documents
Culture Documents
Abstract - I2C abbreviation is Inter Integrated Circuit. It is a passed from the slave to the master. Noisy data from the sensor
serial bus protocol found by Philips Semiconductor. I2C bus is is removed by using haar wavelet transform technique.
popular because it is simple to use. I2C protocol is used for
communicating low speed devices to processors. It is used to
enable the faster device to communicate with slower devices II.I2C SPECIFICATION
without any data loss. I2C bus controller interfaces the master
and slave devices. FPGA acts as a master and MEMS motion
I2C is a serial data transfer bus, it is 8 bit oriented . By using
sensor (1TG MPU 6050) acts as a slave. MEMS motion sensor two signal lines data transmission is done. The two signal lines
data is passed to the FPGA using I2C protocol. MEMS motion are SCL and SDA. SCL is the Serial clock line, it is
sensor has 16-bit ADCs for digitizing the accelerometer outputs. unidirectional line and SDA is a Serial data line, it is
I2C bus on FPGA gives more simplicity because it requires only bidirectional line , both lines are used to transfer the data
two wires and less number of pin connections. Hence in this between Master and Slave. There are lots of slave devices are
paper we are going to design an I2C bus protocol using Verilog connected onto the I2C bus, Slave devices are identified by its
code which interfaces FPGA board with MEMS motion sensor. unique 7 bit address. After each data transfer there is
Noisy data from the MEMS motion sensor is denoised by using acknowledgment bit sent by slave to master or vice versa, to
haar wavelet coefficients.
ensure the data is received.
Index Terms— FPGA, MEMS, I2C
III.DATA TRANSFER
I.INTRODUCTION I2C bus has three conditions namely, idle, start and stop
conditions. Three conditions are indicated by using two lines
Nowadays, more number of serial data transfer protocols namely, SDA and SCL. When I2C bus is an idle mode, both
is used for interfacing high speed and low speed peripherals. the lines are high. Master gives the begin condition, which is
The serial data communication protocols require more number SDA line makes a move from high to low while SCL line is
of pin connections in the IC (Integrated Circuit). In this smart high is appeared in Fig. 1(a). After the start condition I2C bus
world, in order to reduce the size of the device , physical size is busy. The transmitting device continuously sends the data,
of IC have to be decreased, so we require less number of pin after getting proper acknowledgement from the receiving
connection for serial data transfer. Most of the serial data device. After sending all the data, master provides the stop
transmissions are all just ‘one point to one point’ data transfer condition which is SDA line makes a transition from low to
bus systems. They use multiplexing of the data path and high while SCL line is high is shown in Fig. 1(b)
forwarding of messages to service multiple devices, so
connection become more complex. In order to reduce the
more number of pin connections, the I2C protocol was SDA SDA
introduced by Phillips [8]. I2C protocol requires only two lines
for communication with two or more devices and it can control SCL
a network of device chips with just a two general purpose I/O
SCL
pins whereas, other bus protocols require more pins to connect
devices. In this proposed system, we are using I2C bus protocol
for interfacing low speed peripheral [10] (MEMS motion Fig. 1(a) START condition Fig. 1(b) STOP condition
sensor) devices on FPGA. I2C protocol is the best bus for the
control applications, where devices may have to be added or
removed from the system. In the proposed system FPGA acting
as a Master controller and the MEMS muscle motion sensor
(1TG MPU 6050 accelerometer) acting as the slave. Data is
,(((
2017 International Conference on Innovations in Information Embedded and Communication Systems (ICIIECS)
IV.PROPOSED ARCHITECTURE acknowledgement from the slave for each byte received. In
order to stop the data transmission master generate the stop
condition.
VII .MEMS MOTION SENSOR (1TG MPU 6050) Digital data from the MEMS motion sensor [4] is given to the
The three axes accelerometer [2] acts as a MEMS motion both low pass and high pass filter. The low pass and high pass
sensor. MEMS motion sensor is shown in Fig. 5 and pin filter architecture is shown in Fig. 7(a) and Fig. 7(b). The low
description in shown in table 1 pass filter and high pass filters produce the approximation
Features coefficients and detailed coefficients respectively.
• Three-axis MEMS accelerometer[3] sensor
with 16-bit ADCs and signal conditioning
• I2C bus LPF 2 X1(n)
• MEMS technology Packaging size :4x4x0.9mm
• Operating current:500ȝA X (n)
• 400kHz Fast ModeI2C
HPF 2
X2(n)
X (n)
ܼെͳ
X X
b0=0.7071 b1=0.7071 Y (n)
Fig. 5 MEMS motion sensor
TABLE.1 PIN DESCRIPTION OF 1TG MPU +
Fig. 7(a) Low pass filter architecture
PIN DESCRIPTION
B.High pass filter architecture
VCC SupplyVoltage (2.375 v – 3.46v)
X (n) ܼെͳ
GND Ground
+
X2(n)
2 HPF output
Input
Fig. 8 Inverse wavelets transform
output
Input