(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 run Dead-zone generation.
The PWM channel 0 frequency is set to SystemCoreClock(Hz), the Prescaler is 2 so the PWM channel 0 counter clock is 10 MHz. SystemCoreClock is set to 20 MHz.
The PWM channel 0 is set as up-count and periodic mode, and the dead-zone counter value is set as 100. The PWM output is enabled. So as a result, the output of PWM channel 1 is inverted the PWM channel 0 output.
The PWM channel 0 output is mapped to PC_00, and inverted output is mapped to PC_01(The PWM channel 1 output).
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 :