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.

SPI CONFIGURATION IN LAUNCHXL2 RM46.

Other Parts Discussed in Thread: HALCOGEN

Hi,

I am working on SPI module in LaunchXL2 RM46 launchpad. I want to set the SIMO AND SOMI Pins on launchxl2 to logic 0 and logic 1. what is the basic configuration in halcogen to be done? There are no pins for SPI in launchxl2, there are two MIBSPI pins.

links : www.ti.com/.../launchxl2-rm46

I am new to embedded systems..can anyone help me with this.

  • Hi,

    I've moved your thread to the proper forum.

    Sincerely,
    Sean
  • shruthi,

    Well actually the device has a mix of some standard SPI and some MibSPI.

    MibSPI is a standard SPI plus a 'Mib' unit.   The Mib Unit can always be disabled (it is disabled by default) and you can use a MibSPI as you would a standard SPI.

    In case you just want to use the pins as GIO though the SPI mode really doesn't matter.   Just set the pins to GIO mode no SPI mode in the HalCoGen port tab..

    (left most arrow)  set the pin DOUT to 0 if you want to drive low (2nd arrow) and then set DIR to '1' /checked  (3rd arrow).

    If the particular pin you want to drive is a SPI or MibSPI pin by default  --  meaning the pin name is something like    <func1>/<func2>/MIBSPIxxxx/<func4>,  you need to go to the PINMUX tab and select the function to control the pin.

    on the other hand if the pin name is something like:    MIBSPIxxxx/<func2>/<func3>/<func4>.    where the SPI or MibSPI is listed first (or is the only one listed), then that signal defaults to having control of the pin and you don't need to explicitly configure it in the PINMUX tab.


    pinmuxing should be done before main() automatically  via a call to muxInit().

    configuration of your SPI pin will happen when you call 'spiInit()' in your main().