Professional Documents
Culture Documents
net/publication/284178443
CITATIONS READS
0 460
3 authors, including:
Some of the authors of this publication are also working on these related projects:
“Study of the piezoelectric response of layered microgenerators on flexible substrates” View project
All content following this page was uploaded by Ivailo Milanov Pandiev on 19 November 2015.
Clock
types of generators, such as voltage-controlled oscillators n = 10-14
Frequency control Phase truncation
(VCOs), quartz crystal resonator sensors, voltage-to-frequency M = tuninig word 12 bits
fc
converters, etc. [1-4]. The traditional hardware realization of System clock
DAC
787
For an n-bit phase accumulator (n generally ranges from 44 In our development the DDS generating core is
to 32 in most DDS systems), there are 2 n possible phase implemented on a FPGA, which allows best versatility and
points. The digital word in the delta phase register, M, makes the design open for constant improvement. VHDL is
represents the amount the phase accumulator is incremented used for programming FPGA IC. On the other hand the DAC
each clock cycle. If f c is the clock frequency, then the function is accomplished by a PSoC from Cypress Inc. Using
the PSoC technology also allows implementation of the LPF
frequency of the output sinewave is equal to
and PGA on the same integrated circuit. The above functions
of DAC, LPF and PGA are realized by the graphical editor of
M × fc
f0 = . (1) PSoC Designer IDE from Cypress Inc.
2n Xilinx® Spartan®-3A Evaluation Kit from Avnet is used as
This equation is known as the DDS “tuning equation”. The a development platform for realization the circuits. It poses
frequency resolution of the system is equal to f c / 2 n . For n = the following key features related to the current design [9]:
-Xilinx XC3S400A-4FTG256C Spartan-3A FPGA;
32, the resolution is greater than one part in four billion [1].
-Cypress 8C24894 PSoC;
-USB connectivity.
III. DDS FUNCTION GENERATOR DEVELOPMENT The block diagram of the Evaluation Kit is shown in Fig. 3.
BASED ON FPGA AND PSOC The blocks of interest are patterned.
Done
memory
Parallel Flash
- Output signal forms : sine, triangular, square; JTAG
conn
Memory 4M x 8
/ 2M x 16
resolution;
- Amplitude tuning method : digitally;
16 MHz
5V Supply 1.2V
B. Approach
Power
Jack
788
Uo
Contr. Unit UART UART DAC LPF PGA
GAIN
SINE_wave TRIANGLE_
wave
FPGA PSoC
Valid command NO
from the USB?
DBB00 DBB01 DCB02 DCB03
3
TIMER16_1 UART UART
TIMER16_1
TIMER16_LSB TIMER16_MSB TX RX
TX Clock Out
YES Capture CompareOut
TermCountOut
RX Input
RX Clock Out
Command for:
Command for:
-Wave form
-frequency
DIGITAL CONFIGURATION
-Gain
BLOCKS
7 GIO 0 7 GIE 0 7 GOO 0 7 GOE 0
RIO[0]
RIO[1]
RIO[2]
RIO[3]
Capture
TIMER16_MSB
RX Clock Out
RIO[0]
RIO[1]
RIO[2]
PORT_5_0
PORT_5_2
The DDS core block from Fig. 4 incorporates three sub PORT_0_3
PORT_0_5
shapes – sine, triangle or square. The sine wave sub block has
Input
AGND
AnalogBus
Reference
DAC8
ASD11
LPF2
MSB FLOUT
CompBus
AnalogBus AnalogBus
ftw_i(N-1...0) phase(M-3...0)
ASD20 ASC21
+ z
-1
+ z
-1
0
1/4 sin
0 ampl_o(P-1...0) DAC8 LPF2
- + 1
LUT
-
LSB FLIN
Input
1
buf 0 buf 1
M-2
2 -1
phase(M-2)
phase(M-1)
phase_i(N-1...0) phase_o(N-1...0)
ACB00 ACB01
Fig. 6. Sine wave sub block. 2 PGA
GAIN
Input
ANALOG CONFIGURATION
AnalogBus
AGND
Reference
DAC8 LPF2
operations (negating, subtraction), resulting in a reduced MSB FLOUT
AnalogBus VompBus
memory requirement. The resolution of the frequency tuning
word (FTW), the phase and the amplitude can be defined ASD20 ASC21
DAC8 LPF2
separately [10]. LSB FLIN
789
Fig. 8. Sinusoidal output signal. Fig. 9. Triangle output signal. Fig. 10. Square output signal.
790