Go to last post By: shantanu@india
Today 07:06
Forum: The Lounge
Starter: shantanu@india
Views: 13
Replies: 0
Yesterday 23:57
Forum: Proton Plus Compiler v3
Starter: pic-ignorant
Views: 55
Replies: 2
Yesterday 19:52
Forum: Proton 24
Starter: johngb
Views: 47
Replies: 3
Yesterday 17:57
Forum: Proton Plus Compiler v3
Starter: towlerg
Views: 49
Replies: 1
Yesterday 12:34
Forum: Proton Users File Server
Starter: Les
Views: 77
Replies: 0
Go to last post By: ricardourio
Yesterday 12:19
Forum: Projects discussion
Starter: ricardourio
Views: 316
Replies: 11
+ Reply to Thread
Results 1 to 5 of 5

Thread: DEF and PPI files209 days old

  1. #1
    Member yvesmazzon's Avatar
    Join Date
    Jul 2006
    Posts
    134
    Thumbs Up
    Received: 1
    Given: 15
    Total Downloaded
    1.99 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
    Senior Member hadv215's Avatar
    Join Date
    Sep 2009
    Posts
    981
    Thumbs Up
    Received: 79
    Given: 15
    Total Downloaded
    420.63 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
    134
    Thumbs Up
    Received: 1
    Given: 15
    Total Downloaded
    1.99 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,927
    Thumbs Up
    Received: 171
    Given: 63
    Total Downloaded
    898.91 MB

    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
    Senior Member hadv215's Avatar
    Join Date
    Sep 2009
    Posts
    981
    Thumbs Up
    Received: 79
    Given: 15
    Total Downloaded
    420.63 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 : 38

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