readme.txt 773 B

123456789101112131415161718192021222324252627
  1. /*!
  2. \file readme.txt
  3. \brief description of the TIMER1 OC active 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
  10. configure the TIMER peripheral to generate three different signals with three
  11. different delays.
  12. The TIMxCLK frequency is set to systemcoreclock , the prescaler is 42000(GD32F330)
  13. or 54000(GD32F350) so the TIMER1 counter clock is 2KHz.
  14. And generate 3 signals with 3 different delays:
  15. TIMER1_CH0 delay = 4000/2000 = 2s
  16. TIMER1_CH1 delay = 8000/2000 = 4s
  17. TIMER1_CH2 delay = 12000/2000 = 6s
  18. Connect the TIMER1 pins to leds to watch the signal:
  19. - TIMER1_CH0 pin (PA0)
  20. - TIMER1_CH1 pin (PA1)
  21. - TIMER1_CH2 pin (PA2)