Hello, You have to choose the TD's in Loop option in DMA Configuration (instead of CY_DMA_DISABLE_TD )in this way by using DMA Wizard tool-
CyDmaTdSetConfiguration(rxTD, BUFFER_SIZE, rxTD, TD_INC_SRC_ADR |TD_INC_DST_ADR);
For both Rx /TX DMA's.
Then data will be transferred continuously. Please clarify whether you wish data to be transferred continuously or discretely whenever you want .
I wish to transfer data discretely whenever I want.
I tried the way mentioned now data is not communicated even one time. Please help me regarding this.
You should not use TD's in Loop option in DMA Configuration (instead of CY_DMA_DISABLE_TD )in this way by using DMA Wizard tool because you do not wish to send data continuously but discretely acc to your requirement.
You dont even need to use that SPIS Example project involving DMA.You can configure a hardware pin (as a switch) which can trigger an ISR.
Then in the firmware,inside ISR body,you can set a Flag(variable).
And you will have to continuously check the flag(variable) value in main inside for(;;) loop,that is if flag is set,then you will send the value in txBuffer Ram Array into SPIS component's Transmit buffer by using API "void SPIS_WriteTxData(uint8/uint16 txData)"
Also,if you will put any data from Receive buffer of SPIS component to rxBuffer RAM array by using API "uint8/uint16 SPIS_ReadRxData(void)"