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.

TMS570LS0432: Using Pins as mere gio pins

Part Number: TMS570LS0432
Other Parts Discussed in Thread: HALCOGEN

Hi all,

I am a beginner to embedded world. i was looking to code the pins of this microcontroller as mere gio pins and i am using halcogen. 

1. I wanted to use J1 pin 8,9,10 and J2 PINS 3,4,7,8,9,10 as gio. there seems to be some conflict and i dont know how to use these. i am using halcogen to prepare my initialization code. i hope you guys can help me in this regard.

2. Does gioSetBit(hetPORTA1,24,1); work after putting checking dir,pdr,psl in halcogen. it isnt working. trying to pull n2het[24] pin high.

Thanks and Regards,

Nishanth A B

  • Hello,
    To use J2 pins 3, 4, 8, 9, 10 you should do as follows:
    In HALCoGen:
    - In Driver Enable tab , uncheck Mark/Unmark all drivers checkbox;
    - In Driver Enable tab, check Enable GIO Driver;
    - In PINMUX tab, check GIOA checkbox;
    - In GIO tab configure pins (Input/Output/Pull-up/Pull-down and so on);
    - Generate Code (File --> Generate Code, or F5).

    In CCS:
    - call gioInit();

    Now you can use GIO functions from "gio.c". For example to set J2.10:
    gioSetBit(gioPORTA, 4, 1);

    To use J1 pins 8, 9, 10 and J2.7 as GIO you should do as follows:
    On the Launchpad:
    Put J8 on position 1-2 (to use SPI1SOMI, pin 66);

    In HALCoGen:
    - In Driver Enable tab, uncheck Mark/Unmark all drivers checkbox;
    - In Driver Enable tab, check Enable GIO Driver;
    - In Driver Enable tab, check Enable MIBSPI Driver;
    - In PINMUX tab, check MIBSPI1 checkbox (you can check GIOA as well, and configure GIOA port from GIO tab to use GIOA pins );
    - In MIBSPI1 tab-->MIBSPI1 Port, Configure all pins as GIO;
    -Generate Code (File --> Generate Code, or F5).

    In CCS:
    - call gioInit();
    - call mibspiInit();

    Noe you can use functions from gio.c to control those pins (using mibspiPORT1 as GIO port register pointer). For example, to set J2.10:

    gioSetBit(mibspiPORT1, 3, 1);

    Best regards,
    MIro