K70 SPI transmission end detection?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

K70 SPI transmission end detection?

1,563 次查看
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 项奖励
回复
2 回复数

1,257 次查看
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

 

 

1,257 次查看
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 项奖励
回复