Hi, Sankalp,
Regarding your question that the PCM data are saved in a file on SD card, you want to read the PCM data from the file and play the PCM via the codec PCM5102.
I suppose that the LPC1768 is a bit old, I suggest you use the LPC54xxx or the other processor, which has I2S, SD card interface, EMC intertface with which you can connect SDAM, SRAM, Timer,...
We have developed the SD card example, which supports creating directory/ file system, open file, read/write data to File. I suppose you can use the file system, open file, read PCM to internal SRAM or external SDRAM. Configure the I2S module, and DMA, the DMA can read data from RAM(either SDRAM or internal RAM) to I2S transmitter data register.
This is the LPC54xxx link:
LPC54000|Power Efficient 32-bit Microcontrollers (MCUs)|Cortex®-M4 Core | NXP
We have developed the SDK package, which includes the SD card driver, I2S driver, I2S example based on interrupt and DMA.
MCUXpresso SDK | NXP
Hope it can help you
BR
XiangJun Rong