The I2C bus doesn't work in PIC 18F26K22.


+ Reply to Thread
Results 1 to 2 of 2

Thread: The I2C bus doesn't work in PIC 18F26K22.1388 days old

  1. #1
    Mentcleer
    Guest Mentcleer's Avatar

    0 Not allowed!

    Default The I2C bus doesn't work in PIC 18F26K22.

    Hey.

    I have AMICUS18 board with PIC18F26K22 versión (28 pin PDIP) and an other final board mounted with the same PIC but version (28 PIN QFN).

    In both I have the I2C RTC DS3231 in the sames ports.
    Applying the same code in both micros only works AMICUS18 board.

    The pull-up resistors are 10K.
    In the QFN board there is also a I2C gyroscope does not work.

    The SDO2 Pic is connected a serial display SPI works ok.

    The I2C bus SDO1 is in RC3 (SCL) and RC4 (SDA) with the pull-up resistors.

    I do not take days going around and still have not found the fault or if the QFN is different DIP.
    Here is the code to check.

    Code:
    Code.zip

    THX.

  2. Attention
    ×

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  3. #2
    Mentcleer
    Guest Mentcleer's Avatar

    0 Not allowed!

    Thumbs up Re: The I2C bus doesn't work in PIC 18F26K22.

    Hey,

    Solved the problem,
    I first had to change two resistors Pull-up by 1K or 2.2K suficient (did not work with very high 4.7K or 10K, I do not know).
    Then I realized I was using PIC MSSP ports, had to change the commands Busin, BusOut, BSTOP, BStart by HBusIn, HBusOut, HBStop, HBStart.

  4. Attention
    ×

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. BUY link doesn't work
    By John Lawton in forum The Lounge
    Replies: 5
    Last Post: 8th January 2017, 18:17
  2. PLL doesn't work with 18F2480
    By John Drew in forum Proton Plus Compiler v3
    Replies: 11
    Last Post: 12th August 2014, 15:10
  3. [SOLVED !] MCP2200 Doesn't work
    By Mario in forum The Lounge
    Replies: 5
    Last Post: 4th August 2010, 17:00
  4. 18F2550 doesn't work
    By Stijn in forum Proton Plus Compiler v3
    Replies: 9
    Last Post: 20th June 2010, 23:29
  5. [SOLVED !] Basic SPI doesn't work
    By franco in forum Proton Plus Compiler v3
    Replies: 3
    Last Post: 24th April 2007, 07:08

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