This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ADS5282 Serial Register Write

Expert 2370 points
Other Parts Discussed in Thread: ADS5282, ADS5282EVM

Hi,

I am trying to interface ADS5282 with Altera FPGA via HSMS connector. I am wondering how can I write ADS5282 serial register ?

I have seen SPI control software but I don't have any USB to connect ADS5282 to PC. 

What other options are there ?

Thanks.

  • Hi,

    You're using the ADS5282 *EVM* with the Altera development platform?  That EVM only has the three signals for the SPI register space (SCLK, SDATA, SEN) driven by the USB device that is on the EVM, so there would have to be a PC conencted by USB to run the ADC SPI Interface GUI.   (And - that SPI GUI installer needs Windows XP or else there are some special instructions needed to make the GUI run on Windows 7.)   Or else program the FPGA to operate with the EVM using only the default power-up mode of the ADC so that no SPI register writes are needed.

    If you must do SPI register writes, you could program a state machine in your FPGA to drive the SPI signals to the ADC to write your specific register writes, but then you would have to do some soldering on the EVM to disconnect the USB device and wire in the signals from the FPGA board. 

    Newer EVMs than this one usually had zero-ohm resistors in the SPI lines so that with a little bit of soldering the SPI lines could be driven through the connecter from the FPGA board - but this EVM did not include such an option.

    Regards,

    Richard P.

  • Hi Richard,

    Yes, I am using ADS5282 EVM with the Altera platform.

    I tried following TI ADC SPI 5p2 installation for Windows 7.doc dealing with the driver installation for Windows 7 but I can't install the software, it says 'can't complete the device driver installation wizard'.

    Another thing, I used some old USB type B connector with the EVM found in my store.

    Any other suggestion to make it work for Win 7 ?

    Thanks.

  • Hi,

    I tried with XP but the USB port doesn't even try to install the driver.

    I am using standard USB type B connector which is not shipped with the EVM.

    Can you please help ?

    Thanks.

  • Will I be getting an answer on this?

  • Apologies - been out on travel until yesterday.

    One other possibility just occurred to me.  Could you please take a screenshot of how hardware device manager reports the USB connection on the XP machine?  Under the Universal Serial Bus Controllers section it should show up as TI ADC SPI Interface as in the attached screenshot.  If instead of that it shows up as USB Serial Converter then the EVM got out of factory without the USB port being programmed.  Let us check this possibility first please.

    Regards,

    Richard P.

  • Hi Richard,

    Attached is the screenshot. You can see it shows as USB Serial Converter

    I tried with 2 ADS5282EVM and both show the same thing.

    One more thing about the setting: I just applied +5V at JI and it's return to J2.

    Thanks.

    BAS

  • Hi,

    That is the root of the problem then - the USB device on the EVM was not programmed during manufacture before the EVM was stocked for sale.  We had one of these EVMs show up in the field unprogrammed earlier this year and I had all the stock pulled and returned to us so that the programming could be done for sure, but apparently yours had already been shipped to you.  Once the EVMs are produced they are kitted up and put into stock and there is no way after that to identify what batch they came from without opening up the kit, so we pulled all the stack at that time.  The USB device on the EVM has a small non-volatile memory that can be programmed to contain USB parameters such as a vendor ID number, a product ID number, and a text string that identifies what the ESB port is that Windows can use to know what that USB port is.    The SPI GUI looks for a USB port with that text string to talk to.

    Please take a look at this thread on the forum: 

    http://e2e.ti.com/support/data_converters/high_speed_data_converters/f/68/p/345453/1209288.aspx#1209288

    In that thread is all that is necessary to fix the problem.  There is a small utility program called Mprog that is used to program the USB device.  Also in that zip file is the template file to use in programming the EVM, and a screen shot of how to run the programming utility.  It is very fast and simple.  With the USB of the powered up EVM plugged into the PC, run Mprog, apply the proper template to the EVM, and hit the lightning bolt icon to do the programming.    Then the EVM should be ready to use.  Unzip the file to your machine and change the file extensions as mentioned in that posting.

    If you do not wish to do the programming on your end, we could have you return the EVMs to us adn we could do the programming here and then return them to you - but that would take some time for shipping of course.

    Regards,

    Richard P.

  • Hi,

    It didn't work, says 'No Device Found'. You can see the attached snapshot. You can see USB Serial Converter under USB Controllers at the same time but still it says no device found. 

    Yes, I used ADS5545 EVM template. 

    When I did scan using MProg, it says,

    No. of Black Devices = 0; No. of Programmed Devices = 0

    What should I do now ? 

    Thanks.

  • Hi,

    Are you using the XP machine for running Mprog?  And have you installed the SPI GUI on that XP machine?  I am just trying to get to a stable point that we can either see that the USB chip is programmed the way we want it or do the programming and then move to the issue of making it all work on Windows7. 

    I just powered up one of these EVMs on a Windows 7 machine and ran Mprog.  But - you have to cycle the USB port (unplug and plug back in) for Windows to read the USB info again and see the new programming.  And that is when on my Windows7 machine i get a problem - Windows can't associate a driver for the EVM.    But if i carry the EVM to an XP machine it all works fine - but on that machine i know the drivers i want are there because the GUI is installed on that machine. 

    Let me know please if with the GUI installed on the XP machine are you able to get Mprog to see the EVM.  If not - i will see if i can have two replacements sent that i know are programmed.    About when were these two EVMs delivered to you so i can try to correleate that with the last batch that we had built, please?

    Regards,

    Richard P.

  • Hi Richard,

    I was using XP for running Mprog and SPI GUI as well.

    In my case, I successfully used Win 7 to program the USB chip. After that I was able to use SPI GUI on XP machine.

    One thing I would like to mention so that other users know this beforehand. As soon as I inserted USB to Win 7 machine, my laptop shows blue screen for a while then came back. I unplugged the USB and used docking station USB Port to program the chip. It was successful but later I realized some of the folders got deleted which I couldn't recovered. 

    Anyways, now I can write serial register using SPI tool.

    I appreciate your help.

    Thanks.