Paper5 PDF
Paper5 PDF
236
IV. LIMITATIONS • Keeping the operating frequencies of designed APB
• By the design I2C operating frequency is much master compatible with I2C.
greater than designed APB master clock frequency. The other ways to perform Reading Operations-
I2C can overwrite the same address multiple times.
In this scenario, designed APB master block sends • Time Based: APB reads in a particular time interval
the updated data only and data transfer rate limits by which is defined by user. APB reads the data at the
the operating frequency of the designed APB master. address of interfaced module and updates all register
in its internal memory.
• Designed APB master does not send the address
specified by the I2C. It sends only data from the in- • Making I2C initiate read operation in APB.
ternal memory to the fixed addresses. This internal
memory updates through the I2C any time. VI. RESULT
Figure 4 shows input data to the I2C bus is being replicated at
• When I2C writes the 4 successive data in the internal
the output slave device, meeting all the protocols and con-
memory of designed APB master then only designed
straints. In this data changes in-between high edges of clock.
APB master writing operation initiates. Data flows
Data transfer takes place between start and stop. Start condi-
from the I2C to APB and from APB to I2C.
tion is depicted by a high to low transition on the SDA line
• I2C bus will hang even if the single device on the bus while SCL is high whereas Stop condition is marked by low to
stops operating. The operation can be restored by cy- high transition on the SDA line while SCL is high. When Start
cling the power to the bus. condition is matched with the following data transfer protocol
- Start bit, Device address, R/W bit(0), Acknowledge, Register
V. FUTURE WORK Address, Acknowledge, Data, Acknowledge, Data (Auto In-
As proposed care has been taken to match data transfer crement), Acknowledge, Data (Auto Increment), Acknowl-
speed of both the buses for better compliance. We intend to edge,……., Stop bit - I2C sends four chunks of 8 bit data seri-
design a model with added buffers at the interface to get even ally to be written on APB memory block at four consecutive
higher speed of data transfer address. APB master keeps a check on count whether all four
memory locations are updated successfully. As soon as the
Latency and chances of losing data can be decreased by- data at APB Master is updated it transfers the same 32-bit data
• Increasing the buffer length at the interface of de- to APB Slave as shown in the figure 5.
signed APB master.
237
Fig. 5. Communication between I2C and designed APB master
to APB master to APB Slave is shown while describing the [11] Chetan Sharma, Abhishek Godara, “AHB interface with SPI master by
architecture. Simulation results are verified and data transfer using verilog”, International Journal of Advances in Engineering Re-
search, 2011, Vol. No. 2, Issue No. VI, December.
from I2C master to APB slave can be clearly seen in provided
simulation results. [12] Product brochure, “National Semiconductor I2C Interface”, www.ip-
extreme.com.
As proposed care has been taken to match data transfer speed
[13] “DB-I2C-M-APB-DS-V1.1”, APB Bus I2C Master Controller, Digital
of both the buses for better compliance. We intend to design a Blocks, Inc., September 2013.
model with added buffers at the interface to get even higher
speed of data transfer.
REFERENCES
[1] Enhanced Universal Serial Communication Interface (eUSCI) – I2C
Mode, SLAU425B–August 2012–Revised February 2013, Texas In-
struments Incorporated.
[2] M. Alassir, J. Denoulet, O. Romain & P. Garda “A SystemC AMS
Model of an I2C Bus Controller”, IEEE.
[3] J. J Patel, B.H. Soni, “Design and Implementation of I2C Bus Controller
Using Verilog” ISSN: 0975 – 6779| NOV 12 TO OCT 13 | VOLUME –
02, ISSUE - 02
[4] Philips Semiconductors: PCF 8584, I2C bus controller datasheet,
http://www.semiconductors.philips.com/acrobat/datasheets/PCF8584_4.
pdf
[5] Samir Palnitkar, Verilog HDL, second Edition.
[6] UM10204, I2C-bus specification and user manual, Rev. 4 — 13 Febru-
ary 2012, NXP Semiconductors.
[7] AMBA® APB Protocol Specification, Version: 2.0, 13 April 2010, issue
C, http://www.arm.com.
238