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.

MSP430FR5889: Eddy current sensors order

Part Number: MSP430FR5889

Hi

I made a PCB for prototype with 3 LC sensors, but I need the reversed order of scanning these sensors. There are two options, I change PCB again or reverse order how the firmware handles them. The reason that I want to reverse order is that interrupt is triggered on positive rotations and when my reading device has normal rotations in reverse direction, then I have to read counters "manually" because these interrupts when whole 1 rotation is done don't occur at all. So I've changed PSM in which I have swapped left with right states everywhere, also I changed TSM table, and the first channel excited is number 1 instead of 0, but still it triggers interrupts in the wrong direction. Does anyone knows what else to change?

  • Hi Adam,

    Could you tell me more details about hardware & software change?

    It will be better if you can provide sch and code changes.

    Thanks!

    Best Regards

    Johnson

  • What you mean more details? All circuit based on that principle work the same, but here you go some code:

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    / TSM Setting for 3 sensors
    ESITSM0 = 0x0400; // sync with Aclk
    ESITSM1 = 0x18AD; // excitation of Ch1 for 1us0x18AD; // excitation of Ch1 for 1us
    ESITSM2 = 0x0485; // 1 Aclk delay0x0485; // 1 Aclk delay
    ESITSM3 = 0x00A5; // tunable delay0x00A5; // tunable delay
    ESITSM4 = 0x00A5; // tunable delay0x00A5; // tunable delay
    ESITSM5 = 0x00A5; // tunable delay0x00A5; // tunable delay
    ESITSM6 = 0x00A5; // tunable delay0x00A5; // tunable delay
    ESITSM7 = 0xC9B5; // DAC on, CA on, for 26 TSM clks0xC9B5; // DAC on, CA on, for 26 TSM clks
    ESITSM8 = 0x49F5; // DAC on, Ca on, and latches enable, for 10 TSM clks0x49F5; // DAC on, Ca on, and latches enable, for 10 TSM clks
    ESITSM9 = 0x0401; // internally shorted for channel 1 LC sensor, for 1 Aclk0x0401; // internally shorted for channel 1 LC sensor, for 1 Aclk
    ESITSM10 = 0x0401; // internally shorted for channel 1 LC sensor, for 1 Aclk0x0401; // internally shorted for channel 1 LC sensor, for 1 Aclk
    ESITSM11 = 0x182C; // excitation of Ch0 for 1us
    ESITSM12 = 0x0404; // 1 Aclk delay
    ESITSM13 = 0x0024; // tunable delay
    ESITSM14 = 0x0024; // tunable delay
    ESITSM15 = 0x0024; // tunable delay
    ESITSM16 = 0x0024; // tunable delay
    ESITSM17 = 0xC934; // DAC on, CA on, for 26 TSM clks
    ESITSM18 = 0x4974; // DAC on, Ca on, and latches enable, for 10 TSM clks
    ESITSM19 = 0x0400; // internally shorted for channel 0 LC sensor, for 1 Aclk
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    The commented part is previous version. Sensors connected to channel 0, 1, 2. The thing is that that it will not tell you anything, you need to know the concept what to change... i even don't know if that is a good approach. I need only information what to change and I'll do it myself.

  • Hi Amada,

    Got your requirement, I am not the expert of ESI, I will consult some expert and get back soon!

    Thanks!

    Best Regards

    Johnson

  • you can stop that intense searching, I've changed the board

**Attention** This is a public forum