分享一款由TI的TAS5717數字功放芯片做的雙聲道藍牙音箱程序,程序完整直接可用,希望能夠幫助到初涉數字功放領域的朋友們快速入門。TAS5717數字功放芯片是一款2X10W的高保真度D類功率放大器。
電路原理圖如下:
圖.png (377.34 KB, 下載次數: 67)
下載附件
2019-10-10 21:55 上傳
單片機源程序如下:
- #include "stm8s.h"
- #include "stm8s_it.h"
- #include "stm8s_conf.h"
- #include "stm8s_clk.h"
- #include "stm8s_tim2.h"
- #include "stm8s_gpio.h"
- #include "stm8s_flash.h"
- #include "i2c.h"
- #include "tas5717.h"
- #include "global.h"
- #include "key.h"
- unsigned char I2C_BUFF[10];
- void main()
- {
- sim();
- PowerOnInit();//上電初始化
- rim();
- while(1)
- {
- if(TIM2_10ms_FLAG)//10ms
- {
- TIM2_10ms_FLAG=0;
- key_can();
- led_flash();
- }
- if(TIM2_50ms_FLAG)//50ms
- {
- TIM2_50ms_FLAG=0;
- AUX_check();
- PH_check();
- databackups();
- }
- encoder_can();
- Keypress();
- }
- }
- #ifdef USE_FULL_ASSERT
- /**
- * @brief Reports the name of the source file and the source line number
- * where the assert_param error has occurred.
- * @param file: pointer to the source file name
- * @param line: assert_param error line source number
- * @retval : None
- */
- void assert_failed(u8* file, u32 line)
- {
- /* User can add his own implementation to report the file name and line number,
- ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */
- /* Infinite loop */
- }
- #endif
復制代碼
所有資料51hei提供下載:
TAS5717數字功放原碼.rar
(15.06 MB, 下載次數: 109)
2019-10-10 09:49 上傳
點擊文件名下載附件
下載積分: 黑幣 -5
|