Page 1 of 1

Component for MCP47X6, MCP44XX,45XX,46XX Family,

Posted: Mon Feb 11, 2019 10:43 am
by DirkB
Hello,

are components for MCP47X6 DAC's family, and
MCP44XX,45XX,46XX digipot family planned?
That would be great. i am planning a project
with these components.

thank you

Dirk

Re: Component for MCP47X6, MCP44XX,45XX,46XX Family,

Posted: Mon Feb 11, 2019 12:17 pm
by Benj
Hi Dirk,

I've just created a MCP47x6 component for you as it was very quick to do. This should now be available via a full database update.

I'll have a look at the digi pot components too and see how easy these will be to add.

Re: Component for MCP47X6, MCP44XX,45XX,46XX Family,

Posted: Mon Feb 11, 2019 5:59 pm
by DirkB
Hi Ben,

greate, thank you so much.

regards

Dirk

Re: Component for MCP47X6, MCP44XX,45XX,46XX Family,

Posted: Thu Feb 28, 2019 10:50 am
by DirkB
Hello Ben,

any news about the Digipot family?

regards

Dirk

Re: Component for MCP47X6, MCP44XX,45XX,46XX Family,

Posted: Thu Feb 28, 2019 4:57 pm
by Benj
Hi Dirk,

I've created two components to drive these today. I'll get them pushed to the v8 update system tomorrow for you.

Re: Component for MCP47X6, MCP44XX,45XX,46XX Family,

Posted: Thu Feb 28, 2019 5:09 pm
by DirkB
Hi Ben,

great, thank you so much.

Dirk

Re: Component for MCP47X6, MCP44XX,45XX,46XX Family,

Posted: Mon Mar 04, 2019 12:48 pm
by Benj
Hi Dirk,

Sorry I was off work in the end on Friday, the new components are available now via the update system. Just change "Files in use" to "Full database" on the update window.

Re: Component for MCP47X6, MCP44XX,45XX,46XX Family,

Posted: Sat Mar 09, 2019 5:38 pm
by r_teixeir
Benji, can you please create a DAC component for the MCP4921?

Thanks

Rod

Re: Component for MCP47X6, MCP44XX,45XX,46XX Family,

Posted: Mon Mar 11, 2019 11:41 am
by Benj
Hi Rod,
can you please create a DAC component for the MCP4921?
Yes this is now done and included via the update system. Let us know how you get on.

Re: Component for MCP47X6, MCP44XX,45XX,46XX Family,

Posted: Tue Mar 12, 2019 1:16 am
by r_teixeir
Hi Benj, I updated the system but couldnt find the component mcp4921 available to use. I uploaded a picture of the screen.

Thanks

Rod

Re: Component for MCP47X6, MCP44XX,45XX,46XX Family,

Posted: Tue Mar 12, 2019 12:05 pm
by Benj
Hi Rod,

I've added a new component so you will need to do a full database update and then replace the MCP49x2 component on your panel with the new MCP49x1 component.

Re: Component for MCP47X6, MCP44XX,45XX,46XX Family,

Posted: Tue Mar 12, 2019 1:36 pm
by headhuntergr
How do you guys update?
When i go to help the "Check for updates" is grayed out.

Re: Component for MCP47X6, MCP44XX,45XX,46XX Family,

Posted: Tue Mar 12, 2019 1:43 pm
by Benj
Hello,
When i go to help the "Check for updates" is grayed out.
You need to be inside a project for the check for updates to be available, either open an existing project or start a new one.

Re: Component for MCP47X6, MCP44XX,45XX,46XX Family,

Posted: Tue Mar 12, 2019 1:51 pm
by headhuntergr
Thank you Ben, i had no idea :mrgreen:
Now i'm going for 607 updates

Re: Component for MCP47X6, MCP44XX,45XX,46XX Family,

Posted: Wed Jul 07, 2021 10:55 am
by AbhijitR
Hello! Headhuntergr
headhuntergr wrote:
Tue Mar 12, 2019 1:51 pm
Now i'm going for 607 updates
i hope post update you tried to use MCP4921, may i request you to share some knowledge how it was done? i am trying for last couple of hours but without success, unfortunately there is no help chart available.

Thank you.

Abhi

Re: Component for MCP47X6, MCP44XX,45XX,46XX Family,

Posted: Wed Jul 07, 2021 7:34 pm
by Bachman
Hello Abhi!

Easier than you think. Start up SPI and check datasheet. You have to send only two bytes. First byte upper bits is command bits, the others are the data for the DAC.

UInt variable (base)
BYTE variable (data_h)
BYTE variable (data_l)
UInt variable (data)

Code: Select all

base=0b0011000000000000 //upper four bits are the config bits: Write to DAC_A, Unbuffered, 1x gain, output is ON
data=297 //anything from 0 to 4095
base=base OR data //merge "base" and "data" variables
Now, "base" variable contains the config and the data. Split it into two bytes.

Code: Select all

data_h=(base AND 0xFF00)>>8 //data_h contains the upper byte of merged data
data_l=base AND 0xFF //data_l contains the lower byte of merged data
Note: not the best solution to generate the two required bytes but i don't want to share tricky soutions to make the example as understandable as possible.

Send the two bytes:

SPI:
CS -> low
send data_h
send data_l
CS -> high

End. :wink:

Re: Component for MCP47X6, MCP44XX,45XX,46XX Family,

Posted: Sat Jul 10, 2021 11:26 am
by AbhijitR
Hello! Bachman
good morning

Kindly excuse for the delayed reply, very difficult to find good time weekdays.

Yes, you made it sound very very easy, reading the datasheet is indeed very important but with examples as you mentioned "Piece of Cake"

Thank you again for this explanation, cheers.

Abhi

Re: Component for MCP47X6, MCP44XX,45XX,46XX Family,

Posted: Sun Jul 11, 2021 1:42 pm
by Bachman
I've got only Flovcode v6. If it's ok, I'll share a working example.

Re: Component for MCP47X6, MCP44XX,45XX,46XX Family,

Posted: Sun Jul 11, 2021 2:11 pm
by chipfryer27
Hi

In Flowcode v8 onwards there are many MCP DACs including the MCP4921 component under Outputs. Very handy to have.

Regards

Re: Component for MCP47X6, MCP44XX,45XX,46XX Family,

Posted: Sun Jul 11, 2021 8:41 pm
by AbhijitR
Hello! Bachman and Chipfryer27
good evening

The explanation you gave in your previous post is indeed very helpful to understand how it works, and as mentioned by Chipfryer27 the component is read available in the FC8 and yes it is very easy to use, actually i made a mistake in one of the settings in the properties window about Prescale, while testing i found the correct setting and the component worked as expected.

Once again many many thanks to both of you for your answer/explanation.

Abhi