Hi,
I'm trying to communicate with the MCP3421 from Microchip with the I2C bus. I can successfully write to the ADC but can't receive the answer. Attached is the programmcode and two screenshots. 1. screenshot shows the data I'm writing to the ADC and on the second screenshot is the anwser of the ADC.
every 3 data1 to data3 are 0. How do I read this answer correctly?
,
Best Regards
Speed64
PIC18F26K80 I2C read problem
Moderator: Benj
-
- Posts: 75
- Joined: Thu May 24, 2012 1:15 pm
- Location: Cape Town
- Has thanked: 30 times
- Been thanked: 28 times
Re: PIC18F26K80 I2C read problem
Hi
I believe you have to have a delay between writing to the ADC and reading from it.
Not positive on that exact chip, but the delay will be related to the resolution you require.
Howard
I believe you have to have a delay between writing to the ADC and reading from it.
Not positive on that exact chip, but the delay will be related to the resolution you require.
Howard
-
- Posts: 129
- Joined: Wed Jul 04, 2012 11:21 pm
- Location: Greece
- Has thanked: 51 times
- Been thanked: 19 times
Re: PIC18F26K80 I2C read problem
Hello, i want to use the MCP3421 Analog to Digital converter chip. Could you please let me know if you have any flowcode example for this specific chip?
Thank in advance
George
Thank in advance
George
Re: PIC18F26K80 I2C read problem
Hi George
if you download the flowcode file in this thread you should get the answer ,as that flowchart is for the same chip
Regards
Dazz
if you download the flowcode file in this thread you should get the answer ,as that flowchart is for the same chip
Regards
Dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php