cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

niprc_3742601
New Contributor II

Hello,

Is there a way to configure a SPI bus to specify how many bits (not bytes) to transmit and word size?  My requirement is a 100 bit transmit message with 10 bit word size.

Thanks!

Nikolay

0 Likes
Reply
1 Solution
MotooTanaka
Esteemed Contributor

Hi,

First of all, you can open the datasheet of a component from its configuration dialog.

003-SPIM_1_Config_3.JPG

And in the data base, basic specification of that component is described.

000-SPIM_Datasheet.JPG

005-SPI_datasheet.JPG

I checked both SCB-SPI and Non-SCB-SPI

SCB-SPI: databit can be 4 to 16-bit

Non-SCB-SPI (SPIM): databit can be 3 to 16-bit

So I'm afraid that the standard SPI components do not support 100 bit transmission.

But you can set databit to 10 bit (your word) and with 10 transmissions,

you can send 100 bits.

moto

View solution in original post

0 Likes
Reply
1 Reply
MotooTanaka
Esteemed Contributor

Hi,

First of all, you can open the datasheet of a component from its configuration dialog.

003-SPIM_1_Config_3.JPG

And in the data base, basic specification of that component is described.

000-SPIM_Datasheet.JPG

005-SPI_datasheet.JPG

I checked both SCB-SPI and Non-SCB-SPI

SCB-SPI: databit can be 4 to 16-bit

Non-SCB-SPI (SPIM): databit can be 3 to 16-bit

So I'm afraid that the standard SPI components do not support 100 bit transmission.

But you can set databit to 10 bit (your word) and with 10 transmissions,

you can send 100 bits.

moto

View solution in original post

0 Likes
Reply