文件名称:
STM32 F3产品技术培训-15.I2S模块.pdf
开发工具:
文件大小: 498kb
下载次数: 0
上传时间: 2019-09-14
详细说明:STM32 F3产品技术培训-15.I2S模块SPI/2S mode switch 3
The 12S protocol is used for audio data communication between a
microcontroller/dSP and an audio codeC/dAc
12S interface is implemented as a mode in the sPI peripheral
To switch from sPi to 2s mode
Disable SPI peripheral (reset SPE bit in SPI CR1 register)
Select 12S mode(set 12SMOD bit in SPI 12SCFGR register)
life. augmented
12S Features(1/2)
4
TWo 12Ss: Available on SP12 and sPl3 peripherals
TWo 12Ss extension added for Full-Duplex communication
Simplex/or Full duplex communication(transmitter and receiver)
12S2 and 12S3 operate in master or slave configuration
8-bit programmable linear prescaler to support all standard audio
sample frequencies from 8 kHz up to 192 kHz
Audio-frequency precision same as high-density and XL-density
devices
Programmable data format (16-, 24-or 32-bit data formats)
life. augmented
12S Features(1/2)
Underrun flag in slave transmit mode, Overrun flag in receive mode
and new de-synchronization flag in slave transmit/receive mode
Support for dmA: new dma requests for 12S2 ext/12$3 ext allows
full duplex transfers
12S protocols supported
12S Phillips standard
MSB Justified standard (Left Justified)
LSB Justified standard(Right Justified)
PCM standard (with short and long frame synchronization on 16-bit channel frame
or 16-bit data frame extended to 32-bit channel frame)
Master clock may be output to drive an external audio component Ratio is fixed at
256xFs(where Fs is the audio sampling frequency
a The choice of the standard strongly depends on the external
device and the audio data to be transmitted
life. augmented
12S full duplex block diagram(1/2)6
To support 12S full duplex mode, two extra 12S instances called
extended 12Ss(2S2 ext, 12S3 ext) are available in addition to I2S2
and 2S3. The first 12S full duplex interface is consequently based on
12S2 and 2s2 ext, and the second one on 2S3 and 2S3 ext
2SX SCK
12S CKIN
2SXCLK
SP/2SX
□2sxsD(nou
PLLCLK
SYSCLK
2SX WS
HSI
HSE
I2SSRC
12Sx ext
12Sx extsD(out/in)
SW
STM32F30XXX
Where x can be 2 or 3
12Sx ext can be used only in full duplex mode(always in slave mode)
Both 12Sx and 2Sx ext can be configured as transmitters or receivers
life. augmented
Half/Full-Duplex Communication 7
12S configured in Half/Full-Duplex communication mode
2C controls
STM32F30XXX
Audio codec
2Sx SCKI
CK
2sxsD(nou)「
SD
And
12Sx WS
WS
12Sx_extSD(outlin)O
SD
12SX MCLK
MCLK
The master and slave
configuration is managed only by
Half-Duplex synchronous audio transmission
software The master device is
the CK and Ws generator
Depends on the Codec control method
The master/slave modes and
transmit/receive directions can be
switched dynamically by
life. augmented
software
2 X Full-Duplex Communication 8
UART controls
/2S out
Bluetooth
/2s in
12S out
STM32F30XXX
Audio codec
/2S in
12C controls
Battery
Bluetooth headset
Depends on the Codec control method
Depends on the Bluetooth control method
life. augmented
STM32F37XXX VS STM32F30XXXg
Features
STM32F37XXX
STM32F30XXX
Instance
3(2S1,|2S2,|2S3)
2(|2S2,2S3)
Communication mode
Simplex
Simplex/full-duplex
External clock
No
es
life. augmented
Quiz
10
How many 2Ss are available in the stm32F30xXx and sTM32F37xXX microcontroller?
How to use 12Ss available in the stM32F30xXX in Full duplex mode?
What are the standard audio frequencies supported by 12Ss?
What are the different 12S error flags?
life. augmented
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.