I2C Slave, config Vref - + in pic with ADC


Closed Thread
Results 1 to 5 of 5
  1. #1

    Default I2C Slave, config Vref - + in pic with ADC

    I like make a system with I2C, but only can programm a master PIC, existe some code for create a slave, but i very big (ass segment code included)

    Other recourse i need is config Voltage references + and -, in (for example) PIC16f877

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    for the I2C slave routine, you could start with those on the melabs website
    http://www.melabs.com/resources/samples.htm
    I2Cmast.bas
    I2Cslave.bas

    for the voltage reference... for ADC or analog comparator?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Thank, but is good use only one command


    Quote Originally Posted by mister_e View Post
    for the voltage reference... for ADC or analog comparator?
    the comparator of 16f877

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Thank, but is good use only one command
    not sure if i follow you. Could you explain it a little it more?

    For the 877, there's no analog comparator, only the 877A will have it.

    If you want to know the possible values , use my PicMultiCalc
    http://www.mister-e.org/pages/utilitiespag.html

    once done is just a matter to read a little bit the datasheet in the analog comparator section, register CMCON and CVRCON
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5


    Did you find this post helpful? Yes | No

    Default

    La verdad me complica un poco exponer esto en ingles:

    deseo saber como puedo configurar los pines 4 y 5 del PIC 16f877a para q funcionene como referencias de voltaje y no como entradas analogas, en general se como definir una entrada si es I/O, pero cuando tiene otras funciones me complica un poco es especial este caso, ya que no basta con definirlas como entrada-salida, si no tambien como entrada analoga o entrada de referencia

    GOOOGLE TRASLATION:
    The truth is difficult a little to expose this in English:
    desire to know as I can form pins 4 and 5 of the PIC 16f877a for q funcionene like references of voltage and not like analogous entrances, in general like defining an entrance if it is I/O, but when it has other functions complica me a little is special east case, since it is not enough with defining them like entrance-exit, if not also like analogous entrance or entrance of reference

Similar Threads

  1. I2C Master/Slave 16F88/16F767 working code
    By DanPBP in forum Code Examples
    Replies: 2
    Last Post: - 23rd October 2012, 22:31
  2. HARDWARE I2C SAMPLE CODE question
    By Michael Wakileh in forum Code Examples
    Replies: 2
    Last Post: - 16th June 2009, 21:07
  3. 18F4550 Bootloader enter via eeprom setting
    By bradb in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd November 2008, 23:51
  4. I2C Master Slave issues.
    By cpayne in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 29th March 2008, 19:33
  5. PortE problems (PIC18F4455)
    By RubenR in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 12th July 2006, 15:26

Members who have read this thread : 1

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