To simulate a 16-bit 4th order Delta-Sigma ADC in MATLAB, you can use the Delta-Sigma Toolbox. The following code demonstrates how to set up the system parameters and simulate the ADC:
main.m694 chars24 lines
Note that this code assumes that the Delta-Sigma Toolbox is installed and added to the MATLAB path. The resulting y
vector contains the digital output of the ADC. To plot the FFT of the output, you can use the following code:
main.m206 chars8 lines
This will plot the FFT of the ADC output in dBFS (decibels full scale) as a function of frequency.
gistlibby LogSnag