image thumbnail

SFSK modulation implemented on MCU

by

 

Implementation of SFSK modulation type on Piccolo F28027 MCU

SFSK modem verification for TI F28027 Piccolo MCU

SFSK modem verification for TI F28027 Piccolo MCU

Contents

Select the TI Board (CPU)

[boardnum,procnum] = boardprocsel;

Set conection from MATLAB to CCS IDE

cc=ticcs('boardnum',boardnum,'procnum',procnum);

Get the address of the global data buffer

outBufAddress = address(cc,'out_buf');

Read Data and Convert from I8Q24 to double format

val = read(cc,outBufAddress,'int32',1600)';
val_R = zeros(length(val),1);
neg_pow(9:32) = -1:-1:-24;
for i=1:length(val)
    binVal = dec2bin(abs(val(i)),32);
    for j=2:32
        if binVal(j) ~= '0' && j<8
            val_R(i)=val_R(i)+2^(9-j);
        elseif binVal(j) ~= '0' && j>=8
            val_R(i)=val_R(i)+2^neg_pow(j);
        end
    end
    if val(i)<0
        val_R(i) = -val_R(i);
    end
end

Plot the DSP memory buffer in MATLAB

subplot(211)
plot(0:1/200:1599/200,val_R)
subplot(212)
MyFFT(val_R,2048,200)

Compare result with CCS IDE

figure, imshow('sfsk.png')
Warning: Image is too big to fit on screen; displaying at 67% 

Contact us