help with ic dac8760

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

RLOPES780
Posts: 98
Joined: Tue Apr 07, 2015 11:01 am
Been thanked: 2 times
Contact:

help with ic dac8760

Postby RLOPES780 » Sat Apr 14, 2018 10:53 pm

I'm trying to use the ic dac8760.
It is a current transmitter and voltage ex (4 to 20 ma, 0 to 5 v) simultaneously.
Your communication is SPI.
From what I understand each write is 24 bits. Since the first bits msb select the registers and the other 16 bits are the registry settings.
Could someone give me a flowchart idea of how I could start doing this?

Thankful;

Ricardo.

stefan.erni
Posts: 265
Joined: Fri Aug 19, 2016 2:09 pm
Has thanked: 92 times
Been thanked: 69 times
Contact:

Re: help with ic dac8760

Postby stefan.erni » Sun Apr 15, 2018 10:20 pm

Hi Ricardo

There is a small difference between a SPI with a Chipselect and SPI with a Latch.
The latch is on the end of sending 24 bit. Set the pin to low and later to high to latch all the 24bit.

use a SPI Master.
and an output (a led) rename it to latchdac

init the SPI master
define char1...char3 to the value you need
set latchdac to turn on
Send SPI master char1
Send SPI master char2
Send SPI master char3
set latchdac to turn off
set latchdac to turn on
That's all

Do you have a demoboard from the dac8760 or how can you program it?

Stefan
These users thanked the author stefan.erni for the post:
Benj (Wed Apr 18, 2018 11:26 am)
Rating: 5.88%
 

User avatar
Benj
Matrix Staff
Posts: 12708
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 3556 times
Been thanked: 3439 times
Contact:

Re: help with ic dac8760

Postby Benj » Wed Apr 18, 2018 11:26 am

Hi Ricardo,

This might be useful for you.
https://www.matrixtsl.com/blog/simplifi ... c-and-spi/