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.

FDC1004 connection with FPGA board

Other Parts Discussed in Thread: FDC1004EVM, FDC1004, ENERGIA

Hello everyone,

I purchased a FDC1004EVM for some tests.

I connected the FDC1004EVM to the computer and it works fine.

Now I would like to connect the PCB with only FDC1004 on board with one my FPGA board

through the i2c protocol.

Some questions:

1)      under the menù “Tools” of the FDC1004 GUI there is the menù “Flash Firmware”. What is it exactly?

2)      before i can read the registers of the measures of capacity ( address from 0x00 to 0x07 ) I must set the configuration registers

( address from 0x08 to 0x14 ). Right ?

3)      the question N 2 also when i turn off and turn on the power ?

 

Best Regards

Whisky

  • Hi Whisky,

    1) This is to update the existing firmware by uploading a new firmware file (.txt) to the device.

    2) & 3) If you are using the default settings for the configuration registers, then you don't have to set them every time. For more details on how to trigger measurement and read data, please refer to Section 8.5.3 of the datasheet.

    Regards,
    Yibo
  • Hi Whisky,

    It may also be worth checking out the example code we have for the FDC1004. http://www.ti.com/product/FDC1004/toolssoftware Check out the "Capacitive Sensing Sample Code (Energia)" code at the bottom of the page for a good starting point. This has very simple code to show the registers we use to get the capacitive reading out of the device.

    Best regards,

    Nate

  • Hi Yibo, hi Nathaniel,

    first of all thanks for the quick response. My problem is that I have to work on National Instruments hardware (sbRio 9636) .This board has an onboard programmable FPGA with LabVIEW software. For now I can correctly read all the registers of FDC1004 but what I don't understand is that they are all in the reset configuration  (see page 15 of the data sheet).

    Is it possible?

    I'll try to write on the register FDC_CONF the value 0x0DFF to see if I can read the capacity detected on CIN1
    (Registers MEAS1_MSB, MEAS1_LSB).

    for the first answer from Yibo : with "to the device" what you mean ?

    The device is the FDC1004EVM board ?

    Regards

    Whisky

  • Hi Whisky,

    Yes, I was referring to the EVM.

    From your description, the MSP portion of the EVM is removed, correct? Then you should read the reset values upon powering up. In this case, you do need to set the configuration registers. Sorry for the confusion.

    Regards,
    Yibo
  • Hi Yibo,

    I was on holiday and that's why I did not answer immediately. 

    Thanks for help now is all more clear.

    Best Regards

    Whisky

  • Hi Whisky,

    Glad to know it's clear now. Thanks for the confirmation.

    Best regards,

    Yibo