Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: May 16, 2008

Input Capture/Function Generator using NI ELVIS II and Freescale MCU SLK

0 ratings | 0.00 out of 5
Print

Overview

Extend your knowledge of timer overflow and see how it can generate an interrupt. You will also learn about internal timer hardware and write an interrupt service routine (ISR) to handle the timer overflow interrupt.

Downloads

Filename: e2fs_input_capture.zip
Requirements: View

In addition to generating accurate time intervals in our microcontroller programs, we frequently need to time external events. The timer circuit includes an input capture system that allows our programs to do this.

At the conclusion of this module you will be able to write a program using the input capture features to measure the width of a pulse or the frequency of a signal. You will also be able to output a function from your microcontroller to the NI ELVIS II Oscilloscope and generate a similar function using the NI ELVIS II's onboard Function Generator.

Requirements


Filename: e2fs_input_capture.zip

Software Requirements


Language(s): C
Additional Software: CodeWarrior

Hardware Requirements


Hardware Group: Multifunction DAQ (MIO)
Hardware Model: NI ELVIS 2
Driver: NI ELVISmx Software 4.0

 
0 ratings | 0.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).