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"
MCP3208 12bit SPI Help needed
Moderator: Benj
- Jordy101091
- Posts: 519
- Joined: Sat Jan 08, 2011 4:02 pm
- Location: The Netherlands
- Has thanked: 25 times
- Been thanked: 188 times
- Contact:
- 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
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
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
-
- Posts: 5
- Joined: Mon Mar 17, 2014 3:10 am
- Has thanked: 1 time
Re: MCP3208 12bit SPI Help needed
hello
can you explain how to connect the ADC and how to read the 12bit from it?
can you explain how to connect the ADC and how to read the 12bit from it?
- 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
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
-
- Posts: 5
- Joined: Mon Mar 17, 2014 3:10 am
- Has thanked: 1 time
Re: MCP3208 12bit SPI Help needed
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
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
- 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
Yes of course I can create A tutorial for you if that is easier for you to work with.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
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
-
- Posts: 5
- Joined: Mon Mar 17, 2014 3:10 am
- Has thanked: 1 time
Re: MCP3208 12bit SPI Help needed
Thank you very muchJordy101091 wrote:Yes of course I can create A tutorial for you if that is easier for you to work with.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
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
- 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
Your welcome
Rg Jordy
Rg Jordy
the will to learn, should not be stopped by any price
Re: MCP3208 12bit SPI Help needed
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
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