I2C With 3,3 Volt


Closed Thread
Results 1 to 10 of 10
  1. #1
    Join Date
    Jun 2006
    Location
    Greece
    Posts
    302

    Default I2C With 3,3 Volt

    All my programms with I2C are work.
    I use 10K from 5v to pin of pic16f628a.
    Now i want to control with i2c (pic16f628a) one NS73M which work at 3,3V.
    May i have any problem if i use 10K from 5V to pin from NS73M.

  2. #2
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    I would suggest a 1/3 devider, see schematic.

    Al.
    Attached Images Attached Images  
    All progress began with an idea

  3. #3
    Join Date
    Jun 2006
    Location
    Greece
    Posts
    302


    Did you find this post helpful? Yes | No

    Default

    Maybe you don't understand well because my english is not good.
    I want to control the NS73M with 16f628a with I2C , but NS73M works at 3,3 volts.
    Attached Images Attached Images  

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


    Did you find this post helpful? Yes | No

    Default

    Set your pull-up to 3.3v and see what happen on the SCL/SDA line with a scope and a I2CREAD/WRITE tight loop.

    I suspect the I2CREAD/WRITE would play with TRIS... worth to have a look at this.

    Your device is not 5 volt tolerant (well as per the datasheet) so I would say you will have problem with direct connection. Arrati's suggestion might work, but I would be concerned about the shape of the data though AND I2C line work usually @4.7K or lower pull-up value...

    There's still some I2C level shifter available. Philips use to do some. PCA9512A, P82B96 spring to mind now.

    If at all possible, run the whole thing at 3.3 volt.
    Last edited by mister_e; - 7th February 2009 at 19:44.
    Steve

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

  5. #5
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Wink another spoutnik project ?

    Quote Originally Posted by savnik View Post
    All my programms with I2C are work.
    I use 10K from 5v to pin of pic16f628a.
    Now i want to control with i2c (pic16f628a) one NS73M which work at 3,3V.
    May i have any problem if i use 10K from 5V to pin from NS73M.
    Hi, Savnik

    Mikroelektronika MMC/SD card module works like that : Pic with 5 volts and card with 3v3 ...
    Everything fine.

    But just verify you use TTL inputs of the PIC and not Schmitt trigger ones ...

    or use translator chips ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  6. #6
    Join Date
    Jun 2006
    Location
    Greece
    Posts
    302


    Did you find this post helpful? Yes | No

    Default

    Always i use on my projects with I2C , 1OK resistor without problem.
    Now i am afraid for the NS73M , because work at 3,3 volt.
    I have make the PCB and tomorrow maybe i will test.
    Maybe i Set pull-up to 3.3v to test , or i run all at 3,3 volt (and LCD).
    Have any problem with 16f628a with 3,3 volt;

  7. #7
    Join Date
    Jan 2009
    Posts
    18


    Did you find this post helpful? Yes | No

    Default

    You might not be able to get the LCD to work on 3.3v, but you can always put a regulator or resistors in to drop voltage for the NS73M...

    I am having my own problems with this situation.

    I hope you are successful, and I hope you share

    Cheers!

    SmugWimp

  8. #8


    Did you find this post helpful? Yes | No

    Default

    curious, but doesn't PBP run the clock and data as open collector? (playing with tris).
    the 628a doesn't have i2c hardware so would have to be done by PBP.
    as I've seen the define to make the clock bipolar I've wondered about that.
    and reading the lib seen :
    Code:
    i2chigh
          ifndef I2C_INTERNAL
            bsf     FSR, 7          ; 1 Point to TRIS
          endif
            iorwf   INDF, F         ; 1 Set high (input)
    or similar all about the i2c routines.

    if so, then pullups to 3.3v appears to be all that's needed.?
    (assuming the pic recognises 3.3v as a high)

    maye that's why Acetronics said
    But just verify you use TTL inputs of the PIC and not Schmitt trigger ones ...
    Something I'm missing?
    Last edited by nomad; - 11th February 2009 at 06:01.

  9. #9
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Cool

    You need a bidirektional Level-shifter !

    Look here:
    http://www.standardics.philips.com/s...df/an97055.pdf
    http://www.semiconductors.philips.co...#levelshifting

    You need only 2 little MOSFETs!
    PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2

  10. #10
    Join Date
    Jun 2006
    Location
    Greece
    Posts
    302


    Did you find this post helpful? Yes | No

    Default final works

    Yesterday i test it and all is ok.
    I use 5volt for 16f628a + LCD and 3,3 volt for NS73M
    My problem with NS73M is that have spurius near the local frequency.
    Thanks all for help.
    Last edited by savnik; - 12th February 2009 at 07:07.

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. PIC16F877 I2C programme
    By cooqo in forum mel PIC BASIC
    Replies: 3
    Last Post: - 21st April 2008, 10:02
  4. I2C Master Slave issues.
    By cpayne in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 29th March 2008, 19:33
  5. Please help with i2cslave i2c slave
    By cycle_girl in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 1st December 2005, 13:55

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