Hi, Now i'm using lspi_transfer_s32k144(SDK) Example Code, Using that code i'm trying to communicate LTC6813(ADC Board), Before Data Writing to the ADC Over the SPI, I need to Wakeup the ADC by CS Pin after that need to Write the Data.
But Unable to control the CS Pin Separately, Please check the below code, and PFA For the Required Wakeup Signal From Master-S32K144(Attached Screen shot signals are generated from Arduino Uno)
PINS_DRV_SetPinsDirection(PTB,(1 << 5));
PINS_DRV_SetPins(PTB,(1 << 5));
OSIF_TimeDelay(500);
PINS_DRV_ClearPins(PTB,(1 << 5));
OSIF_TimeDelay(500);
while(1)
{
LPSPI_DRV_MasterTransferBlocking(LPSPICOM1, tx, rx, 2, SPI_TIMEOUT);
OSIF_TimeDelay(5000);
}
Question:
How to control the CS Pin Manually/General Purpose Output as well as CS Pin in SPI
Please guide me and do the Needful.
Thanks in Advance.
I'm Attaching the Screenshot