HI everyone,
For A project im trying to interface a 8CH 12Bit ADC "MCP3208", Im tryin all day to get it to work but I not getting anything out.
I hop somebody can help with this as I don't know what i'm doing wrong.
I have checked all my signals and I'm 99% sure that they are connected correctly.
Datasheet of: MCP3208 http://ww1.microchip.com/downloads/en/d ... 21298c.pdf
I have attached my Flowcode below
Regards Jordy
MCP3208
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:
MCP3208
- Attachments
-
- Controller.fcf
- (40.31 KiB) Downloaded 175 times
the will to learn, should not be stopped by any price
- 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
Hi all,
Does nobody have an idea what I'm doing wrong here.
Regards Jordy
Does nobody have an idea what I'm doing wrong here.
Regards Jordy
the will to learn, should not be stopped by any price
- 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: MCP3208
Hi Jordy,
Is the D1 signal your Chip select signal?
If so then it looks like your almost doing things correctly. The last send char 0b00000000 is probably not required as the transaction is completed after 3 bytes.
Looks like the sending begins halfway through the second byte which is helpful.
Here is an example which should collect the lower 8-bits of the result. If you also need the upper 4 bits then let me know and I will see what is possible.
Is the D1 signal your Chip select signal?
If so then it looks like your almost doing things correctly. The last send char 0b00000000 is probably not required as the transaction is completed after 3 bytes.
Looks like the sending begins halfway through the second byte which is helpful.
Here is an example which should collect the lower 8-bits of the result. If you also need the upper 4 bits then let me know and I will see what is possible.
- Attachments
-
- Controller.fcf
- (40.04 KiB) Downloaded 179 times
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