📄 main.c
字号:
//=======================================================================
// The information contained herein is the exclusive property of
// Sunnnorth Technology Co. And shall not be distributed, reproduced,
// or disclosed in whole in part without prior written permission.
// (C) COPYRIGHT 2003 SUNNORTH TECHNOLOGY CO.
// ALL RIGHTS RESERVED
// The entire notice above must be reproduced on all authorized copies.
//=======================================================================
//=======================================================================
// 工程名称:S480.scs
//
// 功能描述:S480只有自动播放方式,在中断FIQ的FIQ_TMA中断源中通过主程序
// 的SACM_S480_ServiceLoop()对语音数据进行解码,然后将其送入
// DAC通道播放
//
// 文件来源:《SPCE061A单片机实验指导书》
// " 语音实验部分 实验二 SACM-480 "
//
// IDE 环境:SUNPLUS u'nSP IDE 1.8.0
//
// 涉及的库:SACMV25.lib
//
// 组成文件: main.c
// hardware.asm/ISR.asm/Resource.asm
// Resource.inc/S480.h
//
// 日期: 2003-6-20
//=======================================================================
#include "s480.h"
#define Speech_1 2
#define DAC1 1
#define DAC2 2
#define Ramp_UpDn_Off 0
#define Ramp_UpDn_On 3
#define Auto 1
main ()
{
SACM_S480_Initial(1);
SACM_S480_Play(Speech_1, DAC1+DAC2, Ramp_UpDn_On); //放音
while(SACM_S480_Status()&0x01)
{
SACM_S480_ServiceLoop();
F_ClearWatchdog(); //清看门狗
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -