Data lines of SPI in MC13224 are not showing any data on them!

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

Data lines of SPI in MC13224 are not showing any data on them!

跳至解决方案
2,033 次查看
AmitPatil
Contributor II

Hi,

 

I was trying to implement SPI on NCB of MC13224.  When I flashed the code and observed the lines on CRO, I found that it is giving proper clock and chip select on lines but the data I was sending over MOSI and expecting it over MISO was not there [the line was not showing any reading et all].  At start I found these lines were shared with LCD so I disabled LCD, still MOSI and MISO are not working.  Is there anything I missed while coding?

0 项奖励
回复
1 解答
1,225 次查看
AmitPatil
Contributor II
I found that you need to shift the data to send by (32-n) bits if your data is of n bits.  another thing.  the voltage pin Vcc available on IO connector may have unstable voltage and might need some correction.  I did this and it works fine now.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,226 次查看
AmitPatil
Contributor II
I found that you need to shift the data to send by (32-n) bits if your data is of n bits.  another thing.  the voltage pin Vcc available on IO connector may have unstable voltage and might need some correction.  I did this and it works fine now.
0 项奖励
回复
1,225 次查看
AmitPatil
Contributor II
I came to know that even if I set data length and clock lenght to some value other than 32, it does not work.  It generates those many clocks but don't sent any data over the line.  When I set the data and clock lenght to 32 it works perfectly.   Is is some issue with feature or I am still missing something?
0 项奖励
回复