How to do ASK and FSK data coms?

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Submitted by pete on Wed, 05/13/2009 - 22:25 

 

I need to produce these waveforms

 

FSK005_0.jpg

Tagged:

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited November 2020

    Submitted by pete on Wed, 05/13/2009 - 22:27.

     

    FSK+ASK.png

     

    1) Use Import block to read data file containing symbols valued 1 thru 3. Set data point interval to 1 sec and disable interpolation.
    2) Merge blocks selects frequency and amplitude gains based on testing bits in input symbol stream from import block.
    3) Boolean AND of input data with 0x1 tests low order bit 1 (True for binary 01 and 11, decimal 1 and 3), Boolean AND of 0x2 tests bit 2 (binary 10 and 11, decimal 2 and 3)
    4) Frequency is controlled by using merge block to apply gain of 4 to 2pi based on symbol bit test from 3). 1/s integrates frequency constant to create ramp of input slope to sin.
    5) Amplitude is controlled by using merge block to apply gain of 2 to sin output.

    Unable to find an attachment - read this blog

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2016

    Submitted by samuel on Fri, 07/23/2010 - 02:33.

    I do not understand what is going on with the 'AND' portion of the block diagram. I thought AND had to take Boolean inputs, but the values from symbolSequence.txt are decimal. And what are the '0x2' and '0x1' constants? Are they in hex format?

    I can't find the answers to these questions within the VisSim User's Guide or with in the program's help menu.

    Thanks.

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2016

    Submitted by pete on Fri, 07/23/2010 - 10:20.

    However, 0x1 = 1 and 0x2 = 2 so you don't need to use hex in this situation. The 'and' operator is doing a bitwise and. In this case, each bit in one binary word is 'and'ed with the corresponding bit in the other word. We are using 2 bits in this case.

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2016

    Submitted by samuel on Fri, 07/23/2010 - 23:55.

    I appreciate the response.