当前位置:网站首页>测试 CS4344 立体声DA转换器
测试 CS4344 立体声DA转换器
2022-07-04 03:54:00 【卓晴】

简 介: 本文测试了利用SPI驱动CS4344的实验, 但最终没有能够观察到正确的结果。 具体原因不明。
关键词:CS4344;SPI
§01构建测试电路
一、背景
这是在准备MicroPython内核笔记中实验过程中, 看到所使用的硬件平台上具有一颗 CS4344, 这是一个双通道立体声DA转换器, 之前没有使用过,今天借助这个平台进行测试一下。




二、电路图
这是电路板上CS4344电路图, 它通过E3,4,5以及D3与单片机相连。 输入输出E6,主时钟为E5, 左右通道选择使用E4, 时钟模式切换使用D3。 下面通过 MM32F3277上的MicroPython,通过SPI接口测试CS4344芯片。

由于当前MicroPython只支持三路SPI接口, 他们的外部管脚并不是E5,E6, 所以需要通过外部连线将SPI口与CS4344管脚相连。 如果使用SPI0, 则将PA5连接E5,】将PA7连接E6。 这是连接后的电路板。


后来使用一拖二的跳线,直接将SPI的CLK引导SCLK/MCLK上。 经过实际测试,发现最终CS4344仍然没有任何信号输出。 这是数据信号 与输出的模拟信号。 没有产生任何响应。



※ 总 结 ※
本文测试了利用SPI驱动CS4344的实验, 但最终没有能够观察到正确的结果。 具体原因不明。


一、测试程序
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)
边栏推荐
- The five pictures tell you: why is there such a big gap between people in the workplace?
- Redis: hash type data operation command
- 虚拟商品帐号交易平台源码_支持个人二维码收款
- Detailed explanation of event cycle
- Kivy tutorial custom fonts (tutorial with source code)
- PaddleHub人脸识别方案部署,将训练好的模型在pytchrom中进行部署应用
- Architecture practice camp - graduation project of module 9 of phase 6
- 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
- 什么是上下文?
- 深入解析结构化异常处理(SEH) - by Matt Pietrek
猜你喜欢

【安全攻防】序列化与反序列,你了解多少?

EventBridge 在 SaaS 企业集成领域的探索与实践

Talking about JVM

Exploration and practice of eventbridge in the field of SaaS enterprise integration

Main applications of TDK lambda power supply

优秀的测试/开发程序员是怎么修炼的?该往哪走......

软件设计文档示例模板 - 学习/实践

FT2000+下LPC中断绑核使用说明
![[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

MySQL indexes and transactions
随机推荐
关闭的数据能用dbca删除吗? 能
Definition of DCDC power supply current
技术管理 - 学习/实践
Exploration and practice of eventbridge in the field of SaaS enterprise integration
领导:谁再用redis过期监听实现关闭订单,立马滚蛋!
Imitation of "game bird" source code, mobile game issue evaluation, open service, open test collection, game download website template
Change the background color of Kivy tutorial (tutorial includes source code)
【愚公系列】2022年7月 Go教学课程 001-Go语言前提简介
什么是上下文?
y55.第三章 Kubernetes从入门到精通 -- HPA控制器及metrics-server(二八)
CRS-4013: This command is not supported in a single-node configuration.
Main applications of TDK lambda power supply
AcWing第 58 场周赛
附件三:防守方评分标准.docx
6-4漏洞利用-SSH Banner信息获取
Dp83848+ network cable hot plug
Balloon punching and Boolean operation problems (extremely difficult)
Rhcsa 06 - suid, sgid, sticky bit (to be added)
PaddleHub人脸识别方案部署,将训练好的模型在pytchrom中进行部署应用
陪驾注意事项 这23点要注意!