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/UCD3138: UCD3138 ( 40Pin ) can't set Fault0 ( Pin22 )& Fault1 ( Pin23 ) as GPIO ?

Part Number: UCD3138

Tool/software: Code Composer Studio

As follow , I can't implement  Fault0 ( Pin22 )& Fault1 ( Pin23 ) as aGPIO ( 40pin UCD3138 ). More registers need to be set ?

1) MiscAnalogRegs.IOMUX.bit.JTAG_DATA_MUX_SEL=3;

2) Fault0 & Fault1 set as GPIO 

3) Fault0 & Fault1 set output or input

4)  Fault0 & Fault1 enable GPIO

  • Hello,

    An engineer is looking into this and will respond.
  • I just looked at a part, and I didn't have any trouble.  Just set the IOMUX bits to 3, as you mention, and then you can read the input values right away.

    And if you set the GioRegs.FAULTDIR.FLT1_DIR bit to 1, you can write to the GioRegs.FAULTOUT.FAULT1_OUT bit, and the value will appear on the pin. 

    The only thing that might be confusing that I see is that the pins are pulled up on the open loop board.  But they can be pulled down with a jumper, or by writing a 0 to FAULT1_OUT with FAULT1_DIR set. 

    I also checked out Fault 0, and it seems to work as well