spi

JESD204B学习之关键点问答

你离开我真会死。 提交于 2019-12-22 20:02:14
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> JESD204B Survival Guide 中文版 JESD204B学习之关键点问答 1.概述 本文是用于记录JESD204B学习中的关键点,以问答的形式陈诉便于理清思路。 2.参考文档 1.《pg066-jesd204》 2.《ug476_7Series_GTX_GTH_Transceivers》 3.《AD9680》 4.《AD9144》 3.JESD204B关键问题 3.1 JESD204有多少个子类,怎么设置? JESD204有3个子类: Subclass 0:主要用于JESD204A; Subclass 1:用于JESD204B,有确定性延时,带sysref与sync; Subclass 2:用于JESD204B,有确定性延时,值需要sync信号即可。 在IP核设置中,是通过AXI-LITE设置寄存器subclass mode,如下图。在AD或者DA芯片中是通过SPI等配置芯片的寄存器来设置。IP的设置与AD,DA芯片的设置需要一一对应。 3.2 IP核设置中的F/K依据是什么? F:每帧的8位个数; K:每个多帧的帧数; F与K的设置是需要根据AD或者DA芯片的寄存器设置相互对应的。比如下图中是AD9680的配置选项图。 3.3 IP核设置中的参考时钟(reference clock)

STM32F1 - Using master SPI on bare metal

我的未来我决定 提交于 2019-12-22 15:00:39
问题 I've been trying to port some of my AVR code to drive a simple SPI LCD to ARM as a learning exercise (I'm very new to ARM in general). For this I just need to use SPI in master mode. I looked in the datasheet for my device (STM32F103C8) and found that the SPI1 pins I need, SCK and MOSI are mapped as alternative functions of PA5 and PA7, respectively, along with other peripherals (pg.29). My understanding is that in order to use the SPI function on these pins, I need to make sure that anything

STM32F1 - Using master SPI on bare metal

末鹿安然 提交于 2019-12-22 15:00:11
问题 I've been trying to port some of my AVR code to drive a simple SPI LCD to ARM as a learning exercise (I'm very new to ARM in general). For this I just need to use SPI in master mode. I looked in the datasheet for my device (STM32F103C8) and found that the SPI1 pins I need, SCK and MOSI are mapped as alternative functions of PA5 and PA7, respectively, along with other peripherals (pg.29). My understanding is that in order to use the SPI function on these pins, I need to make sure that anything

SPI总线协议理解

允我心安 提交于 2019-12-22 09:19:16
  1、什么是SPI:     是摩托罗拉公司设计的一种全双工通信、高速的、同步的串行外部设备通信协议。      2、SPI作用:     用于设备之间的数据交互。   3、SPI由什么构成:     1)MOSI:主设备输出从设备输入线,是条专属线     2)MISO:主设备输入从设备输出线,也条专属线     3)SCK:时钟线,为数据交互提供脉冲     4)CS:片选控制线。      4、SPI实现原理:   5、SPI工作流程: 来源: https://www.cnblogs.com/dcli-blog/p/12079039.html

JAVA SPI

不想你离开。 提交于 2019-12-22 00:24:28
SPI发现机制 Springmvc的无web.xml启动方式也是用的SPI自动发现机制处理的,都是通过在配置文件中加入实现类全限定名。 标准接口: package spi ; public interface Fruit { void name ( ) ; } 插拔式实现类1: package spi ; public class Apple implements Fruit { @Override public void name ( ) { System . out . println ( "apple" ) ; } } 插拔式实现类2: package spi ; public class Orange implements Fruit { @Override public void name ( ) { System . out . println ( "orange" ) ; } } 程序调用方式: package spi ; import java . util . Iterator ; import java . util . ServiceLoader ; public class SPIMain { public static void main ( String [ ] args ) { ServiceLoader < Fruit > fruits =

Facebook和新的Twitter URL中的shebang / hashbang(#!)是什么?

杀马特。学长 韩版系。学妹 提交于 2019-12-21 17:39:11
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 我刚刚注意到,我们现在习惯的长而复杂的Facebook URL看起来像这样: http://www.facebook.com/example.profile#!/pages/Another-Page/123456789012345 据我所知,今年早些时候,它只是一个类似于URL片段的普通字符串(以 # 开头),没有感叹号。 但是现在是shebang或hashbang( #! ),我以前只在shell脚本和Perl脚本中看到过。 新的Twitter URL现在也带有 #! 符号。 例如,Twitter个人资料URL现在如下所示: http://twitter.com/#!/BoltClock 做 #! 现在在URL中扮演某些特殊角色,例如对于某个Ajax框架或某些东西,因为新的Facebook和Twitter界面现在基本上已被Ajax化? 在URL中使用它会以任何方式使我的Web应用程序受益吗? #1楼 为了对所有这些问题进行良好的跟进,Twitter是hashbang URL和单页面界面的先驱者之一,他承认hashbang系统从长远来看很慢,实际上他们已经开始撤消决策并返回到老派的链接。 有关此的文章在这里。 #2楼 现在不推荐使用 此技术。 这 曾经 告诉Google如何索引页面。 https:/

Spidev do not write/read simultaneously using ioctl

给你一囗甜甜゛ 提交于 2019-12-21 09:39:11
问题 I hope to find some help even if this issue might be more hardware than software related (we'll see). I'm working on a custom board based on Freescales P1021 processor (ppc, e500v2 core). A external PCB will be connected and could be configured by SPI. The specifications of this external PCB reads as it expects a 2-byte command in full duplex mode and that only the last byte is used to transfer data back on MISO. Knowing this i currently work to prepare some pieces of software to test this

SDHC microSD card and SPI initialization

跟風遠走 提交于 2019-12-21 09:34:23
问题 I have a 32 GB Kingston SDHC microSD card which has to communicate to MSP430F2618 via SPI. I was not able to initialize it by using CMD55 + ACMD41 (with bit30 set to 1), as it is described in SD specification paper. What works is this sequence: CMD0, arg: 0 , CRC: 0x95 (response:0x01) CMD8, arg: 0x1AA , CRC: 0x87 (response:0x01) CMD1, arg: 0x40000000, CRC: 0xFF (response:0x00) I tried it also with a 8 GB SanDisk card and works for that too. So actually, I am using CMD1 here, not ACMD41, with

SDHC microSD card and SPI initialization

落爺英雄遲暮 提交于 2019-12-21 09:34:07
问题 I have a 32 GB Kingston SDHC microSD card which has to communicate to MSP430F2618 via SPI. I was not able to initialize it by using CMD55 + ACMD41 (with bit30 set to 1), as it is described in SD specification paper. What works is this sequence: CMD0, arg: 0 , CRC: 0x95 (response:0x01) CMD8, arg: 0x1AA , CRC: 0x87 (response:0x01) CMD1, arg: 0x40000000, CRC: 0xFF (response:0x00) I tried it also with a 8 GB SanDisk card and works for that too. So actually, I am using CMD1 here, not ACMD41, with

JDK SPI

我的未来我决定 提交于 2019-12-21 05:17:59
介: SPI的全名为Service Provider Interface。java 运行时服务发现机制。我们在系统开发过程中不同模块之间一般都是用接口进行通信的。接口一般都有多个实现类。如果在模块里编码的时候涉及到了具体的实现类,则后续需要修改实现类或者新增实现类的时候就要修改原来的模块编码,这样就违反了开闭原则(对扩展开发,对修改关闭。避免新增功能的时候修改原来的代码对原有的功能造成新的bug。)不利于代码的维护。JDK的SPI实现了为接口自动寻找实现类的功能。使用场景一般适合插件,框架上等。jdbc4,lombok等 JDK SPI //接口类 public interface ISay { void say ( String content ) ; } //实现类A public class SayA implements ISay { @Override public void say ( String content ) { System . out . println ( content ) ; } } //实现类B public class SayB implements ISay { @Override public void say ( String content ) { System . out . println ( "==" + content + "==