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

PSoC™ 6 Forum Discussions

pagansjb
Level 2
Level 2
First like given 10 replies posted First like received

Hi,

 

I'm trying to connect PSoC6 to the external SPI master through SPI.

Is it possible to change the default MOSI/MISO pin mapping of PSoC6's SPI as like the below?

In CYB06445LQI-S3D42, when SCB4 is set as SPI Slave

MOSI : P7_0 (default) -> P7_1

MISO : P7_1 (default) -> P7_0

 

When I've tried it by just swapping MOSI and MISO pin mapping at the function "cyhal_spi_init", it has been failed.

 

Thanks,

 

 

0 Likes
1 Solution
RodolfoGL
Employee
Employee
250 sign-ins 5 comments on KBA First comment on KBA

That's only possible if you use Port8 or Port9, because these ports have the Smart I/O, which allows you to change the routing of the interfaces linked to these ports.

View solution in original post

0 Likes
5 Replies
Srivastav
Moderator
Moderator
Moderator
100 replies posted 25 likes received 100 sign-ins

Hi @pagansjb 

Can you please guide me which Development Environment are you using? ModusToolbox 3.0.0 or PSoC Creator 4.4?

Kind Regards

Arpit Srivastav

0 Likes

Hi, Arpit Srivastav

 

I'm using ModusToolbox 2.4.0 to implement a firmware for CYB06445LQI-S3D42

 

Thanks,

 

0 Likes
RodolfoGL
Employee
Employee
250 sign-ins 5 comments on KBA First comment on KBA

That's only possible if you use Port8 or Port9, because these ports have the Smart I/O, which allows you to change the routing of the interfaces linked to these ports.

0 Likes

Hi RodolfoGL,

 

Thanks for your answer

In our product, port7 is dedicated to SPI. In this case, physical wires should be changed in order to swap pins.

My understanding is right?

 

Thanks,

0 Likes
RodolfoGL
Employee
Employee
250 sign-ins 5 comments on KBA First comment on KBA

That's correct.