DMA_InitTypeDef explanation
Can someone explain me how to use the 'PeriphInc' in the DMA_InitTypeDef.
I understood that it can read several address (is that right ?), but where I write the start and end adress ?
Can someone explain me how to use the 'PeriphInc' in the DMA_InitTypeDef.
I understood that it can read several address (is that right ?), but where I write the start and end adress ?
It is pretty simple, but they both need to be within the addressable space of the processor.
An SPI based peripheral is going to get accessed by repetitive reads of &SPI1->DR, an address that ISN'T incrementing.
If the registers in the accelerometer are 16-bit and there are 3 of them, you'd program the DMA to transfer 6-bytes, and you'd be dependent on the external device to 'auto increment' its internal register address.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.