Beruflich Dokumente
Kultur Dokumente
Summary
TM
This Application Note demonstrates how to configure the PSoC device to implement a Frequency Shift
Keying (FSK) generator.
Introduction
There are two major ways to send digital data. A cos(2f 1t ), if d (t ) = 1
The digital data may be sent digitally or s (t ) =
converted to an analog form. In digital signaling, A cos(2f 2 t ), if d (t ) = 0
the data is represented as square pulses. While
digital signaling is simple, it possesses one major
(2)
disadvantage. The Fourier analysis of a square
wave consists of a sinusoid at a fundamental
The data and its corresponding FSK signal for a
frequency (f) and an infinite number of odd
digital byte of 01011010 are represented in
harmonics. This is illustrated in Equation (1):
Figure 1:
4 1
f (t ) =
n=1,3,5,... n
sin(2nft ) 0 1 0 1 1 0 1 0
(1)
Two 8-Bit Pulse Width Modulators The band-pass filter controls the level of the
(PWM) fundamental and attenuates the harmonics to an
One 2-Pole Band-Pass Filter (BPFV2) acceptable level.
Along with the required encoding resources, it is PSoC Designer version 3.20 (or later) includes
necessary to generate the FSK signal. This is filter wizards and spreadsheets to aid in the filter-
possible through a variety of User Modules design process. For this particular application,
available including an 8-Bit Transmitter (TX), SPI, the following parameters are desired for the
or directly through software. band-pass filter when the data is a digital 1:
instead of 8.
Figure 5: 150 kHz Sinusoid Output of the Band-Pass Figure 7: Spectral Plot of the 150 kHz Sinusoid
Filter
Conclusion
With the use of two digital blocks, two switched
capacitor analog blocks, and minimal software,
the PSoC device successfully implements an
FSK generator.