CYIWOSC1300AA
PRELIMINARY
• An acknowledge or no-acknowledge bit: This is the way for
the receiver (either the slave in write mode or the master in
readmode)toacknowledgethedatasentbythetransmitter.
The master generates the acknowledge clock pulse. When
the receiver pulls down the data line during that clock pulse,
the previous byte is acknowledged. When the data line is
not pulled down, the previous byte is NOT acknowledged.
A no-acknowledge is used to terminate a read or a write
sequence.
7.0
Serial Bus Description
The CYIWOSC1300AA interfaces with an external ISP
through a bidirectional serial command interface and a unidi-
rectional parallel data bus, in addition to a small number of
direct-control pins for frame, line and flash synchronization, for
device reset, for regulator configuration, and for the standby
mode.
The device requires an external clock oscillator (up to 27 MHz)
and a small number of strap connections to configure the
device.
• An 8-bit message (register address or data byte): One data
bit is transferred during each clock pulse. Data is always
transferred 8 bits at a time, starting with the MSB bit, during
8 consecutive clock cycles, followed by an acknowledge bit.
All I/O is CMOS IO with a programmable voltage range of
1.7–3.1V. All logic inputs have no leakage when they are
driven high while the chip supply voltage is low/off.
• A stop bit: The stop bit is defined as a LOW-to-HIGH
transition of the data line while the clock line is HIGH.
The device control interface is compatible with the Philips I2C
version 2.1 bus specification.
Except for the start and the stop bit, the data pin must always
be stable during the HIGH period of the serial interface clock.
It can only change when the clock is LOW.
The device acts as a slave only, requiring the system host to
act as the master. The device address can be selected from
two addresses that are hard-wired on the chip, enabling the
use of up to two identical devices simultaneously on the same
bus. The address selection happens with the CMD_A pin.
7.1
16-bit Write Access Procedure
A 16-bit write access is performed as follows
1. The master sends a Start bit.
CMD_A
Internal I2C Device Address
0
1
0xD2
0xD4
2. The master sends the 8-bit slave device address. The last
bit will be set to “0”.
3. The slave acknowledges the address by sending the ac-
knowledge bit back to the master.
The D2h address is the same slave address as used on
Cypress's programmable clock chips. This address does not
collide with the most obvious competing image sensor chips.
4. The master sends the 8-bit register address to which a write
should take place.
The D4h address is an arbitrary modification of the device
address to allow two identical sensor chips on the same
command bus.
5. The slave sends an acknowledge bit to indicate that the
register address was correctly received.
6. The master then transfers the data, 8 bits at a time. Inter-
nally, all register addresses have 16 bits, thus requiring two
8-bit transfers to write to one register.
The command interface supports writing to and reading from
16-bit internal registers, with 8-bit address locations, at speeds
of up to 400 kbits/s.
7. The slave acknowledges every 8-bit word.
The interface clock CMD_CLK and the address pin CMD_A
are driven by the serial interface master. The data pin is pulled
up to a positive supply voltage by an off-chip resistor and can
be pulled down both by the master and the slave device. The
serial interface protocol determines which device can drive the
data pin at any given time.
8. After every two 8-bit words written, the register address is
automatically incremented, so that the next 16 bits are writ-
ten to the next register address.
9. Steps 6, 7, and 8 are repeated for writing batches of data
on consecutive register addresses.
Data transfers to/from each 16-bit register can be 16 bits at
once, the upper 8 bits, or the lower 8 bits. After any complete
16-bit transfer the internal register address is incremented
automatically, anticipating the next similar transfer. There is no
auto address increment for 8 bit transfers.
10.The master stops the access by sending a Start or a Stop
bit.
Figure7-1 gives an example of a 16-Bit write access (value
0x310b) to register 0x2a.
The bus is idle when both the CMD_CLK and CMD_D pins are
HIGH. Control of the bus is initiated by a start bit (beginning of
an access) and the bus is released again with a stop bit (end
of the access). Only the master can generate these signals.
7.2
16-bit Read Access Procedure
A typical 16-bit read access is performed as follows:
1. The master sends a Start bit.
The transmission protocol defines several transmission
codes:
2. The master sends the 8-bit slave device address. The last
bit will be set to “0” because the register address will be
written first.
• A start bit: The start bit is defined as a HIGH-to-LOW
transition of the data line when the clock line is HIGH.
3. The slave acknowledges the address by sending the ac-
knowledge bit back to the master.
• The slave 8-bit address: The 7 MSB bits contain the device
address: 0xD4 when CMD_A is HIGH and 0xD2 when
CMD_A is LOW. The LSB bit of this address determines
whether the request is a write (value is “0”) or a read (value
is “1”).
4. The master sends the 8-bit register address to which a read
should take place.
Document #: 38-19008 Rev. *A
Page 11 of 31