Designed, Built, Tested
Board pictured here has been fully assembled and tested.

Overview

Design Resources

Design & Integration File

  • Schematic
  • BOM
Download Design Files 11.91 K

Description

The MAXREFDES1264 is a reference design for the MAX32630FTHR and MAX7404. It produces an accurate variable frequency sine wave for use as a general-purpose reference signal. The MAX7404 is an eighth-order elliptic switched-capacitor lowpass filter. The MAX32630FTHR is an ARM core-based low-power microcontroller board used to provide the clock and input signal to the MAX7400.

Details Section

TThe MAXREFDES1264 is a reference design for the MAX32630FTHR and MAX7404. It produces an accurate variable frequency sine wave for use as a general-purpose reference signal. The MAX7404 is an eighth-order elliptic switched-capacitor lowpass filter. The MAX32630FTHR is an ARM core-based low-power microcontroller board used to provide the clock and input signal to the MAX7400.

This document describes the hardware in Figure 1. It is a detailed, systematic technical guide to use a small, low-cost, portable sine-wave generator. The design was built and tested. The details follow later in this document.

Figure 1. MAXREFDES1264 hardware.
Figure 1. MAXREFDES1264 hardware.

Table 1. Design Specifications
Parameter Symbol Min Max
Input Frequency VIN 0Hz 5kHz
Clock Frequency CLK_IN 0Hz 500kHz

  • MAXREFDES1264
  • A laptop or PC

A sine wave with an arbitrary frequency is needed as a reference signal during various designs and testing. A simple sine wave is generated by passing a square wave through a lowpass filter. The MAX7404 is the lowpass filter used in this design. It is an eighth-order elliptic switch-capacitor filter that converts the input square wave to a sine wave (Figure 2).

Figure 2. Block diagram.
Figure 2. Block diagram.

The microcontroller acts as a square-wave generator feeding the filter with both clock and input signals. The filter's cut-off frequency is 1/100 of the clock frequency. The user can modify the frequencies through a serial monitor program from the PC. The algorithm works as follows:

The microcontroller clocks the filter with a 100kHz square wave. The input frequency of the filter is 1kHz. The eighth-order elliptic filter's sharp roll off sharply reduces the harmonic amplitudes in a 1kHz square-wave input, thereby producing a near-perfect 1kHz sine wave at its output. A digitally adjustable sine-wave source can be created by adjusting the clock and input frequencies, and while maintaining a ratio of 100:1 between them (using the divider-chain logic or a processor). Figures 3, 4, and 5 show the clock, input, and output signals, respectively.

Figure 3. Clock signal to the filter.
Figure 3. Clock signal to the filter.
Figure 4. Input square wave to the filter.
Figure 4. Input square wave to the filter.
Figure 5. Output sine wave.
Figure 5. Output sine wave.

The firmware is developed using an online MBED compiler. The input frequencies can be varied using a serial application like the tera term using the Universal Serial Bus-Universal Asynchronous Receiver/Transmitter (USB-UART) protocol. The microcontroller feeds the filter with the square waves. The firmware is tested. It can be downloaded from the design resources tab. The filter has a cut-off frequency of 10kHz, which needs a clock signal of 1MHz. The firmware is designed to support an input signal range from 0 to 5kHz due to the limitations of the MBED compiler to generate a 1MHz clock signal.

Support & Training

Search our knowledge base for answers to your technical questions. Our dedicated team of Applications Engineers are also available to answer your technical questions.