readme.txt 568 B

12345678910111213141516171819
  1. /*!
  2. \file readme.txt
  3. \brief description of the TIMER1 OC toggle 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 the toggle signal.
  11. The TIMxCLK frequency is set to systemcoreclock , the prescaler is 42000(GD32F330)
  12. or 54000(GD32F350) so the TIMER1 counter clock is 2KHz.
  13. TIMER1 configuration: output compare toggle mode:
  14. CH1 update rate = TIMER1 counter clock / CH1CC = 2000/4000 = 0.5 Hz.