/*!
    \file  readme.txt
    \brief description of the TIMER0 deadtime break demo
*/

/*
    Copyright (C) 2017 GigaDevice

    2017-02-10, V1.0.0, firmware for GD32F403
*/

    This demo shows how to configure the TIMER0 peripheral to 
generate complementary signals, to insert a defined dead time 
value, to use the break feature and to lock the desired parameters.

  TIMER0CLK is fixed to systemcoreclock, the TIMER0 prescaler is equal 
to 167 ,so the TIMER0 counter clock used is 1MHz.

  The duty cycle is computed as the following description:
the channel 0 duty cycle is set to 25% so channel0N is set to 75%.

  Insert a dead time equal to (63*16*4)/systemcoreclock = 24us

  Configure the break feature, active at low level(with GND), and using the 
automatic output enable feature.

  Use the Locking parameters level1.

