立体声音频功率放大电路论文(8)
发布时间:2021-06-05
发布时间:2021-06-05
河北科技大学第二届电子设计大赛
附图1
河北科技大学第二届电子设计大赛
附图2
附3《单片机程序》
/******************************************************************************
***
名称:功放控制程序
功能:实现声道切换,音量加减,音源切换
*******************************************************************************
**/
#include<reg52.h> #include<intrins.h>
#define uchar unsigned char #define uint unsigned int
#define LCD_Data P0 //代表向LCD输入的数据 #define Busy 0x80 //用于检测LCD状态字中的Busy标识
sbit Vol_p = P1^0; sbit Vol_m = P1^1; sbit Key_track = P1^4;
sbit Relay_U = P1^2; sbit Relay_D = P1^3; sbit Relay1 sbit Relay2 sbit Relay3 sbit Relay4
sbit A sbit M sbit C
= P2^1; = P2^2; = P2^3; = P2^4; = P1^5; = P1^6; = P1^7;
sbit Enable1 = P3^0; sbit Enable2 = P3^1;
sbit LCD_RS = P2^7; sbit LCD_RW = P2^6; sbit LCD_E = P2^5;
uchar code table[]=" 12 3 4";
uchar code dis_num[]="0123456789";
uchar volume=0; uchar relay=0x01; uchar temprelay; uchar track=1;