SPI Master reset using timer counter

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

cross mob
user_2457466
Level 3
Level 3
10 replies posted 5 replies posted 5 questions asked

Hi,

 

I am currently working on a system, where I transmit data using SPI master component. I ahve a counter connected. Which count SCLKs. After a certain number of bits have been clocked out, I want to halt the transmission using the component on the topdesign.

 

I have tried to use a basic count7 component and connected the tc output to the reset input of the SPI master component. But that did not work.

 

Does anyone know how this can be achieved ? What is the timing requirement for the reset input ?

To ensure no further bits are clockced, it needs to be fast and therefore SW intervention, may not be fast enough. Thats why i do not use interrupts.

0 Likes
1 Solution
Hari
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hi @user_2457466 

 

The easiest way to achieve this is to configure the SCB so that it sends out only 7 bits 

Hari_0-1614315911344.png

 

But once the data is added to the SCB's FIFO, the hardware block sends the data out. Blocking or issuing a firmware disable will still take effect only after the byte is transmitted. 

 

Best regards, 
Hari

View solution in original post

0 Likes
1 Reply
Hari
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hi @user_2457466 

 

The easiest way to achieve this is to configure the SCB so that it sends out only 7 bits 

Hari_0-1614315911344.png

 

But once the data is added to the SCB's FIFO, the hardware block sends the data out. Blocking or issuing a firmware disable will still take effect only after the byte is transmitted. 

 

Best regards, 
Hari

0 Likes