cancel
Showing results for 
Search instead for 
Did you mean: 

Knowledge Base Articles

将 SCB SPI 连到 SmartIO – KBA222481

Employee

将 SCB SPI 连到 SmartIO – KBA222481

Version: **

问题: 怎样将SCB SPI 连接到SmartIO? 当尝试连接的时候会报错,报错信息为“E2809: Unable to find a valid placement for pins and fixed-function blocks.”

答案:

SPI SCB组件里,在“SPI Pins”栏目下使能“Show SPI Terminals”。

SPI连接到SmartIO时,请确保所选端口和数据与可用SCB的直连管脚兼容。

例如: 对于PSoC® 4100S 设备,如果SCB[1]被用做为SPI,端口2被用作为SmartIO :

SPI 引脚

数据手册中描述的直连引脚

SmartIO的配置

MOSI

P2_0

P2_0连到Port2 SmartIO data0

MISO

P2_1

P2_1连到Port2 SmartIO data1

SPI CLK

P2_2

P2_2连到Port2 SmartIO data2

SPI select0

P2_3

P2_3连到Port2 SmartIO data3

SPI select1

P2_4

P2_4连到Port2 SmartIO data4

SPI select2

P2_5

P2_5连到Port2 SmartIO data5

SPI select3

P2_6

P2_6连到Port2 SmartIO data6

                                                                                                                         pastedImage_0.png

pastedImage_21.png

0 Likes
Version history
Revision #:
1 of 1
Last update:
‎Feb 19, 2019 09:45 PM
Updated by:
 
Contributors