AMBE参考程序

AMBE参考程序


2024年5月14日发(作者:)

AMBE-1000 AMBE-1000 Serial Interrupt Programming (C语言)

Author: tsp语音芯片

The openning date: 2006.10.20日

The closing date: 2006.11.16日

Function: 没有串口传输握手协议,串口中断接收,编码好之后马上串口发送,串口发送

波特率19200

//****************************************************************************//

//

//

the Area of Header

//********************************************************//

#include /*关于寄存器、位的定义*/

#include /*绝对地址访问,如XBYTE[0x0fff0]*/

#include /*内部函数调用,如_nop_() 、_crol_()、cror();*/

#include /*自定义的数据类型,如uchar 、uint */

//******************************************//

//

//

the Definition of Constant

//***************************************************************//

//帧格式ID号

#define VOICE_DATA 0x00 //语音帧

#define RATE_CONFIG 0x01 //码率设置帧

#define VOLUME_CONFIG 0x02 //音量设置帧

#define SPECIAL_CONFIG 0x03 //特殊功能设置帧

#define POWER_CONFIG 0x04 //电源模式设置帧

#define DUAL_TONE 0x06 //双音频信号产生帧

#define WAKE_UP 0xFE //唤醒帧

//帧头位置定义

#define HEADER_H 0 //第零字节帧头标志

#define HEADER_L 1 //第一字节


发布者:admin,转转请注明出处:http://www.yc00.com/web/1715621271a2646184.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信