Connect with us

10bit-adc value via i2c

Discussion in 'Microcontrollers, Programming and IoT' started by Torch, Jul 18, 2013.

Scroll to continue with content
  1. Torch

    Torch

    9
    1
    Jul 26, 2012
    Hi I am currently coding in c and wanting to know how to send more than 8-bit data via i2c. I have been successful in sending 8 bit data to my raspberry pi via my avr microcontroller. I am unable to send more than this. is it possible? i know the raspberry pi has methods that allow you to read different bytes sent via i2c but i am not sure how to send it. I have attached my code.
    Regards
     

    Attached Files:

    • i2c.txt
      File size:
      1.4 KB
      Views:
      174
  2. BobK

    BobK

    7,682
    1,686
    Jan 5, 2010
    If you can send a byte, you can send 10 bits as 2 bytes.

    Bob
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-