Projects interfacing to aardvark adapter – Xilinx ML403 User Manual

Page 15

Advertising
background image

ML403 Board Information

XAPP979 (v1.0) February 26, 2007

www.xilinx.com

15

R

low_level_dynamic_eeprom: This project transmits and receives data using the low level (L0)
software driver. The OPB IIC is the master and the 24LC04 is configured as the slave. The OPB
IIC master writes data into the 24LC04 and reads it back. This is a polled mode example.c

Projects interfacing to Aardvark Adapter

multi_master: This project transmits and receives data using the high level (L1) software
driver. The OPB IIC is an IIC master and the IIC in the Aardvark is a master. The Microchip
24LC04B is configured as a IIC slave. The WP pin of the 24LCO4 is hardwired to ground on the
ML403. The interrupt mode is used. The IIC master in the Aardvark Adapter writes the data to
the MicroChip 24LC04B with the No Stop option enabled. Any attempts to write data from the
OPB IIC master results in a Bus Busy status. The Aardvark Adapter releases the bus by
executing the FREE BUS command. When the bus is free, the OPB IIC master initiates a bus
transaction.

repeated_start: This project transmits and receives the data using the high level (L1) driver.
The IIC devices on the ML300/ML310/ML410 boards do not support the repeated start option.
The ML403 OPB IIC is configured as a master and the Aardvark Adapter IIC is configured as a
IIC slave. The OPB IIC writes the data to the Aardvark IIC in multiple transactions with the
repeated start option enabled. The external IIC device slave address is a 7 bit address defined
by SLAVE_ADDRESS. The number of bytes sent and received is defined by SEND_COUNT
and RECEIVE_COUNT.

Figure 17

shows the repeated start example.

Specify 0x70 as the Address. The SPI Control is not used. The transaction log shows 16 write
and 16 read transactions at address 70.

slave: This project transmits and receives the data using the high level (L1) driver. The ML403
OPB IIC is configured as a slave and the Aardvark Adapter IIC is configured as a IIC master.
The Aardvark Adapter IIC writes the data in test_data to the OPB IIC and reads it back.

Figure 17: Repeated Start Example

X979_17_012907

Advertising