-
1. Re: SPIM Send 7 Bits Data
userc_42225 May 14, 2014 2:15 AM (in response to userc_42225)Or is there other PSoC1 UM that I can use to send 7 bits data to IC? any advice please?
-
2. Re: SPIM Send 7 Bits Data
DaKn_263916 May 14, 2014 5:06 AM (in response to userc_42225)Create a software SPI implementation ?
https://www.silabs.com/Support%20Documents/TechnicalDocs/an128.pdf
Regards, Dana.
-
3. Re: SPIM Send 7 Bits Data
userc_42225 May 14, 2014 9:57 PM (in response to userc_42225)Hi,
I think I know the implementation of SPI. But my target is to send 7 bits data from PSoC to IC. When I use SPIM to implement it, there are some issue that I cannot solve. I don't know if it possible to use SPIM to send 7bits data? or anyother UM I can use for the 7bits transmission?
Thanks,
CC
-
4. Re: SPIM Send 7 Bits Data
ki.leung May 15, 2014 5:29 PM (in response to userc_42225)1 of 1 people found this helpfulDana's suggestion is to write your own software SPI. The silabs app note is a good start to do it.
-
5. Re: SPIM Send 7 Bits Data
ki.leung May 15, 2014 5:36 PM (in response to userc_42225)1 of 1 people found this helpfulIf you want to use the SPI component. may be use a hardware counter and a gate to supress the last clk. you may need to wait for the tx buffer empty, then reset the hardware counter so it alwasy gate the last clk pulse.
-
6. Re: SPIM Send 7 Bits Data
JoMe_264151 May 16, 2014 3:58 AM (in response to userc_42225)1 of 1 people found this helpfulWhen I went through the specs of SPI I couldn't find a hint that there was a transfer-width allowed for not a multiple of a byte.
Are you connecting the PSoC to an existing device or what else are your reasons to have a 7-bit transmission?
Bob
-
7. Re: SPIM Send 7 Bits Data
userc_42225 May 18, 2014 9:57 PM (in response to userc_42225)Thanks H L and Dana, I got it. I will try on inplementing a custom data transfer function.
-
8. Re: SPIM Send 7 Bits Data
userc_42225 May 18, 2014 10:02 PM (in response to userc_42225)Hi Bob, I connect the PSoC to a device which requires 7b data transfer. I just need to implement a 7b transfer fxn in PSoC, and now I am trying to modify the SPI UM to do this.