(C) COPYRIGHT 2015 WIZnet
THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, WIZnet SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
This example shows how to use the PWM peripheral to generate PWM output signal.
The PWM channel 3, 4, 5 frequency is set to SystemCoreClock(Hz), the Prescaler is 2 so the PWM channel 3, 4, 5 counter clock is 10 MHz. SystemCoreClock is set to 20 MHz.
The PWM channel 3, 4 is set as up-count and periodic mode and 5 is set as down-count and one-shot mode. So PWM channel 5 generates output signal once. The PWM channel 3, 4, 5 are all PWM output enabled.
The PWM channel 3 is configured in Timer Mode and duty cycle is 80 % and 4 is 30 %.
The PWM channel 3 is mapped to PA_06, 4 is mapped to PA_07 and 5 is mapped to PA_08.
To select the WIZnet WIZwiki platform used to run the example.
WIZwiki W7500 Set-up
In order to make the program work, you must do the following :