0
\$\begingroup\$

I am planning to use the BU2505FV DAC in my design and to communicate with it using SPI.

Is the 3 Wire interface described in the datasheet compatible with SPI? The DAC expect 14 bits to configure an output, and my Microcontroller SPI can send only bytes (8 bits per byte). So what will happen if I try to configure an analog output by sending 16 bits (2 bytes) to the DAC?

Also, I plan to connect other devices to the SPI bus, such as the MCP23S17 I/O expander. Are there any compatibility issues with using both parts in the same design?

Thank you all for your help!

\$\endgroup\$
0

3 Answers 3

1
\$\begingroup\$

Apologies if I'm wrong !

The clearance between SPI and shift register shifting is uncertain. Shifting a shift register with bitbang method isn't a hard thing to do. But, it is doable with SPI.

In the datasheet, there is a nice illustration showing that the device can be cascaded or should I say daisy-chained (like some SPI devices).

Now the implementation, BU2505FV has a 14-bit shift register, so, you have to left-shift the data 2 bit first and then do a ordinary SPI transfer.

A little advice, timing characteristics and pin functionality should be "studied" carefully.

A comfirmation: look at Data Interface section in this product detail.

\$\endgroup\$
1
\$\begingroup\$

The only real difference between the chip's serial protocol and SPI is that LD (the Slave Select analogue) must be pulsed high to latch the internal shift register but kept low at all other times. If you add a pulse former to that line you can make it behave like any other SPI device.

When sending 2 bytes the first 2 bits sent will be discarded by the chip (will actually get shifted out of DO with 14 clocks of delay), the rest are as described in the spec.

\$\endgroup\$
0
\$\begingroup\$

That part is not SPI compatible. It uses its own serial protocol.

\$\endgroup\$
3
  • \$\begingroup\$ So I'll have to control my I/O to generate the signals as shown in the time diagram ? \$\endgroup\$
    – RPerun
    Commented Jun 15, 2018 at 8:24
  • \$\begingroup\$ Rohm has similar devices that are SPI-compatible. \$\endgroup\$ Commented Jun 15, 2018 at 8:28
  • \$\begingroup\$ @RPerun yes, if you use this part you have to implement protocol yourself by direct control of I/O pins. \$\endgroup\$
    – Maple
    Commented Jun 15, 2018 at 9:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.