当前位置:网站首页>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)
边栏推荐
- 6-5 vulnerability exploitation SSH weak password cracking and utilization
- 疫情远程办公经验分享| 社区征文
- LeetCode136+128+152+148
- 附件二:攻防演练保密协议.docx
- The "functional art" jointly created by Bolang and Virgil abloh in 2021 to commemorate the 100th anniversary of Bolang brand will debut during the exhibition of abloh's works in the museum
- Emlog user registration plug-in is worth 80 yuan
- qt下开发mqtt的访问程序
- Drozer tool
- (pointer) write function void fun (int x, int *pp, int *n)
- "Don't care too much about salary when looking for a job", this is the biggest lie I've ever heard
猜你喜欢

RPC技术

两万字带你掌握多线程

Asahi Kasei participated in the 5th China International Import Expo (5th ciie) for the first time

Emlog user registration plug-in is worth 80 yuan

Distributed cap theory
![[Yugong series] go teaching course 001 in July 2022 - Introduction to go language premise](/img/f2/3b95f53d67cd1d1979163910dbeeb8.png)
[Yugong series] go teaching course 001 in July 2022 - Introduction to go language premise

Kivy教程之 格式化文本 (教程含源码)

分布式CAP理论

6-4 vulnerability exploitation SSH banner information acquisition

Kivy教程之 更改背景颜色(教程含源码)
随机推荐
Correct the classpath of your application so that it contains a single, compatible version of com. go
Intersection traffic priority, illustration of intersection traffic rules
Senior developers tell you, how to write excellent code?
Redis: hash type data operation command
【愚公系列】2022年7月 Go教学课程 001-Go语言前提简介
测试 CS4344 立体声DA转换器
拼夕夕二面:说说布隆过滤器与布谷鸟过滤器?应用场景?我懵了。。
Wechat brain competition answer applet_ Support the flow main belt with the latest question bank file
Self sharing of a graduate
RPC技术
更优雅地远程操作服务器:Paramiko库的实践
UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0x98 in position 1093: illegal multibyte sequence
rac删除损坏的磁盘组
网络设备应急响应指南
MySQL 索引和事务
Experience sharing of epidemic telecommuting | community essay solicitation
通过dd创建asm disk
GUI application: socket network chat room
A beautiful API document generation tool
Pytest basic self-study series (I)