MCP3301 A/D converter SPI reading


Results 1 to 15 of 15

Threaded View

  1. #12
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,146


    Did you find this post helpful? Yes | No

    Default Re: MCP3301 A/D converter SPI reading

    Yes, Richard is correct. I forgot to mention you have to adjust the value to the byte, word or whatever width you have.

    So the sign is the left most bit but the rest should also be 1. Remember we reverse the bits to get the absolute value disregarding the left most, sign bit.

    Seems confusing at first, but has its logic.

    Ioannis
    Last edited by Ioannis; - 9th February 2024 at 11:11.

Similar Threads

  1. Reading DS1620 (SPI Temperature) from 18F46k22 Micro at 16MHz
    By JimAvanti in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th June 2015, 00:24
  2. Need to use SPI but I'm already using the SPI port
    By Christopher4187 in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th December 2012, 09:52
  3. SPI on a pic without hardware SPI?
    By modifyit in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 26th April 2006, 13:29
  4. Isolated A/D converter, SPI I/F
    By srob in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 3rd November 2004, 07:18
  5. help D/A converter
    By matelda in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 8th September 2004, 17:25

Members who have read this thread : 0

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

Posting Permissions

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