Generating Sine Wave Signals Using DAC and DMA

Generating Sine Wave Signals Using DAC and DMA

Software Development Tool: MPLAB X IDE v6.25MCC Configuration Tool: v5.5.2Chip Model: dsPIC33CK32MP502Principle Analysis: The DAC generates small segments of DC voltage. Since the duration of these small DC voltage segments is very short, they can be considered as a “point“, and many such segments can be stitched together to form a complete sine wave. As … Read more

The Thirty-Six Questions of C Language: The Heavenly Fierce Star

The Thirty-Six Questions of C Language: The Heavenly Fierce Star

Task: Draw a sine wave, a logarithmic spiral, and an arithmetic spiral.First, draw the mathematical two-dimensional coordinate axes and mark the scales accordingly on the axes.Then, draw a sine wave in red, a logarithmic spiral in green, and an arithmetic spiral in blue.EffectSource Code #define _CRT_SECURE_NO_WARNINGS#include <graphics.h>#include <math.h>#include <stdio.h>#include <conio.h>#define PI 3.1415926535 int main() { … Read more

DAC Technology: Digital to Analog Conversion and Waveform Generator Design

DAC Technology: Digital to Analog Conversion and Waveform Generator Design

DAC Technology: Digital to Analog Conversion and Waveform Generator Design DAC Technology: The Mystery from Digital to Analog – Practical Design of Waveform Generators Hello everyone, I’m Daodao. Today we will talk about DAC technology, which stands for Digital to Analog Conversion. In simple terms, it allows a microcontroller to output various voltage values, such … Read more