Subscribe to EDN
RSS
Reprints/License
Print
Email

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, May 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.

RSS
Reprints/License
Print
Email
Talkback
Canon Resource Center

Featured Company


Most Recent Resources

Advertisement
Related Content

No related content found.

  • 0 rated items found.
Advertisement

KNOWLEDGE CENTER

Datasheets.com Parts Search

185 million searchable parts
(please enter a part number or hit search to begin)
Engineering Careers
Jobs sponsored by
Advertisement
About EDN   |   Site Map   |   Contact Us   |   Subscription   |   RSS
© 2012 UBM Electronics. All rights reserved.
Use of this Web site is subject to its Terms of Use | Privacy Policy

Please visit these other UBM Canon sites

UBM Canon | Design News | Test & Measurement World | Packaging Digest | EDN | Qmed | Pharmalive | Appliance Magazine | Plastics Today | Powder Bulk Solids | Canon Trade Shows