Component for MCP47X6, MCP44XX,45XX,46XX Family,
Moderator: Benj
Component for MCP47X6, MCP44XX,45XX,46XX Family,
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
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
- 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,
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- 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,
Hi Dirk,
I've created two components to drive these today. I'll get them pushed to the v8 update system tomorrow for you.
I've created two components to drive these today. I'll get them pushed to the v8 update system tomorrow for you.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- 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,
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- 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,
Hi Rod,
Yes this is now done and included via the update system. Let us know how you get on.can you please create a DAC component for the MCP4921?
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: Component for MCP47X6, MCP44XX,45XX,46XX Family,
Hi Benj, I updated the system but couldnt find the component mcp4921 available to use. I uploaded a picture of the screen.
Thanks
Rod
Thanks
Rod
- Attachments
-
- MCP.jpg (120.27 KiB) Viewed 27161 times
-
- Mcp - Pic2.jpg (124.22 KiB) Viewed 27161 times
- 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,
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 50
- Joined: Fri Feb 28, 2014 7:25 am
- Has thanked: 34 times
- Been thanked: 5 times
Re: Component for MCP47X6, MCP44XX,45XX,46XX Family,
How do you guys update?
When i go to help the "Check for updates" is grayed out.
When i go to help the "Check for updates" is grayed out.
- 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,
Hello,
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.When i go to help the "Check for updates" is grayed out.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 50
- Joined: Fri Feb 28, 2014 7:25 am
- Has thanked: 34 times
- Been thanked: 5 times
Re: Component for MCP47X6, MCP44XX,45XX,46XX Family,
Thank you Ben, i had no idea
Now i'm going for 607 updates

Now i'm going for 607 updates
- AbhijitR
- Posts: 300
- Joined: Fri Nov 07, 2014 12:48 pm
- Location: Pune, India
- Has thanked: 284 times
- Been thanked: 80 times
Re: Component for MCP47X6, MCP44XX,45XX,46XX Family,
Hello! Headhuntergr
Thank you.
Abhi
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
- Bachman
- Posts: 116
- Joined: Sun Sep 07, 2014 11:37 am
- Location: Hungary
- Has thanked: 9 times
- Been thanked: 53 times
Re: Component for MCP47X6, MCP44XX,45XX,46XX Family,
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)
Now, "base" variable contains the config and the data. Split it into two bytes.
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.
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
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
Send the two bytes:
SPI:
CS -> low
send data_h
send data_l
CS -> high
End.

- AbhijitR
- Posts: 300
- Joined: Fri Nov 07, 2014 12:48 pm
- Location: Pune, India
- Has thanked: 284 times
- Been thanked: 80 times
Re: Component for MCP47X6, MCP44XX,45XX,46XX Family,
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
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
-
- Valued Contributor
- Posts: 786
- Joined: Fri Jun 06, 2014 3:53 pm
- Has thanked: 187 times
- Been thanked: 205 times
Re: Component for MCP47X6, MCP44XX,45XX,46XX Family,
Hi
In Flowcode v8 onwards there are many MCP DACs including the MCP4921 component under Outputs. Very handy to have.
Regards
In Flowcode v8 onwards there are many MCP DACs including the MCP4921 component under Outputs. Very handy to have.
Regards
- AbhijitR
- Posts: 300
- Joined: Fri Nov 07, 2014 12:48 pm
- Location: Pune, India
- Has thanked: 284 times
- Been thanked: 80 times
Re: Component for MCP47X6, MCP44XX,45XX,46XX Family,
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
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