Application | This example code uses M251 QSPI with PDMA to simulate PWM output signals. | BSP Version | M251_M252_M254_M256_M258_Series_BSP_CMSIS_V3.02.007 | Hardware | NuMaker-M251SD-V1.1 |
This example code uses the M251 QSPI with PDMA to simulate PWM output signals.
Most MCUs (microcontrollers) come with built-in PWM interface, but if you need multiple PWM outputs, you may face a shortage of available channels. In such cases, if there are unused peripherals in your application, you can simulate PWM signals using those peripherals. This example code demonstrates the usage of the QSPI interface with PDMA to output PWM signals. PDMA is used in Scatter-Gather mode for continuous data transfer.
This example code does not require additional external hardware modules. If you need to observe the output signals, you can use devices such as an oscilloscope or logic analyzer to measure the output waveform. You can download the sample code at EC_M251_QSPI_with_PDMA_to_Simulate_PWM_V1.00
|