当前位置:网站首页>Test cs4344 stereo DA converter
Test cs4344 stereo DA converter
2022-07-04 04:50:00 【Zhuoqing】
Jane Medium : This paper tests the use of SPI drive CS4344 The experiment of , But in the end, the correct results were not observed . The specific reason is unknown .
key word
:CS4344;SPI
§01 structure Build test circuit
One 、 background
This is preparation MicroPython In the kernel notes, during the experiment , See that there is a CS4344, This is a two channel stereo DA converter , I haven't used it before , Use this platform to test today .
Two 、 Circuit diagram
This is on the circuit board CS4344 Circuit diagram , It passes through E3,4,5 as well as D3 Connected with MCU . Input and output E6, Master clock is E5, Select left and right channels E4, Clock mode switching use D3. Pass below MM32F3277 Upper MicroPython, adopt SPI The interface test CS4344 chip .
Due to the current MicroPython Only three routes are supported SPI Interface , Their external pins are not E5,E6, So we need to connect SPI Mouth and CS4344 The pins are connected . If you use SPI0, Will PA5 Connect E5,】 take PA7 Connect E6. This is the connected circuit board .
Later, a jumper with one pulling two was used , Direct will SPI Of CLK guide SCLK/MCLK On . After actual testing , Find out in the end CS4344 There is still no signal output . This is the data signal With the output analog signal . There was no response .
※ total junction ※
Ben This paper tests the use of SPI drive CS4344 The experiment of , But in the end, the correct results were not observed . The specific reason is unknown .
One 、 The test program
from machine import Pin,SPI
import time
lrck = Pin('PE4', Pin.OUT_PUSHPULL, value=0)
spi0 = SPI(0,baudrate=800000, polarity=0, phase=0)
led0 = Pin('PA1', Pin.OUT_PUSHPULL, value=1)
print(spi0)
def outdata(left,right):
lrck(0)
spi0.write(left.to_bytes(4,1))
lrck(1)
spi0.write(right.to_bytes(4,1))
lrck(0)
print('Test CS4344 DA convert.')
count = 0
while True:
count += 1
if count % 1:
outdata(0xaaaa, 0x5555)
else: outdata(0x5555, 0xaaaa)
time.sleep_ms(1)
边栏推荐
- CRS-4013: This command is not supported in a single-node configuration.
- The paddlehub face recognition scheme is deployed, and the trained model is deployed and applied in pytchrom
- Rhcsa 07 - user and group management
- [wechat applet] good looking carousel map component
- 附件一:202x年xxx攻防演习授权委托书
- 郑州正清园文化传播有限公司:针对小企业的7种营销技巧
- Kivy tutorial custom fonts (tutorial with source code)
- Formatted text of Kivy tutorial (tutorial includes source code)
- [Yugong series] go teaching course 002 go language environment installation in July 2022
- What is context?
猜你喜欢
How to view installed r packages in R language
UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0x98 in position 1093: illegal multibyte sequence
Kivy教程之 更改背景颜色(教程含源码)
Statistical genetics: Chapter 3, population genetics
Imitation of "game bird" source code, mobile game issue evaluation, open service, open test collection, game download website template
Experience sharing of epidemic telecommuting | community essay solicitation
Instructions for LPC interrupt binding under ft2000+
戳气球和布尔运算问题(巨难)
软件设计文档示例模板 - 学习/实践
【愚公系列】2022年7月 Go教学课程 001-Go语言前提简介
随机推荐
Kivy教程之 07 组件和属性绑定实现按钮button点击修改label组件(教程含源码)
Unity Resource path
Keysight n9320b RF spectrum analyzer solves tire pressure monitoring scheme
Eig launched Grupo Cerro, a renewable energy platform in Chile
附件2-2保密承诺书.docx
Annexe VI: exposé sur les travaux de défense. Docx
1. Mx6u-alpha development board (simulating STM32 drive development experiment)
关闭的数据能用dbca删除吗? 能
PaddleHub人脸识别方案部署,将训练好的模型在pytchrom中进行部署应用
Niuke Xiaobai monthly race 49
西部数据绿盘、蓝盘、黑盘、红盘和紫盘有什么区别
What should a novice pay attention to when looking for an escort
1. Mx6u-alpha development board (LED drive experiment in C language version)
RPC Technology
ADB tools
Distributed cap theory
Apple CMS imitation watermelon video atmospheric response video template source code
[go] database framework Gorm
GUI 应用:socket 网络聊天室
Boutique website navigation theme whole station source code WordPress template adaptive mobile terminal