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 Hub Boosterpack compatibility issue

I am looking at sensor hub functional description and it says - 100% hardware compatible with C2000 Launchpad. But J1.6 on Sensor hub is an interrupt-able pin for light sensor and on c2000 Launchpad J1.6 is ADCINA4 (Just analog pin). Can an analog pin be operated as GPIO (e.g ADCIN4) if not then how to get 100% hardware compatibility between C2000 LP and sensor hub.

RBG

  • RBG,

    Yes, the even numbered analog pins can be used as GPIO.  You'll want to take a look at the AIOMUX register in order to configure this functionality (they are analog in by default).

    These pins are not interrupt capable though, so you'll have to implement a polling routine in order to emulate an interrupt.  Perhaps you could use a timer and check the state of the pin in the timer's ISR.

    Regards,