⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adc_test.c

📁 ADI Blackfin BF51X 範例程式
💻 C
字号:
/*******************************************************************
Analog Devices, Inc. All Rights Reserved.

This software is proprietary and confidential.  By using this software
you agree to the terms of the associated Analog Devices License Agreement.

Project Name:  	Power_On_Self_Test

Hardware:		ADSP-BF518F EZ-Board

Description:    This file tests the ADC interface on the EZ-Board.
*******************************************************************/

#include <cdefBF518.h>


/*******************************************************************
*  function prototypes
*******************************************************************/


/*******************************************************************
*  global variables and defines
*******************************************************************/

/* SPORT word length */
#define SLEN_32	0x001f
#define SLEN_16	0x000f


/****************************************************************************
*   Function:    Init_Sport1
*   Description: Configure SPORT1 for I2S mode, to transmit/receive data
*                to/from the adc. Configure Sport for ext clock and
*                internal frame sync.
******************************************************************************/
void Init_Sport0(void)
{
	/* sport1 receive configuration */
	*pSPORT1_RCR1 = RCKFE | RFSR | IRFS | IRCLK | RSPEN;
	*pSPORT1_RCR2 = SLEN_32 | RSFSE;
	*pSPORT1_RCLKDIV = 0x000c;
	*pSPORT1_RFSDIV = 0x0014;
}

/*******************************************************************
*   Function:    TEST_ADC
*   Description: This verifies the ADC interface on the EZ-Board.
*******************************************************************/
int TEST_ADC(void)
{	
	/* test not implemented for Update 5 */
	
	return 1;
}



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -