******************************************************************************* ** Copyright © 2008, Xilinx, Inc. ** This design is confidential and proprietary of Xilinx, Inc. All Rights Reserved. ******************************************************************************* ** ____ ____ ** / /\/ / ** /___/ \ / Vendor: Xilinx ** \ \ \/ Version: 1.0 ** \ \ Filename: iic_dvi_controller_readme.txt ** / / ** /___/ /\ ** \ \ / \ ** \___\/\___\ ** **Device: **Purpose: **Reference: ** ******************************************************************************* ** ** Disclaimer: LIMITED WARRANTY AND DISCLAIMER. These designs are ** provided to you "as is." Xilinx and its licensors make and you ** receive no warranties or conditions, express, implied, ** statutory or otherwise, and Xilinx specifically disclaims any ** implied warranties of merchantability, noninfringement, or ** fitness for a particular purpose. Xilinx does not warrant that ** the functions contained in these designs will meet your ** requirements, or that the operation of these designs will be ** uninterrupted or error free, or that defects in the Designs ** will be corrected. Furthermore, Xilinx does not warrant or ** make any representations regarding use or the results of the ** use of the designs in terms of correctness, accuracy, ** reliability, or otherwise. ** ** LIMITATION OF LIABILITY. In no event will Xilinx or its ** licensors be liable for any loss of data, lost profits, cost ** or procurement of substitute goods or services, or for any ** special, incidental, consequential, or indirect damages ** arising from the use or operation of the designs or ** accompanying documentation, however caused and on any theory ** of liability. This limitation will apply even if Xilinx ** has been advised of the possibility of such damage. This ** limitation shall apply notwithstanding the failure of the ** essential purpose of any limited remedies herein. ** ******************************************************************************* Application: iic_dvi_controller ------------------------------- This IIC example consists of a polled mode design which uses the Xilinx IIC peripheral in dynamic mode along with its low-level driver to access the IIC interface of the DVI Controller (Chrontel CH7301C) on the ML501/ML506 board. The Version ID (offset 0x4A) and the Device ID (offset 0x4B) are read over the IIC bus. Note that with auto-incrementing of addresses enabled both registers are read by addressing offset 0xCA instead of 0x4A and specifying a read of 2 locations. The DVI Controller is accessible at address 0x76 on the IIC_SCL_VIDEO, IIC_SDA_VIDEO IIC chain. The three devices on this bus are the DVI Controller, the DVI Connector's IIC pins, and the VGA input ADC. CONFIG Switch Settings: 00010101 1. Connect the Host PC to the ML501 (J1 header) using a PC-IV or Platform USB JTAG cable 2. Connect the Host PC serial port to the ML501 serial port using a null modem cable and launch a terminal program on the Host (eg. TeraTerm) with the settings: 9600 baud, 8-N-1, No flow control 3. Launch XPS and open the ML501 EDK project (ml501_bsb_system.xmp) 4. Launch a Shell window using XPS menu selection: Project > Launch EDK Shell 5. Download bitstream in shell window by typing: impact -batch etc/download.cmd 6. XPS menu selection: Debug > Launch XMD 7. At XMD% prompt type: cd microblaze_0/code 8. At XMD% prompt type: rst 9. At XMD% prompt type: dow iic_dvi_controller.elf 10. At XMD% prompt type: con Serial Port Output: ------------------- IIC Dynamic mode DVI CONTROLLER access example - Calling DVI CONTROLLER ReadByte Routine BytesRead = 2 ReadBuffer[0] = 95 ReadBuffer[1] = 17 Test passed