Design Aids - Control an I2C Slave Device
from PSoC Express
April 19, 2006
Document No. 001-17402 Rev. *A
Author: David Cooper
Associated Project: Yes
Associated Part Family: CY8C21xxx, CY8C24x23A, CY8C24x94, CY8C27x43, CY8C29x66
GET FREE SAMPLES HERE
Software Version: PSoC Express™ Express Pak 1
Associated Application Notes: AN2261, AN2351
Application Note Abstract
With the addition of the External I2C™ Slave-Control driver, PSoC Express provides all of the necessary design elements for
the implementation of an I2C master device to fulfill monitoring and control functions in master/slave system designs using the
industry standard I2C bus. This Application Note is a follow up to AN2351, “Implementing Inter-Device Communication with
PSoC Express.” Here in we introduce the External I2C Slave-Control driver, which allows you to write to an I2C slave device,
be it a commodity sensor or a PSoC Express custom slave design, as well as discuss the External I2C Slave-Monitor driver.
Two example projects are presented that demonstrate the control and monitoring of an I2C slave by a PSoC Express design.
A trend in embedded system design is to divide and
conquer; that is to take a complex system design and break
it into discrete tasks that can be implemented in a
relying on a dependable
communication scheme to tie the components together.
When viewed individually, each of the components do little
or nothing, but when combined in a system using a well-
defined communications scheme, each device becomes an
integral part of the larger system. Using the PSoC Express
External I2C Slave drivers, your PSoC Express design can
easily fill the role of a master device to integrate the
functionality of multiple design components.
PSoC Express now provides two drivers that enable a
design to write to and read from I2C-capable slave devices.
The External I2C Slave-Control driver allows you to
write to a specified I2C address and offset, either