Advertisement

Zibb

Design Idea

Microcontroller displays multiple chart or oscilloscope timing ticks

A crystal controlled microcontroller generates precise timing ticks.

William Grill, Honeywell, Lenexa, KS; Edited by Charles H Small and Fran Granville -- EDN, 5/1/2008

While working with a 10-bit DI-184 module from Dataq to monitor and display vibration-sensor data, I found that, although the chart displays a time index, this time reference is not visible in the saved file. You can add time ticks, representing seconds or minutes, to a chart graphic by using a simple and inexpensive crystal-based microcontroller to generate a sequence of tags on a dedicated chart channel. Figure 1 shows a small, eight-pin 12F508 microcontroller from Microchip Technology that provides multiple timing ticks. Listing 1, the microcontroller’s program, offers four timing sequences. You can select a timing sequence by strapping pins 4 and 6 (Table 1).

The 4-MHz crystal maintains a solid instruction-timing reference, and equalized coded branches in the listing maintain accurate timing ticks. You can also configure the 12F508 with an internal, 4-MHz RC oscillator. You base the coded loops on a sequence of exactly 25 instructions, and they provide a fundamental, base-reference loop that is exactly 100 instructions. A 16-bit register counter serves as the multiplier to produce the base timing. For use with scopes, you can recode the listing with minor changes to use 50 instructions or a 50-µsec base-timing-tick minimum. The 8-bit registers in the equalized loop provide multipliers to produce the additionally tiered output. The microcontroller uses two output pins, 5 and 7, as a pseudo 2-bit DAC. This configuration generates one of four voltage levels for timing ticks that display continuously, and you can record them along with application data.



Reed Business Information Resource Center

Featured Company


Related Resources

ADVERTISEMENT

ADVERTISEMENT

Feedback Loop


Post a CommentPost a Comment

There are no comments posted for this article.

Related Content

 

By This Author

There are no additional articles written by this author.


ADVERTISEMENT

Knowledge Center


Events

Defect-Based Testing Course
Dates: 3/24/2010 - 3/26/2010
Location: Melaka, Malaysia

EMC 2010: SI and EMC – A Twisted Pair
Dates: 4/20/2010 - 4/20/2010
Location: Von Braun Center, Huntsville Alabama

Multicore Expo
Dates: 4/26/2010 - 4/29/2010
Location: San Jose, CA

11th R&D-Product Development Metrics Summit
Dates: 5/4/2010 - 5/6/2010
Location: Four Points Sheraton Hotel - Norwood, MA

5th Fraunhofer IMS Workshop
Dates: 5/4/2010 - 5/5/2010
Location: Duisburg/Germany

Submit an EventSubmit an Event




Technology Quick Links

EDN Marketplace


©1997-2010 Reed Business Information, a division of Reed Elsevier Inc. All rights reserved.
Use of this Web site is subject to its Terms of Use | Privacy Policy