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.

TMS570LS3137: DMM configured as GIO pins doesn't work

Part Number: TMS570LS3137
Other Parts Discussed in Thread: HALCOGEN

Hi there,

I'm sure it is something stupid but I'm having trouble using them as GIO pins. I can see the Dout registeres (PC3, PC4, PC5) updated as expected but the input (PC2) is stuburnly remain unchanged.

This happens not only in my code, but also after dmmInit() is called. And it is happening on both customed board and the HDK board.

Thanks,

Karl Tsai

 0702.dmm.c

  • From the value of FUN register, Data0, Data1, data2, and data12 are configured as GIO mode. All those 4 pins are configured as output. Data0, Data1, Data2, Data12 are set, so their output is HIGH. PC2 is pin input control, and write to this register has no effect.

    If you configure the pin as input using PC1, the PC2 register will change as the input changes.
  • Hi QJ Wang,

    Thanks for replying.

    I tried changing the FUN and toggle the output pin levels extensively and attached one of the screen shots that unfortunately doesn't match the code attached.

    Even so, you can tell from the screen shot that FUN (0x7EFE3) data pin 0,1,2,12 are configured as GIO and Dout is 0x381C which means data pin 0,1,2,12 are all high

    But the input is 0x3BBB0 (or 0x3B9B0) which has 0,0,1,1 for data pin 0, 1, 2, 12. And no matter how I change the 4 output pin level, the input stay unchanged.

    That is my puzzlement.

  • Btw, I have only configured for GIO output pins. Nothing input.
    The attached code has 0,1,2 and 9,10,11 configured as GIO output.
    The values of these pins don't change from calling dmmInit on no matter how I changed the output level.
  • I wasn't able to control any bits with pullup/pulldown and I have switched to push-pull and with all bits as GIO output and found I could control bit 0-3 and 18.

    First one shows all bit 0 and the 2nd all bit 1. What's wrong with this picture?

    Has anyone succeeded with using DMM as GIO beyond these bits?

  • Problem solved.

    DMM was not configured in Halcogen under pinmux tab.