Xilinx ML403 User Manual

Browse online or download User Manual for Unknown Xilinx ML403. Xilinx ML403 User's Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 33
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
XAPP979 (v1.0) February 26, 2007 www.xilinx.com 1
© 2007 Xilinx, Inc. All rights reserved. All Xilinx trademarks, registered trademarks, patents, and further disclaimers are as listed at http://www.xilinx.com/legal.htm. PowerPC is
a trademark of IBM Inc. All other trademarks and registered trademarks are the property of their respective owners. All specifications are subject to change without notice.
NOTICE OF DISCLAIMER: Xilinx is providing this design, code, or information "as is." By providing the design, code, or information as one possible implementation of this feature,
application, or standard, Xilinx makes no representation that this implementation is free from any claims of infringement. You are responsible for obtaining any rights you may
require for your implementation. Xilinx expressly disclaims any warranty whatsoever with respect to the adequacy of the implementation, including but not limited to any warranties
or representations that this implementation is free from claims of infringement and any implied warranties of merchantability or fitness for a particular purpose.
Summary This application note describes how to build a reference system for the On-Chip Peripheral Bus
Inter IC (OPB IIC) core using the IBM PowerPC™ 405 Processor (PPC405) based embedded
system in the ML403 Embedded Development Platform. The reference system is Base System
Builder (BSB) based.
An IIC primer is given and an OPB IIC register reference is provided. The Xilinx Microprocessor
Debugger (XMD) commands are used for verifying that the OPB IIC core operates correctly.
Several software projects illustrate how to configure the OPB IIC core, set up interrupts, and do
read and write operations. Some of the software projects interface the OPB IIC to the
MicroChip 24LC04B serial EEPROM with an IIC interface, while others interface to the
TotalPhase Aardvark Adapter, which provides IIC master and slave functionality. The procedure
for using ChipScope™ to analyze OPB IIC functionality is provided. The steps used to build a
Linux kernel using MontaVista are listed. Simulation output files for analyzing basic IIC
transactions are provided.
Included
Systems
This application note includes one reference system:
www.xilinx.com/bvdocs/appnotes/xapp979.zip
The project name used in xapp979.zip is ml403_ppc_opb_iic.
Required
Hardware/Tools
Users must have the following tools, cables, peripherals, and licenses available and installed:
Xilinx EDK 8.2.02i
Xilinx ISE 8.2.03
Xilinx Download Cable (Platform Cable USB or Parallel Cable IV)
Monta Vista Linux v2.4 Development Kit
Modeltech ModelSim v6.1d
ChipScope v8.2
Application Note: Embedded Processing
XAPP979 (v1.0) February 26, 2007
Reference System: OPB IIC Using the
ML403 Evaluation Platform
Author: Paul Glover, Ed Meinelt, Lester Sanders
R
Page view 0
1 2 3 4 5 6 ... 32 33

Summary of Contents

Page 1 - ML403 Evaluation Platform

XAPP979 (v1.0) February 26, 2007 www.xilinx.com 1© 2007 Xilinx, Inc. All rights reserved. All Xilinx trademarks, registered trademarks, patents, and

Page 2 - IIC Primer

ML403 Board InformationXAPP979 (v1.0) February 26, 2007 www.xilinx.com 10RThe resistors are located on the board as shown in Figure 12.Figure 12: ML4

Page 3 - X979_05_022307

ML403 Board InformationXAPP979 (v1.0) February 26, 2007 www.xilinx.com 11RIf additional IIC devices are connected to the bus via the expansion header

Page 4 - Specifics

ML403 Board InformationXAPP979 (v1.0) February 26, 2007 www.xilinx.com 12RFigure 14 shows the FPGA pins driving the IIC Bus.TotalPhase Aardvark Adapt

Page 5 - OPB IIC Registers

ML403 Board InformationXAPP979 (v1.0) February 26, 2007 www.xilinx.com 13RFigure 15 shows the Aardvark Control Center GUI.Interfacing to the OPB IIC

Page 6 - Transmit FIFO Reset

ML403 Board InformationXAPP979 (v1.0) February 26, 2007 www.xilinx.com 14R3. Invoke XMD and connect to the MicroBlaze processor by the following comm

Page 7

ML403 Board InformationXAPP979 (v1.0) February 26, 2007 www.xilinx.com 15Rlow_level_dynamic_eeprom: This project transmits and receives data using th

Page 8 - Microchip 24LC04

Running the ApplicationsXAPP979 (v1.0) February 26, 2007 www.xilinx.com 16RFigure 18 shows the slave example. The message is in transmit.txt, and is

Page 9 - Information

Running the ApplicationsXAPP979 (v1.0) February 26, 2007 www.xilinx.com 17RSelect dynamic_eeprom and right click to build the project. If more than o

Page 10 - Figure 12: ML40x Resistors

Using ChipScope with OPB IICXAPP979 (v1.0) February 26, 2007 www.xilinx.com 18RUsingChipScope withOPB IICTo facilitate the use of ChipScope to analyz

Page 11 - Figure 13: Expansion Header

Using ChipScope with OPB IICXAPP979 (v1.0) February 26, 2007 www.xilinx.com 19R5. Figure 23 shows the GUI for making net connections. Click Next to m

Page 12 - TotalPhase Aardvark Adapter

IntroductionXAPP979 (v1.0) February 26, 2007 www.xilinx.com 2RIntroduction This application note accompanies a reference system built on the ML403 de

Page 13 - X979_16_012907

Using ChipScope with OPB IICXAPP979 (v1.0) February 26, 2007 www.xilinx.com 20RThe waveform viewer is more readable when buses rather than discrete s

Page 14 - Software Projects

Linux KernelXAPP979 (v1.0) February 26, 2007 www.xilinx.com 21R13. ChipScope results are analyzed in the waveform window as shown in Figure 25. Thewa

Page 15 - X979_17_012907

Linux KernelXAPP979 (v1.0) February 26, 2007 www.xilinx.com 22R5. Under OS and Libraries, set the entries as shown in Figure 26.Verify that the targe

Page 16 - Applications

Linux KernelXAPP979 (v1.0) February 26, 2007 www.xilinx.com 23R6. Click Connect_Periphs and add the OPB_INTC, OPB_SYSACE, OPB_IIC, OPB_SPI,OPB_IIC, a

Page 17 - X979_20_012907

SimulationXAPP979 (v1.0) February 26, 2007 www.xilinx.com 24Rcommand from the command prompt:impact -batch etc/download.cmd12. Invoke XMD. From the m

Page 18 - ChipScope with

SimulationXAPP979 (v1.0) February 26, 2007 www.xilinx.com 25RIn most cases, after data is transmitted, the test waits for an interrupt from the OPB I

Page 19 - X979_23_012907

SimulationXAPP979 (v1.0) February 26, 2007 www.xilinx.com 26RThe simulation runs for 2000 ns as shown in Figure 29. There are 3 sections in the simul

Page 20 - X979_24_022307

SimulationXAPP979 (v1.0) February 26, 2007 www.xilinx.com 27RIn the first test, which is shown in Figure 30, the OPB IIC registers are read to verify

Page 21 - X979_25_012907

SimulationXAPP979 (v1.0) February 26, 2007 www.xilinx.com 28RFigure 31 provides the Arbitration Lost test code. This pseudo-code can be tracked in th

Page 22 - Figure 26: BSP Settings

SimulationXAPP979 (v1.0) February 26, 2007 www.xilinx.com 29RThe second test, shown in Figure 32, runs from 575 s to 790 s., Ths master, AA, receiv

Page 23 - X979_27_012907

IntroductionXAPP979 (v1.0) February 26, 2007 www.xilinx.com 3RFigure 4 shows the format of the data transfer of two bytes on the IIC bus, beginning w

Page 24

SimulationXAPP979 (v1.0) February 26, 2007 www.xilinx.com 30RFigure 33 provides the test code used in the simulation with the OPB IIC with the AA add

Page 25 - Figure 28: OPB IIC Simulation

SimulationXAPP979 (v1.0) February 26, 2007 www.xilinx.com 31RFigure 34 shows the third test shown in opb_iic.wlf, run from 800 - 2000 us. IIC_20 is t

Page 26

SimulationXAPP979 (v1.0) February 26, 2007 www.xilinx.com 32RFigure 35 provides the test code for simulation with IIC_AA as master.Figure 35: Test Co

Page 27

ReferencesXAPP979 (v1.0) February 26, 2007 www.xilinx.com 33RReferences DS434 OPB IIC Bus Interface (v1.02a)XAPP765 Getting Started with EDK and Mont

Page 28

Reference System SpecificsXAPP979 (v1.0) February 26, 2007 www.xilinx.com 4RFigure 6 shows the acknowledge bit on the IIC bus.Figure 7 shows bus arbit

Page 29

Reference System SpecificsXAPP979 (v1.0) February 26, 2007 www.xilinx.com 5RML403 XC4VFX12 Address MapOPB IIC RegistersTable 2 provides the register m

Page 30

Reference System SpecificsXAPP979 (v1.0) February 26, 2007 www.xilinx.com 6RStatus Register (SR)This register contains the status of the OPB IIC Bus I

Page 31

Reference System SpecificsXAPP979 (v1.0) February 26, 2007 www.xilinx.com 7RTable 5 provides a register description of the Interrupt Status register.3

Page 32

Reference System SpecificsXAPP979 (v1.0) February 26, 2007 www.xilinx.com 8RConfiguring the OPB IIC CoreFigure 8 shows how to specify the values of IIC

Page 33 - Revision

ML403 Board InformationXAPP979 (v1.0) February 26, 2007 www.xilinx.com 9Ris ‘1010 for read and write operations. The A2, A1 bits are dont cares. The

Comments to this Manuals

No comments