readme.txt 1.0 KB

1234567891011121314151617181920212223242526
  1. /*!
  2. \file readme.txt
  3. \brief description of the FWDGT_key example
  4. */
  5. /*
  6. Copyright (C) 2017 GigaDevice
  7. 2017-06-06, V1.0.0, firmware for GD32F3x0
  8. */
  9. This example is based on the GD32350R-EVAL board, it shows how to
  10. reload the FWDGT counter at regulate period using the EXTI interrupt. The FWDGT
  11. timeout is set to 1s (the timeout may varies due to IRC40K frequency dispersion).
  12. An EXTI is connected to a specific GPIO pin and configured to generate an interrupt
  13. on its falling edge: when the EXTI Line interrupt is triggered (by pressing the Tamp Key
  14. on the board), the corresponding interrupt is served. In the ISR, FWDGT counter is reloaded).
  15. As a result, when the FWDGT counter is reloaded, which prevents any FWDGT reset, LED2 remain
  16. illuminated.
  17. If the EXTI Line interrupt does not occur, the FWDGT counter is not reloaded before
  18. the FWDGT counter reaches 00h, and the FWDGT reset. If the FWDGT reset is generated, LED2
  19. is turned off with the system reset.
  20. In this example the system clock is set to 108 MHz.