Cypress技术论坛
直播中

李广汇

8年用户 162经验值
私信 关注
[问答]

PSoC Creator上的引脚状态怎么更改

我如何改变状态(0到1),PSoC Creator上的别针?我正在尝试使用PSoC Creator提供的组件在PSoC5中为SPI主机做一个应用。我使用的设备是SPI从属设备,是ti公司的一个参考芯片ADS1298。
为了完成SPI通信的实现,在PSOC5和ADS1298之间,我需要在PSoC Creator中放置3个对应于输出数字的引脚。这些引脚是:“PrimeION”、“RESET”和“START”,这些引脚通常为0,但在编程之后,每个引脚必须将状态更改为1。我该怎么做?
希望你能帮我,急…
非常感谢你

以上来自于百度翻译


     以下为原文
   How I can change state (0 to 1), a pin on PSoC Creator?

    I'm trying to make an application for an SPI master in a PSoC5 using the component provided by PSoC Creator. The device that I'm using as SPI slave, is a chip of reference ADS1298 from TI.
    To complete the implementation of SPI communication, between PSoC5 and ADS1298, I need to put 3 pins that correspond to outputs digitals in PSoC Creator. The pins are: "Power_Down", "Reset" and "Start", these pins are normally 0, but after some delays programmed for each of them must change state to 1. How do I do it?
    Hope you can help me, is urgent...
    Thank you very much

回帖(5)

杨军

2019-4-29 14:44:07
有几种方法,取决于刺激的时机和逻辑。
插脚。这就是说,在创造者中考虑一个LUT来对这些引脚进行排序。LUT
可以注册,从而变成状态机,对输入和输出进行选择,
计时。相当灵活。有时2个LUTS可以解决大多数问题。
HTTP://www. CyPress?COM/?DOCID=32550
问候,Dana。

以上来自于百度翻译


     以下为原文
  Several approaches, depends on what the timing, logic of the stimulus for these
   
    pins. That being said consider a LUT in creator to sequence these pins. The LUT
   
    can be registered, hence turn into a state machine, options on # inputs and outputs,
   
    clocking. Fairly flexible. Sometimes 2 LUTs can solve most problems.
   
     
   
    http://www.cypress.com/?docID=32550
   
     
   
    Regards, Dana.
举报

姜钰

2019-4-29 14:57:44
您可以将PIN连接到计时器组件。这允许你在一定的延迟之后自动改变它们。

以上来自于百度翻译


     以下为原文
  You can connect your pins to a timer component. This allows you to change them automatically after a certain delay.
举报

王琳

2019-4-29 15:05:31
如果延迟在MS的范围内,则可以使用一个控制寄存器,并用CyDelay函数中的一个函数(在系统参考指南中找到)来单独地设置/清除它们。
鲍勃
一个问题的另外5个解决方案?还没有,但我们接近…

以上来自于百度翻译


     以下为原文
  And if the delays are in the range of ms you can use a control-register and set/clear them individually at delays derived with one of the CyDelay-functions (to be found in System Reference Guide).
    Bob
    Another 5 solutions for one problem? Not yet really, but we approach...
举报

李广汇

2019-4-29 15:11:27
谢谢大家…我使用了“PixWrue(UntI8)”函数,我可以解决我的问题。
当做,
杰森逊安德斯

以上来自于百度翻译


     以下为原文
  Thank you all... I used "Pin_Write(uint8 value)" function and I could solve my problem.
    Regards,
    Jeisson Andrés
举报

更多回帖

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