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.

RTOS/IWR1642: How can I trigger sensor to start with a external HW pulse? With a programmable delay, which may range 0 ~ 10ms?

Part Number: IWR1642
Other Parts Discussed in Thread: IWR1443, TIDEP-0091

Tool/software: TI-RTOS

My question could be divied  into serveral parts:

Q1: can I use frameCfg with hardware trigger option? In doc and code, it seems only providing  a few tens of micro seconds, range is not as large as 0~10ms.

Q2: Can I use a GPIO for trigger input monitoring? How can I monitor this GPIO, use polling task per 50us? or a timer interupt set as 50us?  how is the efficiency?

Q3: How long will it take to start sensor while other setting is already set, e.g profileCfg, chirpCfg. could you give stats for both calibration on and off? The time between rlsensorStart and sensor real started.

Q4: Can I use task_sleep() to implment my polling task for 50us polling? since I found task_sleep seems counting at mili second.

  • Hi,

    Q1: no, hardware trigger is not support in mmwave sdk
    Q2: Can you be more specific of your application? WHat do you mean by input monitoring?
    Q3: No API will be sent untill sensorStart is issued, so there's no time limit between the settings and sensorStart command.
    Q4: task_sleep minimum is 1msec, can't be used for 50us.

    Thanks and Regards,
    Michelle
  • Hi, Michelle,

    Thanks for your reply.

    for Q2: I want to implement a sensor start trigger (an external hardware pulse), and a programmable delay(0~10ms, in precision about 50us) to start sensor after pulse pos edge input. Since SYNC_IN can not support such long programmable delay, I am considering another solution for this.
    1) use a GPIO in MSS, and external hardware pulse is connected to this PIN
    2) create a task to monitor this GPIO, using a timer with 50us to poll this PIN state, which may create a trigger with a precision about 50us.
    3) when polling precess get the pos edge of external pulse, it will trigger the rlSensorStart() function (other parameter like profile chirp, frame is already set and ready for the trigger)

    Does it make sense?
  • I'm trying to fit our available solution to your application. One is TIDEP-0091(http:/www.ti.com/tool/TIDEP-0091). It use MSP432 to control IWR1443 through GPIO. Would this be something solve your problem?

    Let me know.
    Thanks and Regards,
    Michelle
  • hi, Michelle,

    Thanks for your information.

    I look briefly into this demo code, and this demo seems providing method how to read and write a GPIO.

    And another key part of my requiment is how to poll a pin state with a period of 50us. It seems not an easy task since HW timer is not available, and this lead me to another question: Why in swru522a chapter 15, there is a RTI (real time interupt ) while in SDK, there is no time driver?
  • Just to clarify:

    You want the sensor start trigger and programmable delay generated inside of mmwave sensor RTI?
    I initially thought the trigger is external to mmwave sensor...

    Please let me know.

    Thanks
    Regards,
    Michelle
  • Yes, trigger is from the external part, but the delay is programmable and updated frequently within the sensor MCU.
  • Please refer to this link for timing:
    e2e.ti.com/.../675851

    Regards,
    Michelle