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.

LDC1000 main.c Demo Only 1 Interrupt

Other Parts Discussed in Thread: LDC1000EVM


I'm running the 5529DRDY main.c demo in CCS cloud but there is no values from the LDC1000 in the serial terminal. I've been debugging with a TI engineer and we have figured out that there is only one interrupt happening. If anyone has worked with the LDC1000 any input would be appreciated.

Thank You 

  • Hi,

    Unfortunately I have never worked with this device.

    However, given the serial port functionality in Cloud is pretty standard and supposing you already solved any obvious mistakes such as baud rate or incorrect COM port, do you know if your board requires hardware handshake (Xon/Xoff or CTS/RTS)? Despite this configuration is pretty rare nowadays, the Cloud Tools do not support it. Also, if you are using standard RS232 cables can you be sure you are using the correct cable (null modem or straight)? This used to cause a lot of trouble for me in the past.

    One additional detail: if you are using the LDC1000EVM board, do you know if it communicates with the host PC via UART? I couldn't find this information anywhere in the board documentation and therefore it may use some other protocol.

    Apart from this I can't think of much else that could go wrong. Perhaps try to see if you get the output using a standard terminal program such as Teraterm?
     
    Hope this helps,
    Rafael

  • The issue is not a serial problem. It seems to be a problem with the interrupts, as only one data ready interrupt was occurring instead of multiple ones. We are also interfacing the LDC1000 with the MSP430 F5529 LaunchPad. Could you please move this to the inductive sensing forum?
    Thank you for your help.
  • Oh, I see it now. It will be moved.
  • Hi Tiffani,

    Could you please provide more information about your setup. A picture of your setup showing the connections would help and you mentioned only one interrupt is working. Which interrupt and how do you know only that one is working?

    Regards,

    Blair

  • Hi Blair,

    The demo began to work, however it's not consistent and whenever it does work the output is random characters.

  • Hi Blair,
    I am also working on the project with Tiffani, and we have a blog with what exactly we are trying to do. It also has information about what we think is the problem for the program not working properly with the hardware. If you go to changecounts.wordpress.com/ you can see exactly what we're trying to accomplish. The latest information is in the last few blog posts, and if you go to the Demos tab, there is an LDC1000 demo that outlines the general setup we have so far, as well as the code that we're running.
  • Hello Ali,

    Thank you for the link. However, I would prefer that any information relevant to this thread also be posted here as well. That way, in the case the blog is taken down, all relevant information can be found here in this E2E thread.

    Please provide a detailed sequence of events with regard to what worked and what didn't. In the blog post you mention that the code originally did run properly, but then you removed or changed coils? Why would the coil not have a capacitor? Having an LC tank for the sensor is required.

    Best regards,

    Blair

  • Hello Blair,

    The only time we saw the LDC1000 working was when we opened it and removed the MSP430 portion to connect it to another MSP430 F5529 LaunchPad. We added female headers so we could connect the LDC1000 to the LaunchPad with jumper wires. After doing that, it was working. This was with the EVM coil still attached. Next, we wanted to use a different coil that could actually tel the difference between different coins, but when we attached that after snapping off the EVM coil, it stopped working. I know I said there wasn't a capacitor attached, but that is only with mine. We have two separate LDC1000s, and Tiffani's does have the capacitor attached. Sometimes when she runs the program, it spits out random characters, and sometimes nothing comes up.

    Thanks,

    Ali

  • Hi Ali,

    Since the code has been verified previously on one of your systems, I recommend verifying all hardware connections. It sounds like something may not be connected properly. Check cables and solder joints.

    Best regards,

    Blair

  • Blair,

    Hi, I'm the ex-TI engineer helping with this project. I've stepped through the code and the behavior is interesting. With the unmodified 5529 DRDY example, we recieve a single P1 interrupt, but the dataReady flag is never set because !(P1IN & BIT2) isn't evaluating true (I assume because the INTB pin is still asserted).

    After looking at the code a little more I noticed a block of code around line 199 that is commented out. Does any of this need to be commented in for the example to work? The only code I see that tries to configure the LDC1000 is at line 204 and only looks to setup the interrupt pin. Does any additional configuration need to be done for the LDC1000 to function?

    Thanks!
    Trey
  • Trey,

    If you look at line 168 the evm_init() function is called which configures the LDC1000 over SPI. The code for the function is in the "library/LDC1000_evm.c" file. I recommended running the debugger line by line to see if the firmware gets stuck somewhere.

    Regards,
    Blair