当前位置:网站首页>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
边栏推荐
- Machine learning catalog
- Easy mock local deployment (you need to experience three times in a crowded time. Li Zao will do the same as me. Love is like a festival mock)
- Prefer composition to inheritance
- 点云数据集常用处理
- static类变量快速入门
- Openlayers 5.0 reload the map when the map container size changes
- Tencent cloud GPU best practices - remote development training using jupyter pycharm
- JS to get the local IP address
- Class loading mechanism
- OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!
猜你喜欢
FTP, SSH Remote Access and control
Using oes texture + glsurfaceview + JNI to realize player picture processing based on OpenGL es
MySQL syntax collation (4)
Is meituan, a profit-making company with zero foundation, hungry? Coupon CPS applet (with source code)
Build intelligent garbage classification applet based on Zero
深度学习——特征工程小总结
JVM的类加载过程
MySQL syntax collation (3)
Common SQL commands
2021-2022-2 ACM集训队每周程序设计竞赛(8)题解
随机推荐
The flyer realizes page Jump through routing routes
Openharmony open source developer growth plan, looking for new open source forces that change the world!
openlayers 5.0 当地图容器大小改变时,重新加载地图
Decompile and get the source code of any wechat applet - just read this (latest)
開關電源設計分享及電源設計技巧圖解
深度学习环境搭建步骤—gpu
MySQL restores or rolls back data through binlog
C1000k TCP connection upper limit test
MySQL syntax collation
Build intelligent garbage classification applet based on Zero
MySQL syntax collation (2)
SSDB foundation 1
Problems caused by flutter initialroute and home
[record] typeerror: this getOptions is not a function
How to use go code to compile Pb generated by proto file with protoc Compiler Go file
Class loading mechanism
2021-2022-2 ACM集训队每周程序设计竞赛(8)题解
First experience of using fluent canvas
MySQL syntax collation (3)
深度学习——特征工程小总结