K70 SPI transmission end detection?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

K70 SPI transmission end detection?

775 Views
crezyoz
Contributor IV

Hello

 

I have a port pin I need to toggle immediately after the SPI output is complete. I am using Processor Expert's routines. I have tried the SM1_GetBlockSentStatus() call as a test to determine if the transmission is complete but it is still premature. Embarrasingly, looking at the PE code I can't really tell how the SPI registers are accessed.

 

Any hints as to how I can tell when an entire buffer has been completely transmiited would be very helpful.

 

0 Kudos
2 Replies

469 Views
mjbcswitzerland
Specialist V

Hi

 

See the section on SPI in http://www.utasker.com/docs/KINETIS/uTaskerV1.4_Kinetis_demo.pdf

The diagrams show the timing of the DSPI status flags.

 

Regards

 

Mark

 

 

469 Views
crezyoz
Contributor IV

Thanks Mark.

 

 I didn't see anything in that pdf that relates to my question though.

 

Which bit is valid after all data has been shifted out of a que?

 

I am using a P.E. SPI module and so far have been unable to acquire the proper indication that the last byte has been transmitted.

 

 

 

Appreciate the response.

 

 

0 Kudos