emios_frequency_modulated_pwm#
Overview#
The eMIOS project is a simple demonstration example of the SDK eMIOS driver to use eMIOS as PWM generator.
It configures eMIOS UC (Unified channel) as Output Pulse Width and Frequency Modulation Buffered (OPWFMB) mode.
Every two seconds, eMIOS will update PWM frequency from 10kHz to 20kHz, or from 20kHz to 10kHz.
eMIOS generate 10kHz PWM at first.
Supported Boards#
FRDM-MCXE31B
Hardware requirements
Micro USB cable
FRDM-MCXE31B Board
Personal Computer
Oscilloscope
Board settings
Probe the PWM signal using an oscilloscope
At J3-15 for PWM channel
Prepare the Demo
Connect a type-c USB cable between the host PC and the MCU-Link USB port (J13) on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
When the example runs successfully, following information can be seen on the OpenSDA terminal:
eMIOS frequency modulated PWM Example
Update PWM frequency to 20kHz
Update PWM frequency to 10kHz
Update PWM frequency to 20kHz
Update PWM frequency to 10kHz
...
FRDM-MCXE32B
Hardware requirements
Micro USB cable
FRDM-MCXE32B board
Personal Computer
Oscilloscope
Board settings
Probe the PWM signal using an oscilloscope
At J3-15 for PWM channel
Prepare the Demo
Connect a type-c USB cable between the host PC and the MCU-Link USB port (J13) on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
When the example runs successfully, following information can be seen on the OpenSDA terminal:
eMIOS frequency modulated PWM Example
Update PWM frequency to 20kHz
Update PWM frequency to 10kHz
Update PWM frequency to 20kHz
Update PWM frequency to 10kHz
...