Difference between revisions of "Example mcp4922 test"

From wiki.emacinc.com
Jump to: navigation, search
(Created page with "{{todo|InProgress(11.14.13-12:14->JG+)|Jgreene|project=oe 4,oe 5,ky,md,InProgress}} <big>This procedure provides an overview of how to compile and run the ''mcp4922_test'' C e...")
 
(What it does)
Line 11: Line 11:
 
==What it does==
 
==What it does==
  
This is a simple C++ example application. It is a test harness for the person class.
+
This is an example application for accessing the EMAC interface for the on-board DtoA of the SoM-150ES. This interface uses the EMAC ioex class to provide a GPIO-like interface (see also the egpc project). This application outputs a sine wave on channel 0 and a cosine wave on channel 1.
  
 
'''Usage for mcp4922_test'''
 
'''Usage for mcp4922_test'''

Revision as of 15:29, 14 November 2013

TODO: {{#todo:InProgress(11.14.13-12:14->JG+)|Jgreene|oe 4,oe 5,ky,md,InProgress}}

This procedure provides an overview of how to compile and run the mcp4922_test C example project. It assumes familiarity with the C programming language and is intended to be used by experienced programmers who are looking to learn the EMAC SDK.

1. Open the C/C++ editing perspective

2. Open the mcp4922_test project

3. Build, upload and run



What it does

This is an example application for accessing the EMAC interface for the on-board DtoA of the SoM-150ES. This interface uses the EMAC ioex class to provide a GPIO-like interface (see also the egpc project). This application outputs a sine wave on channel 0 and a cosine wave on channel 1.

Usage for mcp4922_test

mcp4922_test

ie: ./mcp4922_test