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

📄 480.c

📁 spce061单片机的一些程序!C语言和汇编语言都有
💻 C
字号:
//======================================================================================
//
//        The information contained herein is the exclusive property of
//      Sunplus Technology Co. And shall not be distributed, reproduced,
//      or disclosed in whole in part without prior written permission.
//
//            (C) COPYRIGHT 2001   SUNPLUS TECHNOLOGY CO.
//                           ALL RIGHTS RESERVED
//
//    The entire notice above must be reproduced on all authorized copies.
//
//========================================================================================
//  工程名称:  PRACTIC480.spj
//  功能描述:   SACM-480以自动方式播放
//				
//  文件来源: 《SPCE061单片机原理及应用技术》第七章 凌阳音频压缩算法,第277页
//  IDE环境:  	SUNPLUS u'nSPTM  IDE 1.8.0(or later)
//
//  涉及的库:	CMacro.lib/sacmv25.lib
//
//  组成文件:	480.c
//    	 		ISR.asm/hardware.asm
//	            hardware.inc/hardware.h
//     	
//  日期:       2002-6-12
//===========================================================================================
#define		DAC1			1
#define		DAC2			2
#define		Ramp_UpDn_Off	0
#define		Ramp_Up_On		1
#define		Ramp_Dn_On		2
#define		Ramp_UpDn_On	3
#define		Auto			1

#include	"s480.h"



 main()
{ 	 

	int SpeechIndex=0;	
	SACM_S480_Initial(Auto);	
	SACM_S480_Play(SpeechIndex,DAC1+DAC2, Ramp_UpDn_On);// 播放第一首
	 
	while(SACM_S480_Status()&01)
	SACM_S480_ServiceLoop();	 //停
	  
	
}

⌨️ 快捷键说明

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