Hello All,
I'am Using EK-TM4C1294XL launchpad for my project development. I want to store the ADC data into a SD card . Tivaware version 2.1.0.12573
My setup is that I've a TFT run by TM4C129 MCU and I have EK-TM4C1294XL launchpad which is acting as a main controller. The communication between two MCU's is through UART. The data of the launchpad MCU ADC is being displayed on the TFT.
I've designed my GUI using graphics library on the TFT. I have a "Record" Push button widget which sends a command/signal through UART (eg. "a") to the launchpad MCU to indicate it to start storing the data of its ADC.
I'am using SSI3 of the launchpad for interfacing with SD card module with the below mentioned commands
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOQ);
while(!(SysCtlPeripheralReady(SYSCTL_PERIPH_GPIOQ)));
SysCtlPeripheralEnable(SYSCTL_PERIPH_SSI3); //for sd card
GPIOPinConfigure(GPIO_PQ0_SSI3CLK);
GPIOPinConfigure(GPIO_PQ1_SSI3FSS);
GPIOPinConfigure(GPIO_PQ2_SSI3XDAT0);
GPIOPinConfigure(GPIO_PQ3_SSI3XDAT1);
GPIOPinTypeSSI(GPIO_PORTQ_BASE, GPIO_PIN_3 | GPIO_PIN_2 | GPIO_PIN_1 |
GPIO_PIN_0);
SSIConfigSetExpClk(SSI3_BASE, ui32SysClkFreq, SSI_FRF_MOTO_MODE_0,
SSI_MODE_MASTER, 1000000, 8);
SSIEnable(SSI3_BASE);
I'am writing the code for SD card storage for the first time & I would really appreciate if someone would guide me step by step. How to start the code after the launchpad receives the signal from the TFT ?
I've gone through the SD card example in tivaware But i Think it is for data reading & not for data storing and frankly speaking I was not able to understand the example.