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.

TMS320F28075: SPI SETUP - Can you support?

Part Number: TMS320F28075
Other Parts Discussed in Thread: SYSCONFIG, C2000WARE

Hi Guys, Happy New Year.

Can we get some support in setting up SPI-B and SPI-C.

Our project is using CCS 12.8.1 and is an Assembler only project.

SPI-B and SPI-C pins is as follows:

SPISIMOB - GPIO 24.    SPISIMOC - GPIO 69 

SPISOMIB - GPIO 25.    SPISOMIB - GPIO 70

SPICLKB - GPIO 26.    SPICLKC - GPIO 71

We will be using other assigned pins to control the CS lines to the external SPI SRAM so no need to setup SPISTEB or SPISTEC pins.

Is it possible to setup the SPI in assembler via direct register setting or do we really have to create a C project and setup the SPI in C and then branch to our ASM file via an  extern command. 

Please let me know.

Thanks and hope to hear from you soon.

Peter

 

  • Hi Peter,

    Yes, you should be able to do all SPI initializations from your asm file. The easiest way to accomplish this would be to configure the settings in a C2000ware empty example ([C2000ware install]/driverlib/f2807x/examples/cpu1/empty_projects/empty_driverlib_project), you can use the Sysconfig GUI to do this quickly. Then, build, load and run the project in CCS and step through to the SPI_init() C function in Board_init() (should be part of the generated file: board.c). If you open the disassembly viewer (View -> Disassembly) on the SPI_init() function, it will show all the C28x assembly code being used for the SPI initializations, and you should be able to use this in your assembly file. You can also do the settings manually, but I would try to follow the order of register writes used by the Sysconfig generated code for your initializations.  

    Best Regards,

    Delaney

  • Hi Delaney, thank you for your reply. C NEVER works for me but I'll try it and see how it goes. Cheers Champagne glass Grin

  • Hi Peter,

    Sounds good, let me know if you have any questions I can help with! I will close this thread but feel free to make another if needed.

    Best Regards,

    Delaney