I want to know the difference between Serial Peripheral Interface(SPI ) and the Clocked Serial Interface( CSI).I know that both the protocols are serial in nature and differ in number of signal lines. I want to know when is CSI preferred to SPI and why does it has 'Clock-in ' and 'Clock-out' signals?
-
1SPI is a more-or-less standard protocol, but I don't know q similar 'standard' named CSI. A reference to the description would be helpfull. – Wouter van Ooijen Apr 06 '15 at 09:33
1 Answers
The Serial Peripheral Interface(SPI) and the Clocked Serial Interface (CSI) are essentially the same thing, both synchronous serial interfaces in a master/slave mode with clock, data in and data out leads. Both use chip select leads to address multiple devices.
The CSI interface is implemented in the NEC/Renesas V850 lines of microcontrollers and appears to be proprietary to NEC.
This document, "CSI to SPI Peripheral Communication in V850ES Microcontrollers" explains how to program the CSI registers of a V850ES microcontroller to interface with various SPI peripherals such as MAX6627 and DS1722. For example, table 2 of the document shows the equivalences between "NEC Electronics CSI Clocking Method", register bits CKPn and DAPn, and "SPI Clocking Method", bits CPOL and CHPA which control the polarity and timing of the clocking.
Although one diagram (Figure 1) in the document shows two clock leads (one in and one out), they are actually the same pin so I think this is just meant to represent the dual functionality of clock out for a master and clock in for a slave, which is the same for both interfaces.
In addition to the serial clock (SCK), data input (SI) and data output (SO) leads common to both CSI and SPI, CSI has an optional handshake (HS) lead that can be used to control a data transfer much in the same way UART handshake signals RTS/CTS are used.
I don't see any reason why CSI would be preferred over SPI, you are going to see either one or the other depending on the vendor. The CSI interface as implemented on the V850ES only goes up to 5 Mb/s, whereas most SPI interfaces go up to 25 or even 50 Mb/s so in that regard SPI is a better choice.

- 47,708
- 5
- 97
- 161
-
SPI isn't a protocol; it was originally a term for a peripheral subsystem that supported a variety of protocols; since it wasn't trademarked, many manufacturers apply it to peripheral subsystems which support a range of protocols that will typically include those of the original SPI, but often include others besides. – supercat Apr 06 '15 at 16:24
-
tcrosley, In the reference you have provided it says CSI makes use of only 3 lines whereas as the SPI uses 4 lines. But you have mentioned both use 4 lines.Could you clarify this? Also i wanted to know when is CSI is preferred or the SPI is prefferred? – IamDp Apr 07 '15 at 08:26
-
1I'm not sure where you are getting the 4 lines from. Page 1 of the reference clearly says both CSI and SPI use three lines - clock, data in and data out. Both can additionally use chip select lines, which would be counted as additional lines (4...n). Also CSI supports an optional handshake line. In my answer, I stated that SPI is a better choice because of the higher speed. As I mentioned in my answer, I think CSI is just NEC's proprietary version of SPI. They are almost identical. – tcrosley Apr 07 '15 at 08:47
-
The referred document above seems to have moved to: https://www.renesas.com/us/en/document/apn/csi-spi-peripheral-communication-v850es-microcontrollersapplication-note – brainstorm Jul 01 '23 at 12:13