找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 5904|回復(fù): 4
打印 上一主題 下一主題
收起左側(cè)

分享一款A(yù)S5717數(shù)字功放芯片+stm8s做的雙聲道藍(lán)牙音箱

[復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
樓主
ID:621533 發(fā)表于 2019-10-10 09:49 | 只看該作者 |只看大圖 回帖獎勵 |倒序瀏覽 |閱讀模式
分享一款由TI的TAS5717數(shù)字功放芯片做的雙聲道藍(lán)牙音箱程序,程序完整直接可用,希望能夠幫助到初涉數(shù)字功放領(lǐng)域的朋友們快速入門。TAS5717數(shù)字功放芯片是一款2X10W的高保真度D類功率放大器。
電路原理圖如下:


單片機(jī)源程序如下:
  1. #include  "stm8s.h"
  2. #include "stm8s_it.h"
  3. #include "stm8s_conf.h"
  4. #include "stm8s_clk.h"
  5. #include "stm8s_tim2.h"
  6. #include "stm8s_gpio.h"
  7. #include "stm8s_flash.h"
  8. #include "i2c.h"
  9. #include "tas5717.h"
  10. #include "global.h"
  11. #include "key.h"



  12. unsigned char I2C_BUFF[10];


  13. void main()
  14. {
  15.         sim();
  16.         PowerOnInit();//上電初始化
  17.   rim();
  18.         while(1)
  19.         {
  20.     if(TIM2_10ms_FLAG)//10ms
  21.                  {
  22.                         TIM2_10ms_FLAG=0;
  23.                   key_can();
  24.                         led_flash();
  25.            }
  26.                  if(TIM2_50ms_FLAG)//50ms
  27.                  {
  28.                         TIM2_50ms_FLAG=0;
  29.                   AUX_check();
  30.                         PH_check();
  31.                         databackups();
  32.            }
  33.                 encoder_can();
  34.                 Keypress();
  35.         }
  36. }





  37. #ifdef USE_FULL_ASSERT
  38.         /**
  39.         * @brief  Reports the name of the source file and the source line number
  40.         *   where the assert_param error has occurred.
  41.         * @param file: pointer to the source file name
  42.         * @param line: assert_param error line source number
  43.         * @retval : None
  44.         */
  45. void assert_failed(u8* file, u32 line)
  46. {
  47.         /* User can add his own implementation to report the file name and line number,
  48.                 ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */

  49.         /* Infinite loop */
  50. }
  51. #endif
復(fù)制代碼

所有資料51hei提供下載:
TAS5717數(shù)字功放原碼.rar (15.06 MB, 下載次數(shù): 109)


評分

參與人數(shù) 1黑幣 +50 收起 理由
admin + 50 共享資料的黑幣獎勵!

查看全部評分

分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏5 分享淘帖 頂 踩
回復(fù)

使用道具 舉報

沙發(fā)
ID:245018 發(fā)表于 2020-5-8 16:46 | 只看該作者
感謝,正在調(diào)試5717不出聲音。可以參考您的代碼
回復(fù)

使用道具 舉報

板凳
ID:721360 發(fā)表于 2020-9-1 00:00 | 只看該作者
樓主是否有這個數(shù)字功放的中文詳細(xì)資料,修到一臺機(jī)器用到,感謝。
回復(fù)

使用道具 舉報

地板
ID:687153 發(fā)表于 2022-6-9 08:37 | 只看該作者
樓主你好,可否指點下初始化TAS5717需要發(fā)哪些I2C數(shù)據(jù)呀
回復(fù)

使用道具 舉報

5#
ID:687153 發(fā)表于 2022-6-9 08:42 | 只看該作者
初始化配置的I2C數(shù)據(jù)可以發(fā)給咱嘛?感謝!
回復(fù)

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規(guī)則

手機(jī)版|小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機(jī)教程網(wǎng)

快速回復(fù) 返回頂部 返回列表