Can not assign spi_select of SPI slave on P6.4 and P6.5 for PSoC4100S Plus 64-TQFP

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

cross mob
YoIs_1298666
Level 5
Level 5
250 sign-ins 100 replies posted 100 sign-ins

Hello,

We have a question about assigning spi_select of SPI slave on P6.4 or P6.5.

In case of SPI master mode, we can assign spi_select on P6.4 or P6.5 like below.

pastedImage_0.png

But in case of SPI slave mode, we can not assing spi_select anywhere like below.

pastedImage_1.png

In conclusion, we can not assign spi_select of SPI slave mode on P6.4 and P6.5.

So, we can not assign SPI slave on P6.x, right?

Best regards,

Yocchi

0 Likes
1 Solution
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

In the datasheet

Alternate Pin Functions

alt_table.JPG

select0:0 for SCB3 seems to be P6.3

But in the Pinouts

Pin_Table.JPG

There is no P6.3 in the 64-TQFP package (nor 44, 48).

So I'm afraid that you need to use SCB[0] ~ SCB[2] for SPI Slave in this device.

moto

P.S. as far as I checked...

MOSI MISO SCLK SS

SCB0

P4[0] P4[1] P4[2] P1[3] or P4[3]

SCB1

P2[0] P2[1] P2[2] P0[7] or P2[3]

SCB2

P5[0] P5[1] P5[2] P0[3] or P5[3]

View solution in original post

0 Likes
2 Replies
YoOb_1790021
Level 5
Level 5
Distributor - Marubun (Japan)
First solution authored 10 likes received 10 likes given

Hi,

I looked at "PSoC 4 Serial Communication Block (SCB) 4.0"

Number of SS

This parameter determines the number of SPI slave select lines.

Only one slave select line is available in Slave mode and it is not optional.

The values between 0 and 4 are valid choices in Master mode. The default number of lines is 1.

So, P6.4 and P6.5 are not #0 the below.

P6.4 scb[3].spi_select1:0

P6.5 scb[3].spi_select2:0

MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

In the datasheet

Alternate Pin Functions

alt_table.JPG

select0:0 for SCB3 seems to be P6.3

But in the Pinouts

Pin_Table.JPG

There is no P6.3 in the 64-TQFP package (nor 44, 48).

So I'm afraid that you need to use SCB[0] ~ SCB[2] for SPI Slave in this device.

moto

P.S. as far as I checked...

MOSI MISO SCLK SS

SCB0

P4[0] P4[1] P4[2] P1[3] or P4[3]

SCB1

P2[0] P2[1] P2[2] P0[7] or P2[3]

SCB2

P5[0] P5[1] P5[2] P0[3] or P5[3]

0 Likes