MCP3208

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

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

Post by Jordy101091 »

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
Attachments
Controller.fcf
(40.31 KiB) Downloaded 175 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

Post by Jordy101091 »

Hi all,

Does nobody have an idea what I'm doing wrong here.

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

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

Post by Benj »

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.
Attachments
Controller.fcf
(40.04 KiB) Downloaded 179 times

Post Reply