MCP3208 12bit SPI Help needed

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

Moderator: Benj

Post Reply
User avatar
Jordy101091
Posts: 519
Joined: Sat Jan 08, 2011 4:02 pm
Location: The Netherlands
Has thanked: 25 times
Been thanked: 188 times
Contact:

MCP3208 12bit SPI Help needed

Post by Jordy101091 »

Hi all,

I need some assistance with reading a ADC MCP3208 by the SPI bus.
Everything I do seems to backfire on my and im only getting incorrect values.

I hope that you guys can help me with my problem.

http://ww1.microchip.com/downloads/en/D ... 21298e.pdf

I have also attached my program:
For the ADC Part look for macro "ReadADC"
Controller 2014.fcfx
(79.1 KiB) Downloaded 321 times
the will to learn, should not be stopped by any price

User avatar
Jordy101091
Posts: 519
Joined: Sat Jan 08, 2011 4:02 pm
Location: The Netherlands
Has thanked: 25 times
Been thanked: 188 times
Contact:

Re: MCP3208 12bit SPI Help needed

Post by Jordy101091 »

After a good night of hard working and head banging I got it to work.

If anybody is interested in component version of the MCP3208 the let me know.

Regards Jordy
the will to learn, should not be stopped by any price

mohamedwaly
Posts: 5
Joined: Mon Mar 17, 2014 3:10 am
Has thanked: 1 time
Contact:

Re: MCP3208 12bit SPI Help needed

Post by mohamedwaly »

hello
can you explain how to connect the ADC and how to read the 12bit from it?

User avatar
Jordy101091
Posts: 519
Joined: Sat Jan 08, 2011 4:02 pm
Location: The Netherlands
Has thanked: 25 times
Been thanked: 188 times
Contact:

Re: MCP3208 12bit SPI Help needed

Post by Jordy101091 »

mohamedwaly wrote:hello
can you explain how to connect the ADC and how to read the 12bit from it?

Maybe if you like I could create a component version for this device so it's easier for you to use it.
Let me know what you think of this.

Regards Jordy.
the will to learn, should not be stopped by any price

mohamedwaly
Posts: 5
Joined: Mon Mar 17, 2014 3:10 am
Has thanked: 1 time
Contact:

Re: MCP3208 12bit SPI Help needed

Post by mohamedwaly »

hello
thank you very much
i use MCP3202B http://ww1.microchip.com/downloads/en/D ... 21034D.pdf
but i have flowcode 5 and flowcode 6 trail only.
so if you create component for 6 i can't use in 5, so if you can explain or make a tutorial project ,i think it will be better

User avatar
Jordy101091
Posts: 519
Joined: Sat Jan 08, 2011 4:02 pm
Location: The Netherlands
Has thanked: 25 times
Been thanked: 188 times
Contact:

Re: MCP3208 12bit SPI Help needed

Post by Jordy101091 »

mohamedwaly wrote:hello
thank you very much
i use MCP3202B http://ww1.microchip.com/downloads/en/D ... 21034D.pdf
but i have flowcode 5 and flowcode 6 trail only.
so if you create component for 6 i can't use in 5, so if you can explain or make a tutorial project ,i think it will be better
Yes of course I can create A tutorial for you if that is easier for you to work with.
I will make it available to you trough a personal Message if that is ok with you.
I don't think I can complete it today but I will do my best.

Regards Jordy
the will to learn, should not be stopped by any price

mohamedwaly
Posts: 5
Joined: Mon Mar 17, 2014 3:10 am
Has thanked: 1 time
Contact:

Re: MCP3208 12bit SPI Help needed

Post by mohamedwaly »

Jordy101091 wrote:
mohamedwaly wrote:hello
thank you very much
i use MCP3202B http://ww1.microchip.com/downloads/en/D ... 21034D.pdf
but i have flowcode 5 and flowcode 6 trail only.
so if you create component for 6 i can't use in 5, so if you can explain or make a tutorial project ,i think it will be better
Yes of course I can create A tutorial for you if that is easier for you to work with.
I will make it available to you trough a personal Message if that is ok with you.
I don't think I can complete it today but I will do my best.

Regards Jordy
Thank you very much

User avatar
Jordy101091
Posts: 519
Joined: Sat Jan 08, 2011 4:02 pm
Location: The Netherlands
Has thanked: 25 times
Been thanked: 188 times
Contact:

Re: MCP3208 12bit SPI Help needed

Post by Jordy101091 »

Your welcome

Rg Jordy
the will to learn, should not be stopped by any price

JAW
Posts: 30
Joined: Tue Jun 16, 2009 2:25 pm
Been thanked: 4 times
Contact:

Re: MCP3208 12bit SPI Help needed

Post by JAW »

Hi Jordy,

I have just started to try and use the MCP3208 and wondered if you could send me the tutorial previously mentioned in this thread.

Regards

James

Post Reply