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 studio change pin input output



Is it possible to change a Digital Output Pin to Hi-Z state at runtime in the Sensor Controller Studio?

I'm implementing a sort-of 1-bit DAC by driving a pin as output while sampling ADC on the voltage after an RC filter.  The pin is output high if the ADC value is too low, output is low if the ADC value is too high (bang-bang controller).  Once the capacitor voltage is within an acceptable range, I want to Hi-Z the output pin so it stops driving and using up power.

  • Hello Paul,
    So you use two separate pins: One as a output and one for the ADC to sample after the filter right?

    The Data Output Enable control ( DOE31_0 Register) resides in the MCU domain and cannot be accessed by the sensor controller. But you can do this from the application processor (CM3). If you signal the MCU from the sensor controller and set a flag/event in one of your RAM variables. Then the task code running on the CM3 can then disable the output buffer to the pin. Will this work for your application?
  • Thanks Eirik,

    Could you provide an example on the best practice method to change the pin state from the application?

    I know the TI-RTOS is managing the pin status and I'm not comfortable with the added complexity.

    I vaguely remember reading that you should not use TI-RTOS driver to manage a pin used by the sensor controller.

  • Hello Paul,
    You can just use the PIN_setOutputEnable function from the PIN driver.