TOP Contributors

  1. MIKROE (2762 codes)
  2. Alcides Ramos (374 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (91 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (139264 times)
  2. FAT32 Library (71752 times)
  3. Network Ethernet Library (57128 times)
  4. USB Device Library (47431 times)
  5. Network WiFi Library (43092 times)
  6. FT800 Library (42408 times)
  7. GSM click (29835 times)
  8. mikroSDK (28098 times)
  9. PID Library (26886 times)
  10. microSD click (26198 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Example

Generating Sin wave by Timer PWM with DMA

Rating:

0

Author: Olexiy Bondar

Last Updated: 2017-12-06

Package Version: 1.0.0.0

Example: 1.0.0.0

Category: Internal MCU modules

Downloaded: 759 times

Not followed.

License: MIT license  

example of generating sin wave with timer PWM by DMA and measuring it by ADC with timer triggering(sending by uart to PC). Display data on PC with SerialPlot

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Generating Sin wave by Timer PWM with DMA " changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Generating Sin wave by Timer PWM with DMA " changes.

Do you want to report abuse regarding "Generating Sin wave by Timer PWM with DMA ".

  • Information
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Example Blog

view

view

view

View full image
schem

schem

schematics is quite simple, just 1-st order low pass filter from timer output to ADC.

View full image
smart sin

smart sin

used to generate sin table for timer. http://tahmidmc.blogspot.com/2012/10/smart-sine-software-to-generate-sine.html

View full image

serial plot

used to show measured data https://hackaday.io/project/5334-serialplot-realtime-plotting-software

Watch on YouTube

ALSO FROM THIS AUTHOR

FFT + SIN Gererator

0

example is based on sin wave generator example: https://libstock.mikroe.com/projects/view/2206/generating-sin-wave-by-timer-pwm-with-dma with addind FFT(Fast Fourier Transform) to see frequency domain instead time domain on PC.

[Learn More]

STM32 rotary encoder + timer

0

encoder processing by STM`s timer.

[Learn More]

FIR(Finite impulse response) + FFT(Fast Fourier Transform)

0

Finite impulse response (FIR) filters is wide using in DSP. here is examlple of low pass filter. for more information read wiki: https://en.wikipedia.org/wiki/Finite_impulse_response this exemple is based on FFT + SIN Gererator https://libstock.mikroe.com/projects/view/2207/fft-sin-gererator

[Learn More]