LM3S8962: SPI clock problem

Hello

I'm working on a project using the star LM3S8962 evaluation kit and a 4-channel analog digital converter 24-bit Texas Instruments ADS1274EVM.

I want to get the data sent by the ADC with the LM3S8962 using the SPI bus.

I have all of the example provided by the following link for my case: http://decibel.ni.com/content/docs/DOC-7701

The ADS1274EVM provides 2 pins for SPI communication: DOUT1 and SCLK.

When it becomes a clock on the SCLK pin, it starts to send data via DOUT1 pin, there is no pin slave select.

If I'm right, I don't have to connect:

-PIN SSICLK for the LM3S8962 with SCLK of the ADS1274EVM pin

-PIN SSIRX for the LM3S8962 with the pin of the ADS1274EVM DOUT1.

The ADS1274EVM is powered independently of the LM3S8962, so I connect VA WINE GND as shown on the http://decibel.ni.com/content/docs/DOC-7701page.

I write because it does not work: the ADS1274EVM sends no data given that I cannot get a clock signal of the SSICLK of the LM3S8962 pin that allows the ADS1274EVM start the conversion

I think that him 'ARM of SPI create Configuration reference VI' configures a clock that is sent through the LM3S8962 SSICLK pin, but it does not work as expected.

Can someone help me please? Thank you

Luke Y.

Hi Luke,.

I just tested the example and had no problem generating a clock on SSICLK.

I join the project I did with LV 2009 SP1. I hope that you could test and tell us if it works.

Kind regards

Tags: NI Products

Similar Questions

  • MIDI clock problem

    I'm having a problem with sending the Midi out of Logic Pro X clock. It seems that every time I have connect my computer to my audio interface and open a new project (or old), I have to go into preferences and project settings for the Midi sync and restore 'Destination' under ' passed to ' to do things correctly implemented. Is there a way to set a default value? Thank you.

    Yes... Create a new project... Configure everything as you wish... and then save it as a template via the file menu

    Now, you can use this template with everything you want, set up the way you like it... When you start a new project...

  • derived clock problem?

    I am tring to derive a clock to 25 MHz using an NI PXI-7842R and labview project will not allow exact clock

    But when I try to do the same thing for a PXI-7830R target, I'm successful.

    What is going on?

    I choose a base of 40 MHz clock

    for 25 MHz, the multiplier is 5 and the divisor is 8

    When I right click on the clock of new derivatives, I get only the possibility to enter a new frequency of the clock.

    Why doesn't the tool let me simply specify the multiplier and divisor?

    I'm using Labview version 2010

    That should work just fine.  The structure of the case will add some overhead to the total runtime of the circuit, but at 50 MHz, these costs should be minimal and you should not encounter many problems of timing.

  • Pavilion dv6 2170 clock problem after replacing the CMOS battery

    Hello world. Sorry for my bad likely English

    OK, so the problem started since I changed my laptop CMOS battery. and to be honest it wasn't whit any problem the clock when I replaced it but I if this may be the cause of another problem that later I figuered what the problem was because of the RAM.

    in any case, I changed the Rams and this problem has been resolved. I just set the clock of the BIOS and rebooted the system. After awhile I figuered that windows clock is not fair. I restarted again and saw the BIOS clock. It has been reset for 2009! even when the laptop battery and power supply are attached the BIOS and windows continues to change clock! I even changed my windows and I replaced the CMOS battery with the former, but nothing helped. It seems really strange, but I don't think it's maybe a hardware problem there a driver or something for the CMOS battery... need your help! Thank you!

    You mentioned that the BIOS has been reset for 2009? This means that there is a problem with the current or any leak and the BIOS has been "reset" back at the root of the plant. I'm afraid you have shorted something when you changed the battery not be grounded.

    Worst case is that there is physical damage to your motherboard and there is nothing you can do about it, probably broken a capacitor - who cannot hold a charge to prevent the reset of the BIOS clock.

    However, you can try this.

    Completely, unplug your computer, remove the laptop battery, etc... Then browse 'Guide' your computer for the "hard physical reset" for your CMOS. I don't know what it's like on a laptop, I only did it on desktop with riders. Be sure to follow the directions precisely.

    -Make sure you are properly grounded. touch the metal parts that is grouned before touching anything on your computer.
    -the hard reset should be done for at least 30 seconds, this ensures that the power is completely served the system. Then you can set this back.

    Try this a couple of times, first without removing the CMOS battery and 2nd time after remove CMOS battery and placing it in.

    Good luck.

    BTW, you can also try running without your new memories (if there is more than 1 stick, try them separately). In fact, I would probably try first before doing a hard reset CMOS. The reason why I didn't say earlier, it's because I have assumed that you already tried this.

  • Alarm clock problem

    If there is a problem with the alarm clock since 4.4.4 updated and it's still in 5.0.2. When I try to clangw, sound alarm clocks it opens Commander file stock not his! 4.4.4 usually after phone restart everything has worked for awhile, but now in 5.0.2 is not fixing problem. Any ideas how can I get in stock clocks sounds? Or mount it at all?

    You could erase the default values for applications in the settings-applications-all.

  • BlackBerry Smartphones Spinning clock problem

    Here, I had a problem relates to a spinning clock that always appears when I lock the keyboard.

    When I bought the first of all, it was not.

    I thought that may be due to some applications that I installed, but I have not installed these heavy applications. My 9700 memory is always around 88 mb. and I uninstalled for some of them.

    I just did a battery pull, but still it does not get rid of the spinning clock

    Your memory active cleaning? Turn it off, you do not need.

    Options > Security > advanced > garbage collection

  • After 1.4 update clock problem

    Hello

    I am a user of Palm Pre Telcel (Mexico) and I have problems with the clock on my device since the 1.4 update.

    It is always 1 or 2 minutes before every day.

    Someone knows how to fix this?

    I have network disabled time...

    Thank you!

    I replied to your other post for this problem, we try not to cross-post here, thanks.

    TreoAide

  • Skype clock problems

    Hi all. I use the latest version of Skype and is now, for some reason, running three hours behind my computer clock. [Ex; my computer say 11:00 and Skype will say that the message is sent at 08:00.]

    I get messages the same way. My friend will answer to something I said, and it will appear under mine, but also say that he has been sent three hours before. Essentially, Skype works fine it's just wildly incorrect time display. I followed a suggestion here and checked that Skype has been set on time - my computer is it. So I'm not entirely sure what's going on.

    Does anyone have a solution?

    ZephyrNocte wrote:

    That's what is said about the time: line TZ;

    * Time: TZ: UTC - 7, Server: 1461004250, Local: 1461015051

    This translates to:

    Server time: Monday, April 18, 2016 18:30:50 GMT

    Local time: Monday, April 18, 2016 21:30:51 GMT

    This means that the time on your computer is set to a wrong time zone.

    https://community.Skype.com/T5/Windows-desktop-client/chat-time-is-all-wrong/m-p/4334829/highlight/t...

    You must set the correct time zone on your computer.

    http://www.SevenForums.com/tutorials/944-time-zone-change.html

  • lm3s8962 - SPI and microSD memory

    Hello again,

    First I use LabView 2009 and its ARM corrosponding module.

    I'm trying to contact the SD card on the set of the Star (yes I put an in) using the ARM SPI functions.

    You need not use the SPI screws to access files.
    Welcome to the universe "excerpts":

    Create a new project, drag the extract and... voila:

  • Clock problem

    Instead of 'AM' or 'PM', my clock has my name!  It has apparently been so for a while, but I never noticed until I tried to set a time within an application and found that I can't indicate whether the time is AM or PM - it is still my name!

    Hey Ed :),.

    Have you tried going to

    Control Panel,
    region and language,
    by clicking on 'additional settings' in the first tab
    and go to the tab "time"?

    You can change the AM and PM tags it. It looks like someone tried trapping you and changed the registry or the application of time management so that your name will appear. I don't see why windows would by default.

    -Alex

  • HP pavillion a6720y clock problem

    The time on my HP Pavilion a6720y desktop PC display is seriously wasting time.

    I think I need to replace the internal battery, but I'm not sure if us a solution. Also, not sure where to find the battery once I find.

    Standard button battery is a CR2032.

        

  • USB8452 - how to set a clock of 20 MHz SPI Stream mode?

    Hi all
    I can't really manage set a clock of 20 MHz SPI Stream mode.

    To set how often I use this property node (see image)
    [for example to set a 1 MHz clock, I put:]

    1. Wave1.TMNG.SclkLow = 50 (500ns)
    2. Wave1.TMNG.SclkHigh = 50 (500ns)]

    And everything works fine.

    When I try to put a clock of 20 MHz instead, I put:

    1. Wave1.TMNG.SclkLow = 2.5 (25ns)
    2. Wave1.TMNG.SclkHigh = 2.5 (25ns)

    But, unfortunately, I receive a 25 MHz clock.
    I know the USB 8452 can generate a 20 MHz signal, so I think I'm doing something wrong, but honestly, I don't know what to do.
    I see that the entry for Wave1.Tmng.SclkLow/High is a U32, then perhaps it truncates my 2.5 to 2 (i.e. a 25 MHz clock), but given that the USB8452 can generate a 20 MHz signal I honestly don't see the point of this.

    Thanks for the advice/help,
    Federico

    Hi Federico,.

    as you can see in the image below, the number that you set is the number of clock cycle of BASIC that make SPI clock.

    Base clock is 100 MHz, then the single 10ns resolution. You have to choose between 20 and 30ns or try to have 20ns high clock and 30ns low clock.

    Teo.

  • Blackfin multiple SPI devices

    Hi guys:

    Sorry to post this question, but I really can't get it to work!

    I can configure each SPI device and they work only, when I try to config 2 devices, I can't just two lines of CS to go up!

    Note: Here is my code, I choose slave select 4 so it is easily accessible via SPI connector to the Board of Directors (PIN 14)... SS1 is pin 9!

    Thanks in advance

    I like your "main.vi" instrument, but unfortunately, I think the AD7476A driver was not designed with several converters a/d in mind, let's dig a little deeper.

    "Declaring Slave Select" command limits the value 1-7, because the SPI device can drive directly only this amount of devices, each of them being validated in accordance with the SPI_FLAG registry. Notice that in the DMA transfer mode (case of pilot AD7476A) CPHA = 0 and SS pins are automatically selected at the beginning of each transfer: for each bit set to one in SPI_FLAG a low pulse will be generated to the corresponding pin! (These bits are set on a per activate slave select or declare slave).

    He had been great if playback turn slaves, but isn't.

    I'm in the island you will not wait 1 MSP for all a/d converters. The AD7476A conversion time is determined by the clock series: the pilot sets the SPI clock on the sampling frequency of 16 times. This is why must be given a higher value in the sample spent at BF AD7476A Control.vi clock:
    For a system with converters a/5 n and 100 KSPS value must be 500000. Inter-channel delay is in this case 2 microseconds, so the difference in time between the first sample of the first string and 5th Channel is 8 us (almost equal to the sampling period), this could be a problem in some applications.

    However, more information is available in the description of the material (ADSP-BF537 Blackfin processor Hardware Reference ), documentation of device driver (C:\Program Analog Devices Devices\VisualDSP 5.0\Blackfin\docs), and drivers of source code (C:\Program Analog Devices Devices\VisualDSP 5.0\Blackfin\lib\src\drivers). Here, I would just say it seems circular buffer are not taken (see VisualDSP 5.0\Blackfin\docs \spi\adi_spi_int.pdf and adi_spi_dma.pdf) and move to solutions:

    1 reconfigure the SPI to use interrupts and use reminders to go through program slaves using BF SPI Control.vi "Select/deselect"slave"(of course, each of the ointments pins must"Declare Slave Select"with BF AD7476A Control.vi or"Activate Slave Select"using BF SPI Control.vi). This will add overhead and, depending on the sampling frequency, you may lose a few samples. Also, there is a limit of only 7 slaves.

    2. turn on DMA for a single word and switch slaves in the callback after each conversion result (of course, this will have the same disadvantages as #1).

    3. Add a simple external hardware to automatically select the a/d converters (for example a counter + decoder clocked by one of the seven pins SS and reset using EIO). Then play with stamps to identify channels (example buffers 1 d with 5 items for converters a/5 n). This will add less overhead, reminders will trigger once a sample of all channels was acquired (or even better after n samples, if the length of the buffer is nx5, etc..)

    All of these solutions, to open and close AD7476a driver only once in the 'main.vi.

    #1 and #2 similar to your posted solution above but the command must be select/deselect for interruptions and toggle for DMA. The slaves should be put in exactly at the end/beginning of each word received.

  • MyRIO SPI on FPGA

    Hey guys,.

    I have a MyRIO and an AD7690 (18 bit - ADC). The communication is done by SPI and I want to use the data on the FPGA, for this purpose, I want to use the FPGA as interface for further processing.

    I need just MISO, SS, SCKL I give any orders to the slave (ADC). I want to use the SS signal to trigger the start of the conversion.

    Now to the problem:

    1, there are already screws in the SPI folder on the target, but there is no description at all.

    Someone of you can give me a link to their discription?

    2, would you advice me to use the following example: example of SPI

    I think it's a bit overwhelmed, and it takes a lot of resources that I only want to read.

    Hope someone can give me a suggestion, what to use or write my own interface better.

    Kind regards

    Slev1n

    Brief update for question 1:

    I called support and the 4 MHz are valid if you use the SPI screws, which are already in the project myRIO (e.g. SPI Express VI). The 4 MHz is also the maximum SPI clock frequency.

    I need faster and more than 16-bit clock frequency, I try to build my own interface.

  • NEITHER USB-8452 - reach the maximum write SPI speed

    Hello

    I have a USB-8452 with the latest version of the software installed (2.1.2). The host computer is a Core i7. I am trying to achieve the maximum SPI write speed with the camera possible. I tried the basic block read/write SPI, SPI Scripting blocks and SPINNAKER streaming, but the first two have large delays between CS falling and the data being written (with so that delays in loop), and the last seems to be useful only for read operations.

    Can someone tell me if there is a way of a) reduce the time of installation for basic SPI / SPI Scripting or b) writing different values in a single stream of SPI? Thanks in advance for any help on this issue, even if it's just confirmation that yes they is hard limits that cannot be overcome with the LabVIEW 8452 interface at this time.

    Here's the best I can do right now, as shown in my logic analyzer. Change of the SPI clock speed does not affect installation time and delays that are primary and secondary bottlenecks:

    SPI read/write database-

    Program: Basic Configuration followed by read/write of SPI block itself in a while loop

    Main bottleneck: ~ 450 delay us into iterations of the loop (see Figure 2)

    Secondary bottleneck: ~ 6 us delay between falling edge of CS and the first synchronization signal (see Figure 1)

    Capture 1 - delay highlighting between CS falling and first SCLK pulse

    2 delay highlighting between all iterations of the loop of capture

     

     

    Scripts of SPI-


    Program: Followed two Script blocks Basic Configuration run in a while loop (to check the two block to block and delay loop iteration)


    Main bottleneck: ~ 450 delay us into iterations of the loop (see Figure 3, space between the second and third images captured)

    Secondary bottleneck: ~ 250 us delay between blocks of Script run consecutive (see Figure 3, space between the first and second captured images)

    Capture 3 - highlighting delays consecutive run the Script and delays between while the loop iteration


    SPI in Streaming- It's the closest to achieve a fast writing speed, but unfortunately, it seems to be only useful for read operations (e.g., ADC), do not write.

    Program: Configuration of the base stream followed by start of the flow block

    Main bottleneck: impossible to write something else than the data value unique property "wave 1-> MOSI data." I can write a byte array to this property, but it will simply put all these bytes in an image and repeat this framework (see Figure 4) rather than go through each value.

     

    4 - two bytes sent repeatedly using SPI capture stream. Delay of CS is finally good, but no possibility to change the MOSI image to image data.

    Hi JBender1,

    This show looks like what we would expect for a 8452.

    If you need higher performance, I encourage you to watch using a card R or FlexRIO FPGA series for your implementation.

Maybe you are looking for

  • Some new emoji missing or broken font system

    For a few months now, since one of the biggest emoji addition updated to iOS/Mac OS X by the end of 2015, my computer has been showing a lot of them as missing or broken.  I'm sure that this is not normal, but I have not found a cure or even someone

  • IP duplicated preventing internet connection

    My Windows XP does very well, no problems in offline mode. Any attempt to open ANY browser results in a release warning duplicate IP address. At this point, I can do without an internet connection. Pages will then expire or keep trying to load in a l

  • by clicking on the cd drive "D" opens my documents instead

    When I click on drive D (CD-ROM) the "My Documents" folder opens. This happens if there is a disc in the cd player or not. It also happens with any disc I put in there. In addition, the appearance of the "My Documents" folder that opens is different.

  • Impossible to update app from Microsoft Store Windows 8 - error 0 x 80246007 and error 0x8001074a

    Hello community I can´t updated app, store, I have try all the solutions in this net. http://answers.Microsoft.com/en-us/Windows/Forum/windows_8-Winapps/unable-to-update-apps-error-some-thing-happened/494adef1-93C2-4D22-A963-61d050c79536 http://answe

  • Rank and colunm calculations does not

    I'm trying to convert a form of copy paper to PDF to fill live.The shape is a bit like a spreadsheet of lines and columns of values.The lines are all alike: a quantity multiplied by a monetary value, with a calculation in the last column is equal to