Hi all,
I am trying to use the SPI protocol to communicate between my board (LPC55S06-EVK) and an external ADC (EVAL-AD7984 from Analog Devices). I have attached the page from the datasheet of my ADC to show you how the SPI communication works so that you can understand my code given below (I have also attached my entire source file). My question is this: how do I enable (start) and disable (stop) the SPI SCK from running? First, does the function CLOCK_AttachClk start the clock signal on SPI SCK? Second, what function should I use to stop the SPI SCK?
If I am going about this the wrong way, please point me in the right direction.
(My next question, which is probably for another community post, is how do I input the data from the EVAL board via the SPI MISO back to my NXP board and interpret it?)

Here is my code:
while (1)
{
SCTIMER_StartTimer(SCT0, kSCTIMER_Counter_L); // start SCTIMER
GPIO_PinWrite(GPIO, 1, 1, 1); // set CNV (start conversion)
if (SCTIMER_CreateAndScheduleEvent(SCT0, kSCTIMER_MatchEventOnly, matchValue_tCONV, 0, kSCTIMER_Counter_L,
&eventCounter_tCONV) == kStatus_Success)
{
GPIO_PinWrite(GPIO, 1, 1, 0); // clear CNV
}
if (SCTIMER_CreateAndScheduleEvent(SCT0, kSCTIMER_MatchEventOnly, matchValue_tEN, 0, kSCTIMER_Counter_L,
&eventCounter_tEN) == kStatus_Success)
{
CLOCK_AttachClk(kFRO12M_to_FLEXCOMM7); // start clock (12 MHz)
}
if (SCTIMER_CreateAndScheduleEvent(SCT0, kSCTIMER_MatchEventOnly, matchValue_tACQ, 0, kSCTIMER_Counter_L,
&eventCounter_tACQ) == kStatus_Success)
{
//CLOCK_StopClk...;
}
SCTIMER_SetupCounterLimitAction(SCT0, kSCTIMER_Counter_L, eventCounter_tACQ); // reset counter when t_ACQ is reached
SCTIMER_StopTimer(SCT0, kSCTIMER_Counter_L); // stop SCTIMER
}