readme.txt 863 B

1234567891011121314151617181920212223242526
  1. /*!
  2. \file readme.txt
  3. \brief description of the TIMER1 single pulse 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
  10. to configure the TIMER1 peripheral in single pulse mode.
  11. The external signal is connected to TIMER1 CH0 pin (PA0) and the falling
  12. edge is used as active edge.
  13. The single pulse signal is output on TIMER1 CH1 pin (PA1).
  14. The TIMER1CLK frequency is set to systemcoreclock (84MHz for GD32F330,108MHz
  15. for GD32F350),the prescaler is 7(GD32F330) or 9(GD32F350),so the TIMER1 counter
  16. clock is 12MHz.
  17. single pulse value = (TIMER1_Period - TIMER1_Pulse) / TIMER1 counter clock
  18. = (41999 - 20999) / 12MHz = 1.75 ms.
  19. Connect the TIMER1 CH0 pin (PA0)to KEY,When KEY is pressed,a single pulse is generated.