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/TMS570LS0432: TMS570LS0432 GPIO Issue

Part Number: TMS570LS0432
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

Hi:

   1: Could you tell me which port can be used for GPIO or only GIOA[7..0] can be used for GPIO?

   2:How to config port to GPIO function?

Thank you!

  • Hi Feng,

    Almost every peripheral pin (non-power, jtag, reset, oscillator...)   on that chip can be used for GPIO.

    If you look through the terminal functions tables in the datasheet the pins that are GIO capable are usually stated as such in the description.

    For example: 

    In the case of N2HET and most other peripherals you will find a set of registers for managing the pins as GIO with a consistent interface inside the peripheral register file.    So the GIO is embedded inside the peripheral module [different than some chips where a central GIO module is multiplexed with many pins on the chip].


    HALCoGen has APIs in the gio driver that will take a pointer to either a "GIOA/GIOB" type set of GIO registers or one of the other peripheral GIO register sets and
     then manipulate the pin as GIO.    If you look at HET there should be a separate pointer,  that isn't the base address of the HET but is the base address of the HET's GIO registers.   This is the one you would pass to the HalCoGen GIO APIs to control the HET pins.