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.

Sensor controller pulse counter

Other Parts Discussed in Thread: CC2640

Hello,

I have a project and I would like to perform the pulse counter functionality on a GPIO with the sensor controller.

Unfortunately, I understood that this functionality is not implement yet in the sensor controller library. I asked a few month when this functionality will be operational and a person from TI answered my that it will be out this summer with version 1.1 of sensor controller studio.

Do you have more information about the relase date ?
My project is due to middle of September and it is coming really fast.

Best regards,

Julien Erdogan 

  • Hi Julien,

    I assume the thread you refer is this, right?:
    e2e.ti.com/.../426576

    Waking on a pin should be available already the next version. I think this release is due quite soon but I see it has not been released yet.
    Counting pulses using the TDC as mentioned has been looked into but it seems the functionality in the TDC has a few hardware limitations which makes this not possible to implement using the TDC. It is therefore not planned to release any pulse counting examples for now.

    Regards,
    Svend
  • Hi Sven,

    The frequency I have to count is between 30Hz and 1kHz and for now I'm using the main CPU of the CC2640, cortex M3, that wakes up and increases a counter each interrupt. However, the consumption resulting of this is really high and it's not possible to use this strategy for the long term.

    When I read the CC26XX documentation, one of the reason I chose this µC is that one of the features was the pulse counting functionality.
    I figured that this functionality would be performed by the TDC as it allows counting without waking up the µC.

    So is there a way to count pulses without waking up the µC that I can use in the following months ?

    Regards,

    Julien
  • Hi Julien,

    We do not have an application example for this yet.

    Cheers,
    Fredrik
  • Hi Fredrik,

    Thank you for your answer but I was waiting for something more constructive, that is not a showstopper.
    I think that you should know the µC architecture better than me and the only way to count pulse for me is to wake up on every pulse. I'm sure that there is a better way to do that with this µC.
    My question is, even if you didn't used it or released an example yet, is there a better way than waking up on every pulse to count pulses with this µC ?

    Thank you,
    Julien
  • Hi Julien,

    You would have to wake up on every pulse, but you should use the SensorController, not the M3. That way the current consumption should be quite low.

    Cheers,
    Fredrik