Subscribe to Test & Measurement World
RSS
Reprints/License
Print
Email
Average Rating:
  • (2)
    Rate this:
  • Test Ideas: Signal generator runs on Visual Basic

    Generate signals from 1 kHz to 68 MHz with two ICs and a few components.

    By William Grill, Riverhead Systems -- Test & Measurement World, 12/1/2009 2:00:00 AM

    Have a test idea you'd like to share?
    Publish it here and receive $150.
    Send us your ideas.

    Also:
    Read other Test Ideas
    Read Design Ideas published by EDN

    pdfbutton.gif

    Test applications often call for a clock signal. Rather than tie up a function generator, you can build a programmable clock generator with just two ICs. You can then control the clock generator with a Visual Basic application that handles frequency setting, provides interactive displays, and programs the circuit through the PC’s serial port. (You can use this link to download the software: www.tmworld.com/file/9775-1209_WEB_Idea_app.zip).

    The clock generator circuit in Figure 1 (see figure 1, below) uses an LTC6904, a 1-kHz-to-68-MHz programmable oscillator (Ref. 1). It provides frequency accuracy of 1.1% over the full frequency span with sufficient supply voltage. A 9-V battery provides power for the circuit. A 78L05 linear regulator drops the battery voltage to 5 V, which powers the circuit. The circuit adds a Schmitt-trigger output buffer to isolate the LTC6904’s output and increase current drive capacity from about 4 mA to 50 mA.

    TMW09_12ideaFig2

    Figure 2.
      A downloadable Visual Basic application lets you program the circuit's output frequency and select a serial port.

    The LTC6904 uses a two-wire I²C protocol for its programming. The software interfaces the serial port to the LTC6904 using the RS-232 DTR (data terminal ready) and RTS (request to send) signals on connector pins 4 and 7, respectively. You can use the software to select the clock generator’s output frequency and select the PC’s serial port (1 through 6).

    The LTC6904 is configured with 16 frequency blocks, each with resolution of 1024 steps. The knob at the lower left of the control window (Figure 2) loads the LTC6904 with 100 index steps while the right knob will index the output frequency by a single internal step.

    When you change a knob setting, you’ll see the new frequency in the numerical display. When you press the send button, the software will calculate the closest of the 16 frequency blocks and the index value. The code with then send the new frequency data to the LTC6904 through the serial port while displaying the frequency.

    To calculate frequency, the software uses this equation:

    Equation to calculate frequency

    where 1 kHz ≤ frequency ≤ 68 MHz. OCT is a four-bit code (0–15) that selects one of the 16 frequency blocks, and DAC is a 10-bit code (0–1023) that selects the frequency within the selected block. The LTC6904 data sheet explains the programming in detail.

    schematic of PC-based clock generator

    Figure 1. A programmable frequency generator IC is the heart of a PC-based clock generator
    References
    1. “LTC6903/LTC6904 1kHz - 68MHz Serial Port Programmable Oscillator,” Linear Technology. cds.linear.com/docs/Datasheet/69034fb.pdf.

    2. “74LVC1G17 Single Schmitt-trigger buffer,” Philips. www.datasheetcatalog.org/datasheet/philips/74LVC1G17GM.pdf.

    Average Rating:
  • (2)
    Rate this:
  • RSS
    Reprints/License
    Print
    Email
    Similar Content from T&MW

    No related content found.

    • 0 rated items found.

    Datasheets.com Electronic Parts & Inventory Search

    185 million searchable parts
    • Part Number
    • Description
    • Inventory
    • Products
    • Manufacturers
    Canon Resource Center

    Featured Company


    Most Recent Resources

    Featured Job On
    Scroll for More Jobs
    Advertisement
    More Content
    • Blogs
    • Webcasts

    Sorry, no blogs are active for this topic.

    » VIEW ALL BLOGS RSS
    • All


    Advertisement
    Advertisement
    About Us   |   Advertising Info   |   Site Map   |   Contact Us   |   FREE Subscription
    © 2011 UBM Electronics . All rights reserved.
    Use of this Web site is subject to its Terms of Use | Privacy Policy

    Feedback Form
    Feedback Analytics