当前位置:网站首页>IIS数据转换问题16bit转24bit
IIS数据转换问题16bit转24bit
2022-04-23 19:24:00 【ToneChip】
今天遇到一个很奇怪的问题
要求是一个16bit的数据送到一个24bit的DAC中去播放,结果噪声变大?不知道为何
按照常规理论,16bit转24bit只需要左移8位就可
下面复习一下IIS驱动里面的逻辑
①左对齐:
WCLK为高电平时,是左声道,低电平时右声道数据
数据从左边开始,低8位为0
②右对齐:
WCLK为高电平时,是左声道,低电平时右声道数据
比如说你采集到一个负数 0xc00000,采集的int类型接收可能就变成了0x00c00000, 你需要将其变为0xffc00000
③IIS模式
区别左右对齐的方式就是WCLK为低电平时,是左声道,高电平时右声道数据,并且延时1个脉冲(对于这种标准I2S格式的信号无论有多少位有效数据,数据的最高位总是出现在WCLK/LRCK变化(也就是一帧开始)后的第2个BCLK/SCLK脉冲处)
版权声明
本文为[ToneChip]所创,转载请带上原文链接,感谢
https://tonechip.blog.csdn.net/article/details/121774877
边栏推荐
- js上传文件时控制文件类型和大小
- Prefer composition to inheritance
- Summary of several relationships of UML class diagram
- Transaction processing of SQL Server database
- Machine learning catalog
- Codeforces Round #783 (Div. 2) D题解
- Openlayers 5.0 loading ArcGIS Server slice service
- openlayers 5.0 当地图容器大小改变时,重新加载地图
- openlayers 5.0 加载arcgis server 切片服务
- 为何PostgreSQL即将超越SQL Server?
猜你喜欢
開關電源設計分享及電源設計技巧圖解
binlog2sql 工具安装使用及问题汇总
2021-2022-2 ACM集训队每周程序设计竞赛(8)题解
An algorithm problem was encountered during the interview_ Find the mirrored word pairs in the dictionary
OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!
MySQL syntax collation (4)
Oracle configuration st_ geometry
[transfer] summary of new features of js-es6 (one picture)
Virtual machine performance monitoring and fault handling tools
Common SQL commands
随机推荐
Openharmony open source developer growth plan, looking for new open source forces that change the world!
Some speculation about the decline of adults' language learning ability
openlayers 5.0 两种居中方式
MySQL lock
深度学习——特征工程小总结
[报告] Microsoft :Application of deep learning methods in speech enhancement
[transfer] summary of new features of js-es6 (one picture)
SQL of contention for system time plus time in ocrale database
DevOps集成-Jenkins 服务的环境变量和构建工具 Tools
RuntimeError: Providing a bool or integral fill value without setting the optional `dtype` or `out`
C学习完结
SSDB foundation 3
Codeforces Round #784 (Div. 4)
Codeworks round 783 (Div. 2) d problem solution
SSDB foundation 1
Regular expressions for judging positive integers
OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!
C1000k TCP connection upper limit test
Lottery applet, mother no longer have to worry about who does the dishes (assign tasks), so easy
MySQL syntax collation (4)