Difference between revisions of "Example mcp4922 test"
Line 1: | Line 1: | ||
{{todo|InProgress(11.14.13-15:09->JG+)|Jgreene|project=oe 4,oe 5,jg,md,InProgress}} | {{todo|InProgress(11.14.13-15:09->JG+)|Jgreene|project=oe 4,oe 5,jg,md,InProgress}} | ||
− | + | This is a guide to the <code>mcp4922_test</code> C example project included in the EMAC OE SDK. | |
− | + | 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 [http://wikidev.emacinc.com/wiki/Example_egpc egpc project]). This application outputs a sine wave on channel 0 and a cosine wave on channel 1. | |
− | + | The <code>mcp4922_test</code> project builds one executable: <code>mcp4922_test</code>. | |
− | ====3. Build | + | == Opening, Building and Uploading the Project Files == |
− | < | + | |
+ | <big>1. Open the C/C++ editing perspective.</big> | ||
+ | |||
+ | stub | ||
+ | |||
+ | <big>2. Open the project files.</big> | ||
+ | |||
+ | stub | ||
+ | |||
+ | <big>3. Build the project.</big> | ||
+ | |||
+ | stub | ||
+ | |||
+ | <big>4. Upload the executables to the target system.</big> | ||
+ | |||
+ | stub | ||
+ | |||
+ | ==Usage and Behavior== | ||
− | |||
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. | 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. |
Revision as of 15:25, 27 December 2013
This is a guide to the mcp4922_test
C example project included in the EMAC OE SDK.
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.
The mcp4922_test
project builds one executable: mcp4922_test
.
Opening, Building and Uploading the Project Files
1. Open the C/C++ editing perspective.
stub
2. Open the project files.
stub
3. Build the project.
stub
4. Upload the executables to the target system.
stub
Usage and Behavior
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
You'll get the signal on the analog out port. Pin 15 is analog out 0 and pin 16 is analog out 1. GND is 1,2,17,18. Range is 5V. You'll need an oscilloscope and a board schematic.