Today 00:49
Forum: Master Synchronous Serial Port (MSSP) module / 3-wire SPI / I2C™ / Master and Slave modes
Starter: RGV250
Views: 0
Replies: 0
Go to last post By: RayEllam
Today 00:32
Forum: Proton 24
Starter: RayEllam
Views: 1150
Replies: 8
Yesterday 15:42
Forum: Proton 24
Starter: matty
Views: 0
Replies: 3
+ Reply to Thread
Results 1 to 5 of 5

Thread: DEF and PPI files276 days old

  1. #1
    Member yvesmazzon's Avatar
    Join Date
    Jul 2006
    Posts
    140
    Thumbs Up
    Received: 3
    Given: 15
    Total Downloaded
    2.29 GB

    0 Not allowed!

    Default DEF and PPI files

    Hi Picsters,

    Sorry about my ignorance but I cannot find any explanation on the manual on how to use the DEF and PPI files. Are they sort of new includes?

    Regards,

    Yves

  2. #2
    Prolific Poster hadv215's Avatar
    Join Date
    Sep 2009
    Posts
    1,001
    Thumbs Up
    Received: 80
    Given: 15
    Total Downloaded
    570.61 MB

    1 Not allowed!

    Default Re: DEF and PPI files

    You don't use them, the compiler uses them to retreive information about the device type you have selected.
    They're not mentioned in the manual, but believe me, there are many files not mentioned in the manual that are being used. They just have no extra value for the user (except from making the compiler do the job right).

  3. #3
    Member yvesmazzon's Avatar
    Join Date
    Jul 2006
    Posts
    140
    Thumbs Up
    Received: 3
    Given: 15
    Total Downloaded
    2.29 GB

    0 Not allowed!

    Default Re: DEF and PPI files

    Many thanks Hady215
    Yves

  4. #4
    Developer Les's Avatar
    Join Date
    Feb 2002
    Posts
    2,969
    Thumbs Up
    Received: 176
    Given: 64
    Total Downloaded
    1.18 GB

    0 Not allowed!

    Default Re: DEF and PPI files

    The compiler does not use the .def files for its compilation. The .def files are there for the user. If opened with notepad etc... They can be seen to be Proton BASIC code full of preprocessor defines that combine bit names with SFRs, and give $defines of what the compiler is currently using.

    They are explained to a certain extent in the Proton24 manual, and they will be explained within the standard Proton manual in time.
    For more example programs for Proton and Proton24 or updates, please visit: Proton WIKI or Proton Files

  5. #5
    Prolific Poster hadv215's Avatar
    Join Date
    Sep 2009
    Posts
    1,001
    Thumbs Up
    Received: 80
    Given: 15
    Total Downloaded
    570.61 MB

    0 Not allowed!

    Default Re: DEF and PPI files

    The manual says however: "The compiler attempts to make all pins digital by manipulating the required SFRs before the
    user’s program starts. This is accomplished within each device’s “.def” file."

    But maybe I'm taking it all a bit too literally.

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. 16F1503 def & ppi files - i2c bug
    By Francis in forum Master Synchronous Serial Port (MSSP) module / 3-wire SPI / I2C™ / Master and Slave modes
    Replies: 0
    Last Post: 3rd January 2013, 12:21
  2. PIC18F24J50 PPI+def files
    By RayEllam in forum Proton Plus Compiler v3
    Replies: 15
    Last Post: 9th June 2012, 22:12

Members who have read this thread since 30th April 2017, 09:58 : 0

Actions :  (Set Date)  (Clear 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