TEA5767 FM立体声收音机,C51单片机通用的源码。
模块某宝上也就2元以内。
推荐使用 Keil uVision5 编译,我是用这个版本编译通过的。
电路原理图如下:
单片机源程序如下:
- #include <REG52.H>
- #include "Radio.H"
- #include "Key_Handle.H"
- #include "Volume_Handle.H"
- extern void Delay_ms(unsigned int i);
- /********** System inition *************/
- void System_Init(void)
- {
- Key_Input=0xFF;
- BEEP_DRV=1; // 关闭蜂鸣器
- }
- /********** Main Function *************/
- void main(void)
- {
- BEEP_DRV=0; //关闭蜂鸣器
- System_Init(); //初始化MCU
- TEA5767_Init(); //初始化TEA5767,写入预置参数
- Volume_Init(); //初始化声音
- while(1)
- {
- Delay_ms(10);
- Key_Handle();
- }
- }
复制代码
所有资料51hei提供下载:
FM_C51源码和资料.zip
(478.77 KB, 下载次数: 196)
|