Other Parts Discussed in Thread: CONTROLSUITE, C2000WARE
Tool/software: Code Composer Studio
Hello,
I'm trying to use the example code "spi_loopback_cpu1" in ControlSuite to transmit a simple integer via SPI pins. The only modification I made to this code is to transmit the number 20 instead of zero. I initialized GPIO pins 16-19 for MOSI, MISO, CLK and STE, respectively on both of my launchpads and jumped wires between the pins (16 and 16 on launchpads 1&2 connected, etc). I then used Simulink's SPI receive function to retrieve the integer, but when running in external mode it is displaying zero because it is not receiving the data. Have I set up my hardware / software correctly to do this? Is there a way for me to check if an integer is being transmitted from the first launchpad to the MOSI pin?
Thanks,
Tyler