DOC PREVIEW
U of U CS 3710 - DS2432 Communicator

This preview shows page 1-2-3-24-25-26 out of 26 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 26 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 26 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 26 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 26 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 26 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 26 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 26 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

DS2432 CommunicatorKen ChapmanXilinx Ltd6thApril 2006Rev.1PicoBlaze DS2432 Communicator 2Limited 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, non-infringement, 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 not-withstanding the failure of the essential purpose of any limited remedies herein.This design module is not supported by general Xilinx Technical support as an official Xilinx Product.Please refer any issues initially to the provider of the module.Any problems or items felt of value in the continued improvement of KCPSM3 or this reference design would be gratefully received by the author.Ken ChapmanSenior Staff Engineer – Spartan Applications Specialistemail: [email protected] author would also be pleased to hear from anyone using KCPSM3 or the UART macros with information about your application and how these macros have been useful.PicoBlaze DS2432 Communicator 3Design OverviewThis design will allow you to investigate the Dallas Semiconductor DS2432 device which is a 1k-Bit Protected EEPROM with internal SHA-1 Engine. This device has an interesting 1-Wire interface which is used to provide both power and bidirectional communication. The design employs PicoBlaze to implement all the 1-wire communication protocol and provide a simple user interface on your PC via the RS232 serial port (use HyperTerminal or similar). Some of the DS2432 commands are fully supported whilst others can be investigated using simple byte write and byte read options.This design occupies under 5% of the XC3S500E device. It is hoped that the design may be of interest to anyone interested in using the DS2432 or other 1-wire devices in their own designs. PicoBlaze can easily be reprogrammed in this design using the JTAG_loader supplied with PicoBlaze. HyperTerminal(or similar)Dallas SemiconductorDS2432 1k-Bit Protected 1-WireEEPROM with SHA-1 EngineUSB cable for downloading the design or changing the PicoBlaze program.Hint – It is recommended that you obtain a copy of the DS2432 data sheet. Ideally print this document to refer to whist using this design and reading this description. It is particularly useful to have the flow charts available.Hint– XAPP780 provides a design which can be used to provide copy protection for your own designs by exploiting the special properties of the DS2432.RS232 Serial Cable. Cable connects J9 on the board to your PC serial port. For this you will need a male to female straight through cable (critically pin2-pin2, pin3-pin3 and pin5-pin5).PicoBlaze DS2432 Communicator 4Using the Reference DesignAlternatively use iMPACT manually to configure the XC3S500E device on the Spartan-3E Starter Kit via the USB cable with the BIT file provided.Hint– Stop now and take time to read of the DS2432 data sheet and grasp the fundamentals of the device. It is hoped that this design will help bring the data sheet to life and that you should have many “oh, that’s what that means” moments as a result Your terminal session should indicate the design is working with a version number and simple menu.Configuring the Spartan-3E ‘The Quick Way’!Unzip all the files provided into a directory. Connect a suitable serial cable (see previous page).Start a HyperTerminal (or similar) session using 9600 baud, 1 stop and no parity (see following pages). Check you have the USB cable connected and the board is turned on.Double click on the file ‘install_PicoBlaze_DS2432_communicator.bat’.This should open a DOS window and run iMPACT in batch mode to configure the Spartan device. This document is really in two sections. The first covers how to use the design ‘AS IS’ and in the process provides an introduction to the features andoperation of the DS2432 device. The second section covers in some detail the actual design implementation from both the hardware and PicoBlaze perspectives. It is recommended that you use the design first to be come familiar with what it offers to make the second section easier to understand.PicoBlaze DS2432 Communicator 5Serial Terminal Setup An RS232 serial link is used to communicate with the design. Any simple terminal program can be used, but HyperTerminal is adequate for the task and available on most PCs. A new HyperTerminal session can be started and configured as shown in the following steps. These also indicate the communication settings and protocol required by an alternative terminal utility. 1) Begin a new session with a suitable name.HyperTerminal can typically be located on your PC at Programs -> Accessories -> Communications -> HyperTerminal.2) Select the appropriate COM port (typically COM1 or COM2) fromthe list of options. Don’t worry if you are not sure exactly which one is correct for your PC because you can change it later.3) Set serial port settings.Bits per second : 9600Data bits: 8Parity: NoneStop bits: 1Flow control: NoneGo to next page to complete set up…PicoBlaze DS2432 Communicator 6HyperTerminal Setup 4 - Disconnect5 - Open the properties dialogueTo select a different COM port and change settings (if not correct).6 - Open Settings7 - Open ASCII Setup Ensure boxes are filled in as shown. The design will echo characters that you type so you do notneed the ‘Echo typed characters locally’ option.The design transmits carriage return characters (ODHEX) to indicate end of line so you doneed the ‘Append line feeds to


View Full Document
Download DS2432 Communicator
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view DS2432 Communicator and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view DS2432 Communicator 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?