PPS for 8bit Microchip Micocontrollers


+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 20

Thread: PPS for 8bit Microchip Micocontrollers35 days old

  1. #1
    Junior Member evan's Avatar
    Join Date
    Nov 2018
    Posts
    31
    Thumbs Up
    Received: 3
    Given: 1
    Total Downloaded
    0

    1 Not allowed!

    Default PPS for 8bit Microchip Micocontrollers

    I am not sure of the applicability of the software discussed but I thought I would share a piece of software that we use in 'another place'.

    The tool is called PPSTool and the software enables simple configuration of the PPS for 8bit Microchip microcontrollers.

    What is the PPSTool?

    The PPStool helps to automatically generate the PPS configuration code for your program. It is a standalone program.

    PPSTool is maintained by Pete Everett, from a Google based prototype I had developed. When initially developed we did think 'this is a reusable tool by other compilers' - hence this post. :-)

    How do I use it?

    • Run the tool. You may get asked for the location of the Microchip Pin Manager files. We consolidate these upon every release of the Microchip MCC (part of the MPLAB-X IDE)
    • Choose the chip that you are using from the dropdown list.
    • From the input and output sections, choose the peripheral and pin number that you want to map to each other then click the Add button.
    • The code will appear on the right of the screen and can be copied into your code. Clicking Copy will copy it to the clipboard.
    • If you make a mistake, you need to start over (currently at least) which you can do by clicking the Clear button
    What does it look like?

    The screenshot below shows the UI. The generated code shown below is for another compiler but this is based upon a template and is therefore configurable. (I edited the template to remove the 'other' compiler references.)
    As you can see. PPS assignments are as inputs and outputs; it isolates PPSUnlock and PPSLock statements and as the user progresses with the selection the code generated is updated.
    It is very easy to use - the chip is shown (PDIP) to show the user port usage.

    [IMG]file:///C:\Users\admin\AppData\Local\Temp\msohtmlclip1\01\ clip_image001.gif[/IMG]


    Minimum system requirements[/B]

    The program requires .NET Framework 4, which has the following minimum system requirements:
    • Windows XP
    • 1.0 GHz processor
    • 512 Mb of RAM
    Maintenance

    We maintain the software whenever Microchip update the Microchip MCC (part of the MPLAB-X IDE). And, we publish as Open Source.


    If this is of interest, as this software current focuses on another compiler, then, we could easily adapt for Proton. But, if you have a solution already then I apologise for my lack of knowledge regarding the tool chain.
    Attached Thumbnails Attached Thumbnails Capture.JPG‎  

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
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    2,231
    Thumbs Up
    Received: 75
    Given: 181
    Total Downloaded
    5.15 GB

    0 Not allowed!

    Default Re: PPS for 8bit Microchip Micocontrollers

    But, if you have a solution already then I apologise for my lack of knowledge regarding the tool chain.
    There is a Proton plugin for PPS but only for 16bit devices. So, although there is some concern about the veracity of mc config files (which is both worrying and amusing), I find the tool excellent and has produced working solutions for all the PIC devices I've used.
    George.

  • 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 evan's Avatar
    Join Date
    Nov 2018
    Posts
    31
    Thumbs Up
    Received: 3
    Given: 1
    Total Downloaded
    0

    0 Not allowed!

    Default Re: PPS for 8bit Microchip Micocontrollers

    Well.. one response... does this mean that no one needs the tool?

  • 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
    Prolific Poster John Drew's Avatar
    Join Date
    Feb 2002
    Posts
    2,795
    Thumbs Up
    Received: 87
    Given: 34
    Total Downloaded
    4.53 GB

    0 Not allowed!

    Default Re: PPS for 8bit Microchip Micocontrollers

    Evan, to date I haven't used an 8 bit device where I've had PPS.
    However it doesn't mean I won't. I never knock back a tool for the toolbox.
    Thanks for your support for Proton and anything that can make coding easier has got to be a plus.
    John

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

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

    0 Not allowed!

    Default Re: PPS for 8bit Microchip Micocontrollers

    It would be an excellent tool for the Proton compiler Evan, and I thank you for your detailed info concerning it.

    The code produced would be great inside a Proc-EndProc and the hex values using the $ instead of the 0x. The compiler recognises the 0x a a hex constant, but the IDE does not highlight it as a constant value.

    The compiler has all the pieces to create PPS_Out and PPS_In routines, but for some reason Microchip have changed the way the format works on some of its devices.

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

  • #6
    Junior Member keytapper's Avatar
    Join Date
    Jun 2019
    Posts
    90
    Thumbs Up
    Received: 3
    Given: 3
    Total Downloaded
    308.02 MB

    0 Not allowed!

    Default Re: PPS for 8bit Microchip Micocontrollers

    May praises for your great support.

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

  • #7
    Prolific Poster johngb's Avatar
    Join Date
    Oct 2003
    Posts
    2,164
    Thumbs Up
    Received: 95
    Given: 1
    Total Downloaded
    2.75 GB

    0 Not allowed!

    Default Re: PPS for 8bit Microchip Micocontrollers

    I agree with JohnD it would be a very nice addition to the PDS stable. The PPS Wizard I developed is much more restricted than the PIC PPSTool and I would be happy to replace it with your tool if it can be tailored to generate a PDS compatible Proc as Les has suggested.
    JohnB

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

  • #8
    Junior Member glenlivet's Avatar
    Join Date
    Nov 2004
    Posts
    48
    Thumbs Up
    Received: 0
    Given: 0
    Total Downloaded
    103.68 MB

    0 Not allowed!

    Default Re: PPS for 8bit Microchip Micocontrollers

    I second and third the motion for PPS support for the 8-bit PIC's. At this moment I'm using PDS to develop an app using a PIC that supports PPS. Sure, you can bit bang the registers (and I am) but a function call or declare statement would sure simplify things. More and more PIC's are coming online with the PPS function. It's already in the PDS PIC24 compiler and 8-bit compilers (Mikroelektronika) from other vendors. Would be a great addition to the PDS toolchain...

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

  • #9
    Senior Member GAMBOA's Avatar
    Join Date
    Nov 2004
    Posts
    421
    Thumbs Up
    Received: 19
    Given: 0
    Total Downloaded
    203.73 MB

    0 Not allowed!

    Default Re: PPS for 8bit Microchip Micocontrollers

    Hi,

    It would be a very useful tool. Thank you.

    Regards,
    Gamboa

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

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

    0 Not allowed!

    Default Re: PPS for 8bit Microchip Micocontrollers

    Quote Originally Posted by evan View Post
    Well.. one response... does this mean that no one needs the tool?
    I think that may just be that currently nobody is certain if or how much they would use it because...
    a) So far PSS has primarly been available on only the 16bit device which few here have used and so some people may not be familiar with what PPS is, and
    b) Until Microchip phase out all non PPS devices it is not like the Fuse Configurator whereby it would be used with every project as it is use is currently device dependant.

    It is always better to have it should you need it than not.
    How would it be updated? Does it automatically check for & download updates, will it access the Microchip Pin Manager files from a maintained on-line location?

    Unfortunately, I have not had time to do much PIC work the last couple of year, the last project I started used 24 series device and if I recall correctly your could shutdown peripherals you were not using to save power. If that is also the case the 8bit devices with PPS then will the PPSTool also support that function or will that still need to be coded by hand?

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

  • #11
    Prolific Poster johngb's Avatar
    Join Date
    Oct 2003
    Posts
    2,164
    Thumbs Up
    Received: 95
    Given: 1
    Total Downloaded
    2.75 GB

    0 Not allowed!

    Default Re: PPS for 8bit Microchip Micocontrollers

    I have downloaded the tool from Source Forge and installed it. It requires the devices files which come with MPLAB-X.
    As people in this forum do not use MPLAB-X I have extracted the relevant device files to save other the bother. See here.
    JohnB

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

  • #12
    Member Dompie's Avatar
    Join Date
    Apr 2012
    Posts
    122
    Thumbs Up
    Received: 14
    Given: 12
    Total Downloaded
    5.03 GB

    0 Not allowed!

    Default Re: PPS for 8bit Microchip Micocontrollers

    Since the xml files will change (remember, it is Microchip) it might be useful to update them regularly.
    If you open the PPS Tool.exe (or double click the help.chm), the Help will tell you how to download the xml files at Microchip. However, since the 1.77 version, no more a .zip but a .mc3lib is downloaded from the Microchip site. If you change this extension to .zip everything works according to the description in the Help.

    Johan
    Last edited by Dompie; 13th November 2019 at 14:50.

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

  • #13
    Prolific Poster johngb's Avatar
    Join Date
    Oct 2003
    Posts
    2,164
    Thumbs Up
    Received: 95
    Given: 1
    Total Downloaded
    2.75 GB

    0 Not allowed!

    Default Re: PPS for 8bit Microchip Micocontrollers

    If Evan is to modify the code to accommodate PDS basic we need to identify exactly what needs changing.
    This is my take on it as far as I can see:

    The Proc Endproc can be handled by simply modifying the Template file.
    I don't think we need the define PPSInit statement at all as I would expect it to be called in the initialization section at the start of the code.
    The define Part Number line again is probably redundant but it would be wise to keep it in as a comment.
    I don't know what Lock and Unlock mean, is this a GC Basic command or is an MPASM command?
    The Direction line needs to be re-written as Output Port.bitNo or Input Port.bitNo.
    Finally the PPS Register value should be expressed using the PDS hex notation of $.

    Hope this helps, please add to or modify as you see fit.
    JohnB

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

  • #14
    Prolific Poster johngb's Avatar
    Join Date
    Oct 2003
    Posts
    2,164
    Thumbs Up
    Received: 95
    Given: 1
    Total Downloaded
    2.75 GB

    0 Not allowed!

    Default Re: PPS for 8bit Microchip Micocontrollers

    I have now downloaded the P24/dsp33 device files and the PPS Tool picks them up correctly but is can't draw the device outline.
    I don't know if there is another file I should be looking for. Perhaps Evan can enlighten us.

    Even in its present form, without the device outline, it would give better coverage than my PPS Wizard.
    JohnB

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

  • #15
    Prolific Poster johngb's Avatar
    Join Date
    Oct 2003
    Posts
    2,164
    Thumbs Up
    Received: 95
    Given: 1
    Total Downloaded
    2.75 GB

    0 Not allowed!

    Default Re: PPS for 8bit Microchip Micocontrollers

    Now downloaded the P24/33 device files and the PPS Tool seems to work with them apart from drawing the device outline.
    I don't know if there is another file I need to download, perhaps Evan can enlighten.

    So far I have not tried to mix them because the schema file which comes with the 16 bit devices is not identical to the 8 bit schema.
    I assume the two manifest files can be merged but I think it might be better to keep the 8 bit and 16 bit files separate which should reduce the load time
    I would think that we will probably want to run the App from a command line as we would normally have defined the device to be used in the source bas file.
    Even without the device layout diagrams the app offers support for a much wider range of devices than my PPS Wizard.
    JohnB

  • 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. 8bit PWM duty cycle adjust
      By Tim in forum Proton Plus Compiler v3
      Replies: 1
      Last Post: 9th March 2018, 08:27
    2. 18f25k42 pps
      By towlerg in forum Absolute Beginners Section
      Replies: 9
      Last Post: 6th February 2018, 23:49
    3. ADC 10bit to 8Bit resolution 45K22<->877A
      By Henk57 in forum Proton Plus Compiler v3
      Replies: 9
      Last Post: 30th October 2015, 14:38
    4. Replies: 18
      Last Post: 5th July 2007, 10:02

    Members who have read this thread since 4th December 2019, 00:41 : 0

    Actions :  (Set Date)  (Clear Date)

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

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts