![]() |
MKM34Z256VLx7 Bare Metal Software Drivers
R4.1.6
Reference Manual
|
This example shows advanced use of the Direct Memory Access (DMA) module for storing results of the analogue to digital conversion to the buffer without software intervention. The example configures AFE channel in low power mode, clocked by 1MHz IRC and with PGA disabled. The OSR value=1024 thus output sample rate=976Hz. After AFE channel and DMA transfer converted 24-bit results to the dedicated RAM memory array are configured the conversion starts and device enters Very Low Power Stop (VLPS) mode. When the last converted 24-bit result is transferred (after ~ 4 seconds) the DMA channel generates interrupt request and device resumes VLPR operation.
IAR EWARM 7.40.7 | KEIL uVision 5.15 | CrossWorks 3.6 | ATOLLIC TrueStudio 5.3.0 | Kinetis Design Studio 3.0.0 |
---|---|---|---|---|
♦ | ♦ | ♦ | ♦ | ♦ |