当前位置:网站首页>Luoda Development -- the context of sidetone configuration
Luoda Development -- the context of sidetone configuration
2022-07-26 04:00:00 【MicMind】
Chip model :AB1565
Function module :Side Tone
Function description :Side Tone It is used to guide the external sound of the earphone into the ear , So that people can hear the natural sound outside the earphone , The best case is to hear the external sound as if there were no headphones .
chart 1 chart 2 by Side Tone Function call relationship of unit , It will be configured during the process Side Tone Of Filter And the gain of transparency . Jizhong DTM() by FreeRTOS A task of , The task will run continuously after the software is started , And maintain a named dtm_queue Local queues for , All and Side Tone Relevant operation commands will be sent to the queue first , Then by the Task To extract commands from the queue and execute them accordingly , Its working logic is shown in the figure 2 Shown .


- Filter
The filtering coefficient is used to do EQ Handle , For example, the restoration of timbre , Noise elimination 、 Inhibit or enhance . These systems , It is preset in the code in advance , Of course, these parameters can also be dynamically modified by programming , For instance from BL Import and store in the specified location ,SDK in , The position of this coefficient is shown in the figure 1 Sum graph 3 Shown , Eventually these coefficients are written into registers “AFE_SIDETONE_CON0” in .

So how is the writing of this coefficient stored ? Let me see the chip again Reference Manual, It's about AFE_SIDETONE_CON0 The definition of registers , Pictured 4 Shown , The red box indicates that the control coefficient is written RAM Correlation bit of .
bit[20:16] Is the address of the coefficient , District 5 individual bit position , Therefore, we can know that the coefficient can only be 2^5=32 individual ( Of course, it can be less than 32 individual ).
and bit[15:0] Is the coefficient value ( The format is Q1.15), Therefore, when writing, you need to perform the same number of write operations according to the number of coefficients .

- gain
It is to adjust the intensity of external sound penetrating into the ear , Ideally, the gain should be dynamic and have an upper threshold , It has the function of amplifying small sounds , Suppress loud sounds , So as to form a hearing protection effect ;
Whether it's filter still gain, Finally, the formation factors are written into AB1656 The corresponding register , namely AFE_SIDETONE The following registers .
that gain How to write the chip ? Pictured 1 Shown , among ” dsp_sidetone_set_volume()” And “dsp_sidetone_start_volume_set()” Function is configuration sidetone The relevant interface function of the gain , Pictured 5 Shown .

From the picture 5 You can find , The gain value is finally written to the register AFE_SIDETONE_GAIN in , So how is this register defined ? We look at the picture 6, It can be found that there are two about gain :Positive Gain and SideToneGain( The difference between the two has not been studied yet ).

边栏推荐
- booking.com缤客上海面经
- PHP method to find the location of session storage file
- php中可以使用取绝对值函数 abs() 将负数转成正数
- cpu和gpu已过时,npu和apu的时代开始
- ASEMI整流桥GBU1510参数,GBU1510规格,GBU1510封装
- ZK snark: about private key, ring signature, zkksp
- Find My技术|物联网资产跟踪市场规模达66亿美元,Find My助力市场发展
- 测试工作不受重视?学长:你应该换位思考
- 【单片机仿真项目】外部中断0和1控制两位数码管进行计数
- Dtcloud the next day
猜你喜欢

WAF details

Opencv learning notes - remapping

Booking.com binke Shanghai noodles

【程序员必备】七夕表白攻略:”月遇从云,花遇和风,晚上的夜空很美“。(附源码合集)

Wechat applet to realize music player (4) (use pubsubjs to realize inter page communication)

KBPC1510-ASEMI大芯片15A整流桥KBPC1510

booking.com缤客上海面经

5年1.4W倍,NFT OG 的封神之路|Web3专栏

Apple removed the last Intel chip from its products

用GaussDB(for Redis)存画像,推荐业务轻松降本60%
随机推荐
资深报表开发经验总结:明白这一点,没有做不好的报表
PHP < => spacecraft operator (combined comparator)
[Reading Notes - > data analysis] 01 introduction to data analysis
Introduction to UFS CLK gate
如何构建面向海量数据、高实时要求的企业级OLAP数据引擎?
One stop monitoring of the software and hardware infrastructure of the whole university, and Suzhou University replaces PostgreSQL with time series database
Kbpc1510-asemi large chip 15A rectifier bridge kbpc1510
5年1.4W倍,NFT OG 的封神之路|Web3专栏
[programmers must] Tanabata confession strategy: "the moon meets the cloud, the flowers meet the wind, and the night sky is beautiful at night". (with source code Collection)
WAF details
Operator new, operator delete supplementary handouts
PHP <=> 太空船运算符(组合比较符)
Dtcloud the next day
Seat / safety configuration upgrade is the administrative experience of the new Volvo S90 in place
Zkevm: summary of zkevm and L1 by Mina's CEO
The convolution kernel is expanded to 51x51, and the new CNN architecture slak counterattacks the transformer
《opencv学习笔记》-- 霍夫变换
Basic line chart: the most intuitive presentation of data trends and changes
Worked overtime for a week to develop a reporting system. This low code free it reporting artifact is very easy to use
Asemi rectifier bridge gbu1510 parameters, gbu1510 specifications, gbu1510 package