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!

ソリューションへジャンプ
1,936件の閲覧回数
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,128件の閲覧回数
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,129件の閲覧回数
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,128件の閲覧回数
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 件の賞賛
返信