我是刚接触2808的,也看了一些datasheet,现在想看一些例程,最近看了一个2808的ADC转换的例程,就是TI上的2808 ADC_SOC这个例程,由于初学,没看懂这个例程的输入是什么,怎么能看到结果?谢谢各位了!
// TI File $Revision: /main/7 $
// Checkin $Date: September 12, 2005 17:30:05 $
//###########################################################################
//
// FILE: Example_280xAdc.c
//
// TITLE: DSP280x ADC Example Program.
//
// ASSUMPTIONS:
//
// This program requires the DSP280x header files.
//
// Make sure the CPU clock speed is properly defined in
// DSP280x_Examples.h before compiling this example.
//
// Connect signals to be converted to A2 and A3.
//
// As supplied, this project is configured for "boot to SARAM"
// operation. The 280x Boot Mode table is shown below.
// For information on configuring the boot mode of an eZdsp,
// please refer to the documentation included with the eZdsp,
//
// Boot GPIO18 GPIO29 GPIO34
// Mode SPICLKA SCITXDA
// SCITXB
// -------------------------------------
// Flash 1 1 1
// SCI-A 1 1 0
// SPI-A 1 0 1
// I2C-A 1 0 0
// ECAN-A 0 1 1
// SARAM 0 1 0 <- "boot to SARAM"
// OTP 0 0 1
// I/0 0 0 0
//
//
// DESCRIPTION:
//
// This example sets up the PLL in x10/2 mode, divides SYSCLKOUT
// by eight to reach a 12.5Mhz HSPCLK (assuming a 20Mhz XCLKIN).
// Interrupts are enabled and the ePWM1 is setup to generate a periodic
// ADC SOC on SEQ1. Two channels are converted, ADCINA3 and ADCINA2.
//
// Watch Variables:
//
// Voltage1[10] Last 10 ADCRESULT0 values
// Voltage2[10] Last 10 ADCRESULT1 values
// ConversionCount Current result number 0-9
// LoopCount Idle loop counter
//
//
//###########################################################################
//
// Original Author: D.F.
//
// $TI Release: DSP280x V1.30 $
// $Release Date: February 10, 2006 $
//########################################################################### |