Menu

HI2C Slave ISR help

Mikorians
2019-02-01
2019-02-01
  • Mikorians

    Mikorians - 2019-02-01

    Hi again!
    I know I'm probably doing everything all wrong again.
    Using PIC16F887 and 18F4680.
    Version 0.96 on WinXP SP3, 32Bit.
    I've been messing around trying to get what I
    found about this .H include on Google.
    I just can't seem to get it to run.
    I've got incomplete mixed documents and versions of things.
    There's 3 versions to pick from...

    gcbasic.chm
    hi2c slave isr.h
    another .h also said to replace the existing hi2c.h file.

    Things are seeming conflicting and sort of hodge podge to me.
    I know it must be MY fault.
    I need different slave examples for both Anobiom's guide
    and the .chm one. Nothing's working out for me.
    With Anobiums's, I get the 1st address by setting a variable to SSPBUF.
    But the buffer array remains empty.

    It would be pretty pointless to post my own crazy attempt crap right now.

    I will probably just need the latest .h includes and what
    is presently being DONE with them. A few tiny examples that show how to respond to the various states
    of a master would be most helpful.
    Just minumum framework with Acks and such...

    The fact that it's been a long time is
    a tribute to HOW WELL GCB works!
    I thank you.

     
  • Chris Roper

    Chris Roper - 2019-02-01

    Hi mikorians,

    GCBASIC is so dynamic and has such a rapid build cycle that I don't recommend trying to use orphan files found by google. Rather stick to the official files in SourceForge and GitHub.

    Grab the latest build from here: http://www.gcbasic.com/
    That will give you all of the uptodate tested and verified examples too along with all of the latest .h files.

    Once installed click the "View Demos" button on the toolbar and navigate to:
    \Demos\i2c_solutions\i2c_slave_solutions\stateful_slave_and_support_master_solutions

    There are 12 documented examples in there that should serve well as a starting point for you.

    and welcome back...............

    Cheers
    Chris

     

Log in to post a comment.