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.

TMS570LC4357: GPIO

Part Number: TMS570LC4357

working with the TMS5704357BZWTQQ1

Question:

I see certain pins and their description..example:

MIBSPI3CLK/AD1EXT_SEL[1]/eQEP1A,  Pin V9..description:  I/O Pullup Programmable, 20 μA 8mA MibSPI3 clock, or GIO.

the question...

so, can this pin be programmed as a general purpose I/O...(i.e. like use it to turn an LED on off, or read a digital switch input high or low)???

or

it only has the functions associated with the description   (i.e. SPI clk out, external mux select outputt, Enhanced QEP1 Input A, )...?

thank you for responding...appreciate the education. 

  • Hello John,

    can this pin be programmed as a general purpose I/O.

    Yes, you can use pin v9 as a GIO pin. This pin is used as MibSPI2CLK by default. You can configure this pin as a GIO by writing 0x0 to bit 9 (CLKFUN) of SPIPC0 register. Writing 0x1 or 0x0 to bit 9 (CLKDIR) of SPIPC1 controls the signal direction (output or input). 

  • thank you so much!

  • qj....

    OK....THANK YOU..ONE MORE QUESTION..

    LOOKING AT THE datasheet for the herc: SPNS195C –FEBRUARY 2014–REVISED JUNE 2016.

    page 15.

    N2HET1[21]/EMIF_nDQM[2], pin H4,  descrip says:  N2HET1 time input capture or output compare, or GIO...

    so...I can use this pin as a GIO pin?...I see the mux func...default = N2HET1[21]..which can be in or out, alt fun = EMIF nDQM[2], which is an OUT...

    so, how can you use this pin as GIO?....

    sorry, just trying to get a handle on pins that can be GIO

    datasheet states 16 deidcated GIO  and 145 pins taht can be configured as GIO...possibly a doc you could point me to

    thank you.

  • Hello John,

    Yes, H4 can be used as GIO. 

    1. H4 has to be configured as N2HET1[21] rather than EMIF_nDQM[2] --- default 

    2. Use HETDIR register to configure the direction: input or output

    3. Use HETDIN to read the value of the input signal

    4. Use HETDSET to set the pin to HIGH (1)

    5. Use HETDCLR to clear the pin to LOW (0)

    or you can use gio APIs for step 2~step5, for example

    use gioSetDirection(hetPORT1, 0x1<<21); //set pin 21 as OUTPUT, and other as INPUT

    When H2 is used as GIO, it doesn't support interrupt.

    The 16 dedicated GIO pins support interrupt.

  • AWESOME

    thank you so much...

    one more thing...

    I'm tryiing to find a local TI Tech rep in my area....i'd like to run all our schemos by them befoer we cut this board loos...just to make sure I have the Herc / phy/ etc. configured/wired correctly.....

    would you hve info on that?

    I cant find anything on web page

    I live in MASSACHUSETTS, USA.

    again..thank you for your quick respones!

  • Hi John,

    I don't have that information. 

    This is TI local support office in MA:

    Address: 200 5th Ave, Waltham, MA 02451
  • thanks so much!!