1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
您好,我正在编程PSoC 3,我用API把ADC、UART和其他外围设备休眠。现在我想用硬件来控制他们访问他们的寄存器,有可能使用某种控制寄存器吗?提前谢谢!
以上来自于百度翻译 以下为原文 Hello, I am programming the PSoC 3 and I am using the API to put the ADC, UART and other peripherals to sleep. Now I am thinking of using hardware to control them accessing their registers, is it possible using some sort of control registers? Thank you in advance! |
|
相关推荐
8个回答
|
|
看看这里的寄存器TRM HTTP://wwwyCysP.com/?RID=37833
以上来自于百度翻译 以下为原文 Have a look at the register trm here http://www.cypress.com/?rID=37833 Bob |
|
|
|
你想设计一些逻辑来控制组件的寄存器吗?或者您想通过软件写入寄存器来控制组件?
以上来自于百度翻译 以下为原文 Do you want to design some logic to control the registers of the component? Or you want to control the component by writing to the register by software? |
|
|
|
通常想到的是Verilog用于HW到HW的控制。
PSoC资源和UDB配置。 举例说明你想做的事情可能是有用的。也澄清了, 你提到睡眠,当PSoC睡着的时候,你是在尝试这样做吗? 问候,Dana。 以上来自于百度翻译 以下为原文 Normally what comes to mind is Verilog for HW to HW control of PSOC resources and UDB configuration. Might be useful to give an example of what you are trying to do. Also clarifiy, you mentioned sleep, are you trying to do this when PSOC is asleep ? Regards, Dana. |
|
|
|
我正在啃你的表达“通过硬件访问寄存器”,你在你的最后一个帖子重复。
你不能访问没有CPU的寄存器,尽管使用DMA,只有当寄存器地址是连续的,在应用程序中不是这样的情况下才是可工作的。 只要有睡眠和唤醒功能的API,它们之间就没有差别,直接访问适当的寄存器。一些功能只能通过寄存器访问(导致API被遗忘),但是你可以把它放进你自己的函数中。 鲍勃 以上来自于百度翻译 以下为原文 I am gnawing on your expression "Accessing Register via hardware" which your repeated in your last post. You cannot access registers without CPU despite using DMA which only works resonably when the register addresses are consecutive which will not be the case in your application. As long as there are APIs provided for the sleep- and wakeup functionality there will be no difference between those and the access to the appropiate registers directly. Some functionality is only accessable through registers (cause APIs forgotten to make) but you can put it into your own functions. Bob |
|
|
|
我同意…如何使用硬件访问控制寄存器?
虽然还有其他方法可以使用像……这样的硬件来使用低功耗模式(使用重置或中断)。! 当做!!!! 以上来自于百度翻译 以下为原文 i agree..... @chlzr how can u access control registers by using only hardware....... .although there are other ways by which you can come out of low power modes using hardware like....[using reset or interrupts].!! Regards!!! |
|
|
|
如果你知道所有寄存器的地址位置(即使是连续的),爆裂大小和传输长度,那么你可以在一个固定的数组中定义。
使用一个DMA(例如主DMA)将数据从源传输到定义的突发大小和传输长度。 使用另一个DMA(配置DMA)来设置上述主DMA传输的源、目的地、突发大小和长度。 配置DMA可以从定义的数组中获取相应的数据,并将它们加载到主DMA中以进行适当的传输。 以上来自于百度翻译 以下为原文 If you know the address locations of all the registers (even dis-continuous), burst size & length of the transfer, then you can define then in a fixed array. Use one DMA (say Main DMA) to transfer the data from a source to desintation in the defined burst size & length of the transfer Use another DMA (configuration DMA) to set the source, destination, burst size & length of the transfer of the above Main DMA. Configuration DMA can take the respective data from the array defined and load them into Main DMA for appropriate transfers. |
|
|
|
但是他怎样才能用硬件访问它呢?
摄政王!!!! 以上来自于百度翻译 以下为原文 But how will he be able to access it with hardware? Regads!!! |
|
|
|
此外,DMA是唯一可以写入内存的硬件组件(除了MCU内核),因此能够写入状态寄存器。所以你需要想出一个使用DMA来把东西写入内存的方案。可以使用DMA将字节从(内部)引脚传送到存储器(通过状态寄存器)。如果使用索引DMA,甚至可以使用另一个寄存器来确定目标地址。或者使用数据路径或数字滤波器块进行一些计算并使用它们的输出。但我认为这会变得非常复杂。触发一个中断和使用一些代码来做你想做的事情可能会更容易(并且更少的资源密集)。
以上来自于百度翻译 以下为原文 AFAIK the DMA is the only hardware component (apart from the MCU core) which can write into memory, and is therefore able to write to status registers. So you need to come up with a scheme using the DMA to write stuff to memory. It might be possible to use DMA to transfer bytes from (internal) pins to memory (via a status register). If you use indexed DMA, you can even use another register to determine the target address. Or use the data path or the digital filter block for some computations and use their outputs. But I think this will get really complicated. It might be way easier (and less resource-intensive) to just trigger an interrupt and the use some code to do what you want. |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2102 浏览 1 评论
1848 浏览 1 评论
3666 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1783 浏览 6 评论
1533 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
565浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
419浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
434浏览 2评论
380浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
912浏览 2评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-22 15:17 , Processed in 1.004350 second(s), Total 90, Slave 74 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号