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

Moderator: Benj

Post Reply
DirkB
Posts: 116
Joined: Wed Feb 08, 2012 2:45 pm
Has thanked: 7 times
Been thanked: 11 times
Contact:

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

Post 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

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

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

Post 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.

DirkB
Posts: 116
Joined: Wed Feb 08, 2012 2:45 pm
Has thanked: 7 times
Been thanked: 11 times
Contact:

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

Post by DirkB »

Hi Ben,

greate, thank you so much.

regards

Dirk

DirkB
Posts: 116
Joined: Wed Feb 08, 2012 2:45 pm
Has thanked: 7 times
Been thanked: 11 times
Contact:

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

Post by DirkB »

Hello Ben,

any news about the Digipot family?

regards

Dirk

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

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

Post 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.

DirkB
Posts: 116
Joined: Wed Feb 08, 2012 2:45 pm
Has thanked: 7 times
Been thanked: 11 times
Contact:

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

Post by DirkB »

Hi Ben,

great, thank you so much.

Dirk

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

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

Post 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.

r_teixeir
Posts: 96
Joined: Fri Jul 15, 2016 10:51 am
Has thanked: 24 times
Been thanked: 5 times
Contact:

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

Post by r_teixeir »

Benji, can you please create a DAC component for the MCP4921?

Thanks

Rod

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

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

Post 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.

r_teixeir
Posts: 96
Joined: Fri Jul 15, 2016 10:51 am
Has thanked: 24 times
Been thanked: 5 times
Contact:

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

Post 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
Attachments
MCP.jpg
MCP.jpg (120.27 KiB) Viewed 17421 times
Mcp - Pic2.jpg
Mcp - Pic2.jpg (124.22 KiB) Viewed 17421 times

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

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

Post 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.

headhuntergr
Posts: 50
Joined: Fri Feb 28, 2014 7:25 am
Has thanked: 34 times
Been thanked: 5 times
Contact:

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

Post by headhuntergr »

How do you guys update?
When i go to help the "Check for updates" is grayed out.

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

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

Post 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.

headhuntergr
Posts: 50
Joined: Fri Feb 28, 2014 7:25 am
Has thanked: 34 times
Been thanked: 5 times
Contact:

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

Post by headhuntergr »

Thank you Ben, i had no idea :mrgreen:
Now i'm going for 607 updates

User avatar
AbhijitR
Posts: 298
Joined: Fri Nov 07, 2014 12:48 pm
Location: Pune, India
Has thanked: 279 times
Been thanked: 78 times
Contact:

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

Post 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

User avatar
Bachman
Posts: 116
Joined: Sun Sep 07, 2014 11:37 am
Location: Hungary
Has thanked: 9 times
Been thanked: 53 times
Contact:

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

Post 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:

User avatar
AbhijitR
Posts: 298
Joined: Fri Nov 07, 2014 12:48 pm
Location: Pune, India
Has thanked: 279 times
Been thanked: 78 times
Contact:

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

Post 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

User avatar
Bachman
Posts: 116
Joined: Sun Sep 07, 2014 11:37 am
Location: Hungary
Has thanked: 9 times
Been thanked: 53 times
Contact:

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

Post by Bachman »

I've got only Flovcode v6. If it's ok, I'll share a working example.

chipfryer27
Valued Contributor
Valued Contributor
Posts: 617
Joined: Fri Jun 06, 2014 3:53 pm
Has thanked: 184 times
Been thanked: 195 times
Contact:

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

Post by chipfryer27 »

Hi

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

Regards

User avatar
AbhijitR
Posts: 298
Joined: Fri Nov 07, 2014 12:48 pm
Location: Pune, India
Has thanked: 279 times
Been thanked: 78 times
Contact:

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

Post 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

Post Reply