Question about Hbusin / Hbusout on PIC16F15313


+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Junior Member esotec's Avatar
    Join Date
    Sep 2019
    Posts
    2
    Thumbs Up
    Received: 0
    Given: 0
    Total Downloaded
    0

    0 Not allowed!

    Smile Question about Hbusin / Hbusout on PIC16F15313

    Hello there,

    Attempting to use HBusIn or HBusOut with PIC16F15313 and Proton 3.7.2.5 gives me:

    "Device not suitable Hbusin or Hbusout because no SSPCON2 register available!"

    I have not used HbusIn or HBusOut for several years and not with any newer devices. however from the user manual I gather these commands are meant to work on any supported device with a hardware MSSP?

    16F15313 has a hardware SPI/i2c MSSP which has SSP1CON2 not SSPCON2. Is there an error in the support files for the device or am I at fault?


    Thanks In Advance

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.

  • #2
    Fanatical Contributor top204's Avatar
    Join Date
    Feb 2002
    Posts
    3,404
    Thumbs Up
    Received: 290
    Given: 141
    Total Downloaded
    1.68 GB

    0 Not allowed!

    Default Re: Question about Hbusin / Hbusout on PIC16F15313

    Microchip are notorious for changing the way peripherals work and teh SFRs used, so the compiler's hardware I2C routines only work with a specific pattern to the peripherals.

    When I originally wrote the HBus commands, all the devices followed the same protocols and used teh same SFRs and bits within them, but over time, Microchip have moved the goalposts so many times, it is impossible to keep up with them. I just wish I had never created the Hbus commands. :-(

    I don't have one of those devices, so you can do some tests to see if it is just the name of the SFRs that have changed.

    Make a copy of the p16F15313.ppi file so the original is safe.

    Use notepad to open the p16F15313.inc file and change the SSP1xxx SFR names to just SSPxxx SFRs. Then try the compiler's Hbus commands. If they work, I'll make the changes for other devies that have that name change, but if they have changed the protocol for the MSSP peripheral, it will have to wait until I get a device and examine the datasheet etc... And get some time to do it, because there is only me working on the compiler for zero money. :-(

  • 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
    Junior Member esotec's Avatar
    Join Date
    Sep 2019
    Posts
    2
    Thumbs Up
    Received: 0
    Given: 0
    Total Downloaded
    0

    0 Not allowed!

    Default Re: Question about Hbusin / Hbusout on PIC16F15313

    Hi top204,

    Thanks for the heads up,

    I'll have a look into the situation in the next few days and post an update then


    Thanks again...

  • 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.

  • #4
    Senior Member Stephen Moss's Avatar
    Join Date
    Jan 2006
    Posts
    505
    Thumbs Up
    Received: 30
    Given: 7
    Total Downloaded
    3.72 GB

    0 Not allowed!

    Default Re: Question about Hbusin / Hbusout on PIC16F15313

    Quote Originally Posted by top204 View Post
    Microchip are notorious for changing the way peripherals work and teh SFRs used, so the compiler's hardware I2C routines only work with a specific pattern to the peripherals.

    When I originally wrote the HBus commands, all the devices followed the same protocols and used teh same SFRs and bits within them, but over time, Microchip have moved the goalposts so many times, it is impossible to keep up with them. I just wish I had never created the Hbus commands. :-(
    It is impossible to keep up with ever changing goal posts, especially if different devices operate differently as I would think having a whole bunch of different statements to cater for every option could make even the best written source code a large, unweildly and difficult to maintain.
    One of the great things about Proton, particularity for new PIC programmers, is the availability of easy to use commands to quickly get things doing, however the one downside (as it were) of that is some users will over relay on them, never taking the time to learn how to understand the datasheets and manipulate registers directly leaving them stuck when they encounter a device on which the command does not work.

    Perhaps in some cases where Microchip have made too many changes/have too many different methods for different devices the occasional downgrading of some difficult to maintain commands (or even device) to either "May not operate on all devices" or "Legacy - Not Suitable for new programs" is necessary.
    I am sure any reasonable Proton user would understand the need for this given the large number of differnt device you are trying to cater for and that you are only one person who can only dedicate so much time to maintaining the compiler.

  • 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. [SOLVED !] DWord Addressing for BusIn, BusOut, HbusIn, HBusOut?
      By zerone in forum Proton Plus Compiler v3
      Replies: 4
      Last Post: 14th March 2014, 21:32
    2. Hbusin/Hbusout error
      By chuckieboy in forum Proton Plus Compiler v3
      Replies: 13
      Last Post: 28th December 2013, 15:45
    3. 18F4525 HBUSIN HBUSOUT program hang
      By Jeffrey in forum Proton Plus Compiler v3
      Replies: 0
      Last Post: 15th July 2007, 17:40
    4. HBusIn/Out question
      By johngb in forum Proton Plus Compiler v3
      Replies: 2
      Last Post: 15th November 2004, 12:11
    5. HBUSIN/OUT Question
      By johngb in forum Proton Plus Compiler v3
      Replies: 2
      Last Post: 13th November 2004, 10:28

    Members who have read this thread : 27

    Actions :  (Set Date)

    You do not have permission to view the list of names.

    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