I2C MSSP Samples code


+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2022
    Posts
    42

    Default I2C MSSP Samples code

    Hi everyone,

    currently I use the I2C regular 'bit-banging' method from PBP on a PIC18F25K22

    with instruction like 'I2Cwrite PORTB.2, PORTB.1,$A0,I, [str aarray\32]'

    and looking to upgrade to a 24FC16 at 1Mhz, to acheive this I need to use the MSSP hardware function

    and I'm having problem on how to figure it at all.

    I looked at the AN989 and the code are listed in ASM, and I'm asking peoples here with more experience on this field

    if it's possible to write in basic code instead of ASM to acheive this and where to get clear commented sample code

    so I can learn & build this project on I2C.

    Thanks to anyone help on this project.

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,623


    Did you find this post helpful? Yes | No

    Default Re: I2C MSSP Samples code

    if it's possible to write in basic code instead of ASM to acheive this and where to get clear commented sample code


    so I can learn & build this project on I2C
    sic
    yes it is , its not too difficult


    see here for a pbp example , with no asm code at all ,that is well commented
    https://www.picbasic.co.uk/forum/sho...unning-at-1Mhz

    you appear to totally ignore this even though its 99% compatible with what you request
    Warning I'm not a teacher

  3. #3
    Join Date
    Feb 2022
    Posts
    42


    Did you find this post helpful? Yes | No

    Default Re: I2C MSSP Samples code

    your'e right starting point
    first get some pratice with this listing and see how it goes.

    regards.

Similar Threads

  1. Replies: 18
    Last Post: - 30th July 2012, 11:00
  2. Averaging AtoD samples
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 39
    Last Post: - 29th September 2011, 22:51
  3. Samples
    By GioppY in forum Code Examples
    Replies: 7
    Last Post: - 29th May 2007, 06:19
  4. Three USB Samples
    By LordLafebre in forum USB
    Replies: 0
    Last Post: - 11th December 2006, 06:18
  5. Microchip free samples in UK?
    By zoki008 in forum Off Topic
    Replies: 1
    Last Post: - 21st March 2006, 17:06

Members who have read this thread : 12

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