readme.txt 899 B

12345678910111213141516171819202122232425
  1. /*!
  2. \file readme.txt
  3. \brief description of the TIMER0 DMA 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. use DMA with TIMER0 update request to transfer data from memory to TIMER0
  11. capture compare register 1.
  12. TIMER0CLK is fixed to systemcoreclock, the TIMER0 prescaler is equal to 84(GD32F330)
  13. or 108(GD32F350) so the TIMERp counter clock used is 1MHz.
  14. The objective is to configure TIMER0 channel 0(PA8) to generate PWM signal with
  15. a frequency equal to 1KHz and a variable duty cycle(25%,50%,75%) that is changed
  16. by the DMA after a specific number of Update DMA request.
  17. The number of this repetitive requests is defined by the TIMER0 repetition counter,
  18. each 2 update requests, the TIMER0 Channel 0 duty cycle changes to the next new
  19. value defined by the buffer.