Psoc4200BLE SCB FUNCTION

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Robin_Peng
Level 5
Level 5
Distributor - Macnica(GC)
100 replies posted 50 replies posted 50 questions asked

您好,

Psoc4200BLE里面的2个SCBS,可以配置成SPI、I2C、UART,在实际的应用中,是否可以分时复用?

谢谢

Hi Sir,

Psoc4200BLE inside 2 SCBS, can be configured into SPI, I2C, UART, in the actual application, whether can time division multiplexing?

thank you

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.

我之前做过一个动态配置成 I2C 和 UART 的例程,你可以参考一下。其实很简单的,比如你先配置成 I2C, 然后把 SCB_Init() 里面的代码备份出来,然后再配置成 UART 重复这个动作, 很容易做到动态重配置的。

View solution in original post

0 Likes
6 Replies
Vison_Zhang
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 250 sign-ins

分时复用是可以实现的,但是 API 集中没有模式切换的接口,所以需要用户自己来做重配置。

0 Likes
Robin_Peng
Level 5
Level 5
Distributor - Macnica(GC)
100 replies posted 50 replies posted 50 questions asked

Hi Xiaowei,

谢谢,请问重配置怎么做?有参考资料可以分享下吗?

Thanks

0 Likes
lock attach
Attachments are accessible only for community members.

我之前做过一个动态配置成 I2C 和 UART 的例程,你可以参考一下。其实很简单的,比如你先配置成 I2C, 然后把 SCB_Init() 里面的代码备份出来,然后再配置成 UART 重复这个动作, 很容易做到动态重配置的。

0 Likes
Robin_Peng
Level 5
Level 5
Distributor - Macnica(GC)
100 replies posted 50 replies posted 50 questions asked

Hi Xiaowei,

非常感谢您的支持,

Thanks

0 Likes
MoSa_4781276
Level 1
Level 1
10 sign-ins 5 sign-ins First reply posted

Can anyone translate to English, please ?

0 Likes

The proejct attached in post#3 does the job switching between UART and I2C dynamically in FW. That is eaxctly what the questioner asked for.