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

Wi-Fi Combo Forum Discussions

Anonymous
Not applicable

1,When I was testing, I found that the clock of SPI was sent to 1Microsecond per byte. How do I set this time?

UJSX})P1K_1B2I]@C~I1)1Q.png

2,I find that when using this api(  wiced_spi_transfer(&spi_device , message, nsegments);), the time is probably 300 Microsecond.

I write only one byte.

0 Likes
1 Solution
Anonymous
Not applicable

Thank

I am not using this API(spi_bb_transfer_nosetup).This API is slower.

pastedImage_0.png

There is no delay in the bottom function. I would like to check if there is a register that can set the clook delay.

View solution in original post

0 Likes
8 Replies
Zhengbao_Zhang
Moderator
Moderator
Moderator
First comment on KBA 10 questions asked 5 questions asked

Hi:

please take a look at this blog to see if the clock delay can be set by the init function, thanks.

How to set SPI bit banging clock frequency in 4390X using WICED?

Zhengbao_Zhang
Moderator
Moderator
Moderator
First comment on KBA 10 questions asked 5 questions asked

and this one:

SPI in CYW43907

Anonymous
Not applicable

hi

I try to use (spi_bb_driver), which are analog SPI and IO ports are not very fast. Although clock is continuous, 10Microsecond sends only one byte.

The interval between each byte can not be set, resulting in SPI overall speed reduction.

0 Likes

Hi :

  Please use platform_spi_transfer_nosetup for a try. It will reduce the cs core_clock toggle and cs active time .

Anonymous
Not applicable

Yes, I have debugged this function, I mean the interval between the bytes, and nothing to do with CS time.

Is there a register that can set this time?

0 Likes

Hi :

  in spi_bb_transfer_nosetup , I can't see any delay in the while :

while ( length-- )

  {

  uint8_t send_byte = 0x00;

  uint8_t rcv_byte = 0x00;

  if ( send_ptr != NULL )

  {

  send_byte = *send_ptr++;

  }

// here should be a continuous TX/RX bytes in SPI bus.

  rcv_byte = spi_bb_transfer_byte( spi, config, send_byte );

  if ( rcv_ptr != NULL )

  {

  *rcv_ptr++ = rcv_byte;

  }

  }

Anonymous
Not applicable

Thank

I am not using this API(spi_bb_transfer_nosetup).This API is slower.

pastedImage_0.png

There is no delay in the bottom function. I would like to check if there is a register that can set the clook delay.

0 Likes
Anonymous
Not applicable

zhez

Can this byte time interval be reduced? This setting is very important to us. Now the problem is very difficult, so please reply as soon as possible. Thank

0 Likes