When using the PDMA controller of the NuMicro? NUC442/472, the data address that needs to be set is the end address, rather than the starting address set in other series.
For example, when the starting address is 0x2000_0000 and the amount of transmission is 0x100, the end address is 0x2000_0100. In this case, when setting the data address for the NUC442/472 series, the user needs to set the end address 0x2000_0100; when setting the data address for the other series, the user needs to set the starting address 0x2000_0000.
The sample code regarding the PDMA in the NUC442/472 series is as follows:
u32EndSrc = (uint32_t)SrcArray + PDMA_TEST_LENGTH;
u32EndDst = (uint32_t)DestArray + PDMA_TEST_LENGTH;
PDMA_SetTransferAddr(2, u32EndSrc, PDMA_SAR_INC, u32EndDst, PDMA_DAR_INC);
Is there any difference between data address set for the PDMA controller of the NuMicro? NUC442/472 series and the data
-
- Information
-
Who is online
Users browsing this forum: No registered users and 11 guests