你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

STM32F412RET+DA7218 耳机无输出

[复制链接]
u18650436001 提问时间:2021-2-21 12:10 /
目前设计是这样,STM32F412RET送出19.2M I2S MCLK给DA7218的CLKIN,如下图的MIC_P选择Single‐ended方式输入,我在MIC_P有量到波形输入,I2S的SCLK,LRCK,DATAOUT都有量到正常波形,但HPL,HPR都没有波形输出。初始化DA7218的代码和线路图如下,帮忙检查下为什么HPL,HPR没有波形输出,会是哪里的问题?
  1. {
  2. {0x09, 0x80}, //RESET
  3. {0x00, 0x01}, //Enable ACTIVE mode
  4. {0x01, 0x01}, //Enable repeat mode register access (register address and data is sent for each write)
  5. {0xDC, 0x08}, //Enable Master BIAS and VMID (VMID and Bandgap enabled on BIAS_EN)
  6. {0x0D, 0x01}, //Set ramp rate to nominal
  7. {0x0C, 0x03}, //PC_COUNT
  8. {0xFC, 0x11}, //MICBIAS_CTRL
  9. {0xFD, 0x11}, //MICBIAS_EN
  10. /*DA7218 DAI / PLL*/
  11. {0xE0, 0x00}, //IO Level 2.5-3.6V
  12. {0xE1, 0x80}, //Digital LDO Enabled, 1.05V
  13. #if 1
  14. {0x91, 0x13}, //PLL_MODE-disable , PLL_MCLK_SQR_EN-enable , PLL INDIV= 18-36MHz
  15. #else
  16. {0x91, 0x51}, //PLL_MODE-normal , PLL_MCLK_SQR_EN-enable , PLL INDIV= 2-5MHz
  17. #endif
  18. {0x92, 0x12}, //PLL FRAC TOP
  19. {0x93, 0x6E}, //PLL FRAC BOT
  20. {0x94, 0x18}, //PLL INTEGER
  21. {0x98, 0xC0}, //PLL_REFOSC_CAL
  22. {0x0B, 0xBB}, //48kHz sample rate for ADC and DAC
  23. #if 1
  24. {0x8C, 0xA8}, //DAI Enabled, DAI Channel 1L and 1R enabled,  24 bits per channel, I2S
  25. #else
  26. {0x8C, 0xA0}, //DAI Enabled, DAI Channel 1L and 1R enabled, 32bit, I2S
  27. #endif
  28. {0x90, 0x80}, //Master Mode DAI, 64xFS BCLK
  29. #if 1
  30. {0x8D, 0x40}, //DAI_TDM_CTRL,DAI in normal mode,DAI DATOUT pin is driven when required
  31. #else
  32. {0x8D, 0xCF}, //DAI_TDM_CTRL
  33. #endif
  34. {0x8E, 0x00}, //No Offset on DAI (lower)
  35. {0x8F, 0x00}, //No Offset on DAI (upper)
  36. // {0xAC, 0xF0}, //CP Enabled, Signal Magnitude tracking mode
  37. // {0xAD, 0x35}, //CP Delay 64ms
  38. // {0xAE, 0x36}, //CP Volume threshold = 0x36
  39. /*DA7218 INPUTS*/
  40. //Enable Record Path

  41. {0xB4, 0x80}, //MIC1 Amp Enabled
  42. {0xB8, 0x40}, //MIC2 Amp Disable
  43. {0xB5, 0x07}, //MIC1 Gain
  44. {0xB9, 0x07}, //MIC2 Gain
  45. {0xB7, 0x01}, //MIC_1_P single-ended
  46. {0xBB, 0x01}, //MIC2 select 1p
  47. {0x2C, 0xA8}, //MIXIN_1 Enabled
  48. {0x2E, 0xA8}, //MIXIN_2 Enabled
  49. {0x2D, 0x0F}, //MIXIN_1_GAIN
  50. {0x2F, 0x0F}, //MIXIN_2_GAIN
  51. {0xBD, 0x00}, //Disable IN_2 HPF
  52. {0xBC, 0x00}, //Disable IN_1 HPF
  53. {0x18, 0xA0}, //INFILT_1_L Enabled
  54. {0x1A, 0xA0}, //INFILT_1_L Enabled

  55. {0x5C, 0x01}, //INFILT_1_L to DAI_1_L
  56. {0x64, 0x04}, //INFILT_2_L to DAI_1_R

  57. {0xC0, 0x04}, //ADC_1_CTR
  58. {0xC1, 0x04}, //ADC_2_CTRL
  59. {0xDC, 0x08}, //References

  60. /*MIXERS*/
  61. {0x6C, 0x20}, //OUTFILT_1L_SOURCE = DAI INPUT L
  62. {0x74, 0x40}, //OUTFILT_1R_SOURCE = DAI INPUT R

  63. /*DA7218 OUTPUTS*/
  64. {0x72, 0x1C}, //DAI INPUT L GAIN = 0dB
  65. {0x7B, 0x1C}, //DAI INPUT L GAIN = 0dB
  66. {0xF8, 0x6F}, //OUT_1L_DIGITAL_GAIN GAIN = 0dB
  67. {0xF9, 0x6F}, //OUT_1R_DIGITAL_GAIN GAIN = 0dB
  68. {0xCC, 0x80}, //MIXOUT_L Enable
  69. {0xCE, 0x80}, //MIXOUT_R Enable
  70. {0xCD, 0x03}, //MIXOUT_L GAIN = 0dB
  71. {0xCF, 0x03}, //MIXOUT_R GAIN = 0dB
  72. {0x20, 0x80}, //Enable OUT_1L_FILTER (also enables DACREF)
  73. {0x21, 0x80}, //Enable OUT_1R_FILTER
  74. {0xCC, 0x80}, //MIXOUT_L Enable
  75. {0xCE, 0x80}, //MIXOUT_R Enable
  76. {0xD0, 0xFC}, //HP_L Enable, Muted, Ramped
  77. {0xD2, 0xFC}, //HP_R Enable, Muted, Ramped
  78. {0x5A, 0x00}, //DGS SIGNAL and ANTICLIP level to 0dB
  79. {0x54, 0x27}, //Enable DGS
  80. #if 1
  81. {0xAC, 0xE0}, //Charge pump is enabled
  82. {0xD5, 0x00}, //Single-ended output
  83. {0xD8, 0x80}, //Accessory detect jack detection enable
  84. #endif
  85. {0x24, 0x08}, //HP_L Enable, Muted, Ramped
  86. //{0xD2, 0xE8}, //HP_R Enable, Muted, Ramped
  87. //DELAY 50
  88. {0xD0, 0xA8}, //HP_L Enable, Un-muted, Ramped
  89. {0xD2, 0xA8}, //HP_R Enable, Un-muted, Ramped
  90. {0xE8, 0x07}, //HP_R Enable, Un-muted, Ramped
  91. {0xE9, 0x07}, //HP_R Enable, Un-muted, Ramped
  92. };
复制代码


DA7218线路

DA7218线路

HP放大电路

HP放大电路
收藏 评论0 发布时间:2021-2-21 12:10

举报

0个回答
u18650436001 回答时间:2021-3-7 10:37:24
已解决,DA7218寄存器设置问题。

所属标签

相似问题

关于
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
意法半导体官网
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
官方最新发布
STM32Cube扩展软件包
意法半导体边缘AI套件
ST - 理想汽车豪华SUV案例
ST意法半导体智能家居案例
STM32 ARM Cortex 32位微控制器
关注我们
st-img 微信公众号
st-img 手机版