readme.txt 792 B

123456789101112131415161718192021222324
  1. /*!
  2. \file readme.txt
  3. \brief description of the comparator window 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 make an analog
  10. watchdog by using comparator
  11. peripherals in window mode:
  12. - The upper threshold is set to VREFINT = 1.22V
  13. - The lower threshold is set to VREFINT / 2 = 1.22V = 0.610V
  14. - The input voltage is configured to be connected to PC1
  15. If the input voltage is above the higher threshold, LED1 and LED3 are turned on.
  16. If the input voltage is under the lower threshold, LED2 and LED4 are turned on.
  17. If the input voltage is within the thresholds, the MCU remains in deepsleep mode
  18. and all leds are turned off.
  19. Connect PA1 to PC1.