Cypress技术william hill官网
直播中

程春华

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

怎么使用在UART和I2C之间切换SCB块的程序

海尔都
我想用PSoC4共享外部终端并使用它。
你想要分享的信号是UART和I2C信号。
所以我在UART和I2C之间转换了SCB块,并考虑使用它。
如果使用在UART和I2CI之间切换SCB块的程序,则希望它存在。
谢谢您。

以上来自于百度翻译


     以下为原文
  Hi.all
I want to share external terminals with PSoC4 and use it.
The signals you want to share are UART and I2C signals.
So I switched the SCB block between UART and I2C and thought of using it.
If you use a program that switches SCB blocks between UART and I2C
I want it if it exists.
Thank you.

回帖(1)

胡书琴

2018-11-1 10:31:07
嗨,Ichiro san,
请参见下面的KBA切换PSOC®4 - KBA90227中模拟和数字源之间的GPIO引脚连接。同时,首先必须识别在所需资源之间共享的PIN。在您的情况下,它是UART和I2C。这可以使用DATAGEET引脚表找到。所有引脚和它们的替代功能被列成表格。HSIOM寄存器***作以在资源之间切换。它们通过寄存器写功能访问。您可以查阅KBA作为参考。如果您对寄存器有疑问,您可以检查寄存器TRM的设备。
最佳问候

以上来自于百度翻译


     以下为原文
  Hi Ichiro san,
 
Please see the following KBA Switching a GPIO Pin Connection between Analog and Digital Sources in PSoC® 4 - KBA90272 . Meanwhile first you have to identify the pins which are shared between the resources you want. In your case it is UART and I2C. This can be found using datasheet pinout table. There all pins and their alternate functions are tabulated. HSIOM registers are manipulated to switch between the resources. They are accessed through register write functions. You can check the KBA as reference. If you have doubts regarding the register, you can check the registers TRM for the device.
 
Best Regards,
VSRS
举报

更多回帖

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