MCP3424 18-bit ADC


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2022
    Location
    tokyo
    Posts
    3

    Default MCP3424 18-bit ADC

    This is my first submission.
    Hi, I am a person who enjoys crafts.
    I would like to check an 18-bit ADC using an MCP3424, but I am not competent enough to write the code. Can some one please give me the I2CREAD source code?
    The PIC I am using is PIC18F8723.
    Thank you in advance for your help m(_ _)m.

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,796


    Did you find this post helpful? Yes | No

    Default Re: MCP3424 18-bit ADC

    This chip is not plug and play. You need to decide how it is supposed to work (various modes at page 18 of the datasheet), meaning you have to setup the configuration register and then try to work with the converter.

    The device code is 1101 (factory set) and you have to blend it with the address pins A0,A1,A2 in the address byte, the first byte sent to the chip (page 19-21). I would tie the A0 and A1 to ground and have an address of 000 combined with the 1101, that is 1101000. This will be the first byte in the I2C command. But you have to do the config first.

    Ioannis

  3. #3
    Join Date
    Apr 2022
    Location
    tokyo
    Posts
    3


    Did you find this post helpful? Yes | No

    Default Re: MCP3424 18-bit ADC

    Hello, Ioannis.
    Thank you for your explanation.
    My knowledge is still insufficient to understand it, but I will study further the parts you explained.
    I am looking for a reference source code in picbasic format, but I am having trouble finding good information.
    If you know of a good reference (source code), please let me know further.
    Thank you very much.
    guintec.

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,796


    Did you find this post helpful? Yes | No

    Default Re: MCP3424 18-bit ADC

    Well, the best reference is in your PBP manual on I2CRead and I2CWrite commands. If you really want a ready made ready to run code for this specific chip, well, I think is not going to happen. I do not have this chip and I guess no one else. Or there would be some sample codes.

    Your best chance is to have a circuit, some test and if your code fails, post it to have a look and help on that.

    Ioannis

  5. #5
    Join Date
    Apr 2022
    Location
    tokyo
    Posts
    3


    Did you find this post helpful? Yes | No

    Default Re: MCP3424 18-bit ADC

    Good day. Ioannis.
    Thank you for your comments.
    Now that the components and test circuit are ready, I will proceed with the actual programme coding. ^^

    guintec.

Similar Threads

  1. ADC values above 4095 for 12 bit ADC
    By longpole001 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 1st February 2015, 23:24
  2. 10 bit ADC display on LCD using 16f873
    By pr2don in forum mel PIC BASIC
    Replies: 3
    Last Post: - 6th March 2010, 19:29
  3. Flash PIC with 12 bit ADC
    By Steve_88 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 12th October 2007, 21:35
  4. MAX1247 4-Channel, 12-Bit ADC
    By Atom058 in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 16th December 2006, 00:38
  5. Need help with 16f819 10 bit ADC
    By bannrikae in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 26th September 2005, 16:20

Members who have read this thread : 3

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts