Quantcast
Channel: Processors
Viewing all articles
Browse latest Browse all 123757

Forum Post: Can I lengthen /CS (form 8bit to 24bit) in SPI of DM365/368?

$
0
0

I' trying to connect DM368 to CMOS directly.

CMOS configuration is used by SPI communication.

Now, I use  below code.

- struct spi_ioc_transfer tr ;

-  ret = ioctl(fd, SPI_IOC_MESSAGE(1), &tr);

<CMOS SPI protocol>

/cs (H)--(L)___________________________--(H)

sdi  :           chipID(8bit) + Addr(8bit)+Data(8bit)

<But, I send /cs for 8bit 3times, not /cs for 24bit once>

/cs           ---________---________---________---

sdi  :           chipID(8bit),  Addr(8bit),    Data(8bit)

 

Can you guide me how to lengthen /cs (from 8bit to  24bit)?

I'll wait for your reply.


Viewing all articles
Browse latest Browse all 123757

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>