This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`timescale 1ns / 1ps | |
////////////////////////////////////////////////////////////////////////////////// | |
// Company: Carrier Frequency, Inc. | |
// Engineer: Jon Carrier | |
// | |
// Create Date: 21:33:11 06/17/2011 | |
// Design Name: | |
// Module Name: FPGA_2_LCD | |
// Project Name: | |
// Target Devices: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`timescale 1ns / 1ps | |
//////////////////////////////////////////////////////////////////////////////// | |
// Company: Carrier Frequency, Inc. | |
// Engineer: Jon Carrier | |
// | |
// Create Date: 21:33:11 01/26/2012 | |
// Design Name: | |
// Module Name: FPGA_2_ShiftReg | |
// Project Name: | |
// Target Devices: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clear all; | |
close all; | |
clc; | |
tArray=0:.01:4; | |
%Add some noise for good measure | |
noise=.1.*randn(1,length(tArray)); | |
vArray=sin(tArray).*sin(3*pi.*tArray)+noise; | |
%computes the difference of each neighboring | |
%element in the boolean expression | |
test=diff(vArray>=0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void sweep(){ | |
radio.mute(); | |
Metrics RSQ; | |
Serial.print("SCAN_BEGIN:"); | |
for(word i=6400;i<=10800;i+=10){ | |
Serial.print(i,DEC); | |
Serial.print(":"); | |
radio.tuneFrequency(i); | |
radio.getRSQ(&RSQ); | |
Serial.print(RSQ.SNR,DEC); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% A simple example of how to reconstruct | |
% the frequency components from an FFT | |
%% Clean up the workspace | |
clear all; | |
close all; | |
clc; | |
%% Create the initial parameters | |
Window=5; %Set how long in time to sample + and - | |
Fs=100; %Set the sampling frequency |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`timescale 1ns / 1ps | |
////////////////////////////////////////////////////////////////////////////////// | |
// Engineer: Jon Carrier | |
// | |
// Create Date: 13:47:10 12/03/2009 | |
// Design Name: MCP3002 ADC SPI | |
// Module Name: adc | |
// Project Name: MCP3002 ADC SPI | |
// Target Devices: MCP3002, Spartan3E | |
// Tool versions: ISE 11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`timescale 1ns / 1ps | |
////////////////////////////////////////////////////////////////////////////////// | |
// Engineer: Jon Carrier | |
// | |
// Create Date: 13:47:10 12/03/2009 | |
// Design Name: MCP3002 ADC SPI | |
// Module Name: adc | |
// Project Name: MCP3002 ADC SPI | |
// Target Devices: MCP3002, Spartan3E | |
// Tool versions: ISE 11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Written By Jon Carrier | |
library IEEE; | |
use IEEE.STD_LOGIC_1164.all; | |
use IEEE.STD_LOGIC_UNSIGNED.ALL; | |
use ieee.numeric_std.all; | |
entity PWM is | |
generic ( | |
prescale: integer := 0; --frequency(PWM_clk)=frequency(i_CLK/(prescale+1)) |