- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello all ,
I am trying to interface LMK03806 chip with psoc5lp ,
This chip works with special case of SPI called uWire the only difffrence is that
the ss line goes high at the end of the transmission according to the attached diagram ,
further more this chip works with 32bit data length (max psoc spi is 16bit length) ,
i have created and attached my project ,
when i measure with scope the sclk pin going out from the spi psoc component i see something
very wierd ,
at the start of the TX sclk pin start to toggle (6 mhz clk) and Never stops.
i can even write Spi_compenent_stop() and it stills toggles ,
any one has any idea how to solve this issue ??
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I tested the attached project and I don't see the clock continuously coming on the pin (I tested on a different PSoC 5LP device). However, i do see one issue in the code. In the function microWireWrite(), you need to check the TX status register. But, in the code, a constant is being used as condition check for the while loop. This causes SS signal to be misaligned. Please use the following statement instead of the present while loop.
while((microWire_spi_ReadTxStatus() & microWire_spi_STS_SPI_DONE) == 0);
-Rajiv