readme.txt 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. /*!
  2. \file readme.txt
  3. \brief description of the TIMER0 6-steps demo
  4. */
  5. /*
  6. Copyright (C) 2017 GigaDevice
  7. 2017-06-06, V1.0.0, firmware for GD32F3x0
  8. */
  9. This demo is based on the GD32350R-EVAL board, it shows how to configure the TIMER0
  10. peripheral to generate three complementary TIMER0 signals (for BLDC ) with dead time.
  11. TIMER0CLK is fixed to systemcoreclock, the TIMER0 prescaler is equal to 84(GD32F330)
  12. or 108(GD32F350) so the TIMER0 counter clock used is 1MHz.
  13. Channel change sequence:
  14. AB`->AC`->BC`->BA`->CA`->CB`
  15. step1:1-0 0-1 0-0 (CH0-CH0N CH1-CH1N CH2-CH2N)
  16. step2:1-0 0-0 0-1 (CH0-CH0N CH1-CH1N CH2-CH2N)
  17. step3:0-0 1-0 0-1 (CH0-CH0N CH1-CH1N CH2-CH2N)
  18. step4:0-1 1-0 0-0 (CH0-CH0N CH1-CH1N CH2-CH2N)
  19. step5:0-1 0-0 1-0 (CH0-CH0N CH1-CH1N CH2-CH2N)
  20. step6:0-0 0-1 1-0 (CH0-CH0N CH1-CH1N CH2-CH2N)
  21. Connect the TIMER0 pins to an oscilloscope to monitor the different waveforms:
  22. - TIMER0_CH0 pin (PA8)
  23. - TIMER0_CH0N pin (PB13)
  24. - TIMER0_CH1 pin (PA9)
  25. - TIMER0_CH1N pin (PB14)
  26. - TIMER0_CH2 pin (PA10)
  27. - TIMER0_CH2N pin (PB15)