Microchip
直播中

李彬

7年用户 159经验值
私信 关注
[问答]

请问我是否可以在PIC32 MZ上同时使用EBI和PMP?

是否可以在PIC32 MZ上同时使用EBI和PMP?看起来答案是否定的,但我宁愿问一个愚蠢的问题也不愿对此出错。我需要以20Mbits/sec或更高的速率将短距离(半米或更短)的字节流发送到打印头。我一直在使用25MHz的SPI,但是我的吞吐量不够好。问题的一部分是显式地向远程接收器(ti 8位移位寄存器)发信号以将数据锁存到打印头的开销。我这样做是通过切换GPIO引脚,使用纳秒延迟的时间。这太草率了,而且浪费了做其他工作所需的时间。我想我可以改用PMP来提高吞吐量,但代价是重新设计和增加许多线路。在解复用模式下,PMP写只使用三PBCLKs。内置的硬件选通可能消除了对显式锁存信号的需要。但是看起来这个计划不能工作,因为我使用EBI与SRAM芯片接口。

以上来自于百度翻译


      以下为原文

    Is it possible to use both the EBI and the PMP on a PIC32MZ? It sure looks like the answer is no, but I would rather ask a dumb question than be wrong about this.

I need to send a byte stream over short distances (half a meter or less) to a print head, at rates of 20Mbits/sec or better. I've been using 25MHz SPI for this, but my throughput isn't quite good enough. Part of the problem is the overhead of explicitly signaling the remote receiver (a TI 8-bit shift register) to latch the data into the print head. I do this by toggling a GPIO pin,  using nanosecond delays for timing. This is sloppy and wastes time needed for other work.

I thought I might increase my throughput by using the PMP instead, at the cost of a redesign and a lot more wires. In demultiplexed mode a PMP write uses a mere three PBCLKs. And the built-in hardware strobe might eliminate the need for the explicit latch signal.

But it looks like the plan can't work, because I'm using EBI to interface with SRAM chips.

ck

更多回帖

发帖
×
20
完善资料,
赚取积分