void GOC_Iphase_DMA_ReInit(void)
{
ioctl(EDMA, DMA_SET_DMA_REQUEST_0, DMA_DISABLE); // Disable peripheral request before modifying DMA registers
/*******************/
/* set values */
ioctl(EDMA_0, DMACH_SET_SOURCE_ADDRESS_OFFSET, 0x0);
ioctl(EDMA_0, DMACH_SET_NBYTES_WITH_MLOFF, -6);
ioctl(EDMA_0, DMACH_SET_SOURCE_ADDRESS_OFFSET, set_source_adress);
ioctl(EDMA_0, DMACH_SET_NBYTES_WITH_MLOFF, nBYTES_value);/* set number of bytes to transfer*/
uw32Address = (UWord32)&(w16IphaseArray[0]);
// set destination address to first member of the structure
ioctl(EDMA_0, DMACH_SET_DESTINATION_ADDRESS, uw32Address<<1 );
ioctl(EDMA_0, DMACH_SET_SOURCE_ADDRESS, 0x1CA1C);
// clear interrupt flag and enable next transfer by writing BCR registers
ioctl(EDMA, DMA_SET_DMA_REQUEST_0, DMA_ENABLE); // Enable peripheral request to initiate the DMA transfer
}
i still have issues trying to get all the three current ADC results. I have only the first ADC sample showing up. I have attached my code above for you to get an idea of what im probably missing out?
@xiangjun_rong