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/CC1310:

Part Number: CC1310

Tool/software: TI-RTOS

Hello Sir, 

 We are able to count the number of pulses from one sensor using pulse counter example in Sensor Controller Studio. Now my question is, is it possible to give more than two sensor inputs to Pulse Counter. If so how can we do this if not is there a solution for counting the number pulses using other example codes in Sensor Controller Studio.

  • The pulse counter is enabled and the input selected by using pcntEnable() => one input is used at a given time. Pulses from more than one sensor can therefore not be counted at the same time.
  • Thanks.

    What is the best solution to count pulses from two sensors?
    Currently we are measuring one sensor's pulses using pulse counter and other using GPIO Event Trigger (that is using Event Handler). Do you think its an efficient approach?
  • This is something I haven't looked into. What is the pulse rate from each sensor (and what type of sensors is it?)
  • We are using Water meter which gives one pulse for every 10000 L of water and rain sensor which counts the number of rain drop. pulse rate is something that varies depending on the flow of water and rainfall. But I can say that pulse rate of water is more than rain sensor.
  • In this case it does not sounds like the pulses are too frequent. Would it be possible to use an interrupt on a DIO waking up the CM3 for each pulse?
  • Yes Interrupt on DIO can be used.But waking up the CM3 for each pulse is not recommended as it will increase power consumption.

    This is our requirement, we need to interface 8 different sensors with CC1310 out of which two will give pulses output and other is Ultrasonic sensor.

    For Pulse width measurement, TDC module can be used in SCE.

    But it will give a warning if we try to use both TDC and Pulse counter module. Warning being they use the same hardware peripheral.

    Can we run both TDC and Pulse counter in parallel ?

    And regarding Pulse Counting, our requirement is Pulses should be counted in background when CM3 is sleeping. When it wakes up periodically, it should read the pulse count value from Sensor Controller and report the data. 

    Thank you very much for Quick Responses.

  • From the Sensor controller help on the Pulse Counter: This resource uses the TDC prescaler as counter. Meaning that you can only use the pulse counter or the TDC.

    How wide are the pulses in time, is it possible to poll the input and check the state?