DDS Design Based on Vivado Calling ROM IP core
DDS Direct Digital Synthesizer
The following is the code of generating sine wave, triangle wave and square wave with MATLAB, which can be used directly.
1 t=0:2*pi/2^12:2*pi
2 y=0.5*sin(t)+0.5;
3 r=ceil(y*(2^8-1)); %Convert decimal to integer. ceil It's up.
4 fid = fopen('sin.coe','w'); %write to sin.coe File, used for initialization sin_r ...
Posted by Jack_Slocum on Fri, 04 Jan 2019 14:03:09 -0800
opencv Notes (22) - Implications of CV_8UC1,CV_32FC3 and other parameters
(1) Detailed description of CV_8UC1,CV_8UC2 and other parameters when Mat matrix (image container) is created
Mat is not only a very useful image container class, but also a general matrix class. There are many ways to create a Mat object. Let's first look at the source code of Mat matrix/image container class in OpenCv:
Usin ...
Posted by funkyfela on Tue, 25 Dec 2018 13:36:06 -0800
matlab 2c uses c + + to implement matlab signal operation functions awgn, normrnd, fft, sawtooth, sinc, signcdf, signpdf
Please download the reference first. Matrix matrix class (matlab2c.h file).
This time, we will give you c++ to implement the matlab function on the "signal operation" related functions, including
matlab functions such as awgn, normrnd, fft, sawtooth, sinc, signcdf, signpdf, etc.
Refer to the downloaded matlab2c.h file in y ...
Posted by dkim777 on Mon, 10 Dec 2018 17:18:05 -0800