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.

CCS/RM46L850: monitoring level high signal

Part Number: RM46L850

Tool/software: Code Composer Studio

Hi

here I m trying to read input signal in n2het1_20. output is GIOB_2(on/off)

unlike gioGetbit(); in het.h no such function is there. How can I read a particular single pin high or low in n2het.Can u please guide me.

thanks

regards

Rock

  • Hi Rock,

    The N2HET pins that are not driven by the N2HET output pin actions can still be used as normal GIO pins. 

    You can use hetPORT1 to access the those GIO registers:

      

    For example:

    gioSetPort(hetPORT1, gioGetPort(hetPORT1) ^ 0x00000001);  --> to set N2HET1[0] to HIGH

    gioGetBit(hetPORT1, 0x01);  --> to read the value of N2HET1[1]

  • thanks QJ Wang.

    its working.

    regards

    Rock