
312 CHAPTER 18. PROJECT 9: MPSK AND QAM DIGITAL TRANSMITTERS
xQ [ i ]=xQ [ i −1]; // setup xQ [] for the next input value
24 }
}
26
counter++;
28
output = output_gain ∗( yI ∗cosine [ counter &3] − yQ ∗sine [ counter&3]) ;
30
CodecDataOut . Channel [ LEFT ]=output ; // setup the LEFT value
32 CodecDataOut . Channel [ RIGHT ]=output ; // setup the RIGHT value
// end of my impulse modulated QPSK routine
An explanation of Listing 18.3 follows.
1. (Lines 2–6): Once per symbol period, we generate a random number that is bitwise
ANDed with 3. This bit masking operation generates the variable symbol which is
then used to access the QPSK lookup table. The appropriate ...