Today 11:49
Forum: Proton Plus Compiler v3
Starter: Henk57
Views: 0
Replies: 3
Go to last post By: Lester
Yesterday 20:59
Forum: Website / Forum Issues
Starter: Lester
Views: 0
Replies: 10
Yesterday 20:40
Forum: New devices and techniques
Starter: normnet
Views: 861
Replies: 2
+ Reply to Thread
Results 1 to 5 of 5

Thread: DEF and PPI files503 days old

  1. #1
    Member yvesmazzon's Avatar
    Join Date
    Jul 2006
    Posts
    158
    Thumbs Up
    Received: 3
    Given: 19
    Total Downloaded
    4.11 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,037
    Thumbs Up
    Received: 85
    Given: 19
    Total Downloaded
    927.31 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
    158
    Thumbs Up
    Received: 3
    Given: 19
    Total Downloaded
    4.11 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
    3,245
    Thumbs Up
    Received: 231
    Given: 87
    Total Downloaded
    1.50 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,037
    Thumbs Up
    Received: 85
    Given: 19
    Total Downloaded
    927.31 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, 13: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 : 43

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