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
; Note1: About DJNZ Operation (DJNZ R1, $) | |
; | Decrement the Contents of R1 and If the Result Is | |
; | Non-Zero Jump Back to This Line. In this Way, The Contents | |
; | of R1 Are Continuously Decremented until They Each Zero. | |
; | Remember That This Command Takes 2 Machine Cycles. | |
; Note2: About Registers Usage | |
; | Use of R0: Holding Delay x Counter | |
; | Use of R1: Holding First Sensor Input Value | |
; | Use of R2: Holding Secoond Sensor Input Value |
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
clc; | |
clear all; | |
close all; | |
FigHandle = figure('Menu','none','Position', [350, 200, 700, 500]); | |
xSignal = [ 1 0 0 1 1 0 1 0 1 1 ]; | |
n = 1; | |
signalLength = length(xSignal); | |
xSignal(signalLength+1) = 1; |
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
clc; | |
clear all; | |
close all; | |
FigHandle = figure('Menu','none','Position', [350, 200, 700, 500]); | |
xSignal = [ 1 0 0 1 1 0 1 0 1 1 ]; | |
n = 1; | |
signalLength = length(xSignal); | |
xSignal(signalLength+1) = 1; |
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
// QPSK Program | |
clc; | |
clear all; | |
close all; | |
xSignal = [ 1 0 0 1 1 0 1 0 1 1 ]; | |
bitPeriod = 0.000001; | |
Amplitude = 5; | |
bitRate = 1/bitPeriod; | |
frequency = bitRate; |
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
clc; | |
clear all; | |
close all; | |
FigHandle = figure('Menu','none','Position', [350, 200, 700, 500]); | |
xSignal = [ 1 0 0 1 1 0 1 0 1 1 ]; | |
n = 1; | |
xSignal = ~xSignal; | |
signalLength = length(xSignal); |
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
clc; | |
clear all; | |
close all; | |
FigHandle = figure('Menu','none','Position', [350, 200, 700, 500]); | |
xSignal = [ 1 0 0 1 1 0 1 0 1 1 ]; | |
n = 1; | |
signalLength = length(xSignal); | |
xSignal(signalLength+1) = 1; |
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
clc; | |
clear all; | |
close all; | |
FigHandle = figure('Menu','none','Position', [350, 200, 700, 500]); | |
xSignal = [ 1 0 0 1 1 0 1 0 1 1 ]; | |
bitPeriod = 0.1; | |
Amplitude = 5; | |
bitRate = 1/bitPeriod; |
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
clc; | |
clear all; | |
close all; | |
FigHandle = figure('Menu','none','Position', [350, 200, 700, 500]); | |
xSignal = [ 1 0 0 1 1 0 1 0 1 1 ]; | |
bitPeriod = 0.1; | |
Amplitude = 5; | |
bitRate = 1/bitPeriod; |
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
clc; | |
clear all; | |
close all; | |
syms x | |
polynomialPattern = x^8+x^7+x^6+x^4+x^2+1; | |
dataWord = [0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 1 0 0 0 0 0 0 0 1 0 1 0 0 0 1 0 1 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]; | |
pattern = sym2poly(polynomialPattern); | |
dataDisplay = num2str(dataWord); |
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
clc; | |
clear all; | |
close all; | |
pattern = [1 0 0 0 0 0 1 1 1]; | |
dataWord = [0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 1 0 0 0 0 0 0 0 1 0 1 0 0 0 1 0 1 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]; | |
dataDisplay = num2str(dataWord); | |
dataDisplay(isspace(dataDisplay)) = ''; |
NewerOlder