A header wizard


Closed Thread
Results 1 to 40 of 230

Thread: A header wizard

Hybrid View

  1. #1
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default

    That's so sad for me (mplab version). I had to upgrade to icd3 because my icd2 was an older one with no support for win7. Had to upgrade mplab to 8.53 to get support for my device (16F1947). So it sounds like the best option may be 8.53 with icd2 on an xp machine.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,833


    Did you find this post helpful? Yes | No

    Default

    16F1946 is supported by 8.15a but not the 16F1947...

    Do you have any problems with the ICD3/MPLAB 8.5x/Win 7 ?

    Ioannis

  3. #3
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Ioannis View Post

    Do you have any problems with the ICD3/MPLAB 8.5x/Win 7 ?

    Ioannis
    To be honest, I haven't tried that combo yet. ICD3 is at work, where I only have XP. I will bring it home tomorrow and try it on my laptop with win7. I don't have a current built project to test it with, but I can use the test module that came with it,
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,833


    Did you find this post helpful? Yes | No

    Default

    OK. Looking forward...

    Ioannis

  5. #5
    Join Date
    Feb 2010
    Location
    USA, New England
    Posts
    164


    Did you find this post helpful? Yes | No

    Default

    Hello All,

    I was hoping to have an demo exe ready to post today, but the development had to take a major turn this past Friday...

    I removed all the fuse configuration parsing and settings. For want of a better first task I tried adding the setup of the pin input/output states and levels. The relevant MAPSM .inc file is parsed to determine what ports exist and which individual bits are available for those ports (and of course GPIO for the little chips). Each port gets it's own tab. Bits that don't exist for a given port are not shown on the individual tab. (Did that make *any* sense?). The configuration files can be saved and re-loaded.

    However, when taking the last look before posting I noticed two bugs that I won't have a chance to fix until tonight or tomorrow. One is that the text doesn't update properly when using certain chips until you actually click on a tab. The other is that when the text is generated in the form "TRISA = %10101010" I have inadvertently reversed the order of the bits. (When all bits in a port are not used it instead puts in an individual line for each bit, e.g. "TRISA.1 = %0".) I'm sure additional bugs will appear...

    Anyway I just wanted to put out that I was still trying to (finally!) maybe do something useful for this community. Suggestions for additional features to add would be most welcome. A screenshot is attached.

    Best Regards,
    Paul
    Attached Images Attached Images  

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    That looks nice!!!
    Next ADC?
    I was planning to start there but my weekend did not go as planned so I have nothing to show.
    Dave
    Always wear safety glasses while programming.

  7. #7
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default

    Paul, its great! I assume if ADC or any other special function options are chosen, the corasponding pin will not be available for I/O configuration?

    Dave, no worries. I might start pushing on you anyway when I start to learn something.

    Question for the masses, Do you think we should still include the config bits? I feel like it would still be good to have, plus its all wrapped up in 1 spot. And sometime down the road, we may want it to make some simple error checking like : configed for 4mHz internal osc, but wanting to rum 115KB serial, or something like that.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  8. #8
    Join Date
    Feb 2010
    Location
    USA, New England
    Posts
    164


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    That looks nice!!!
    Next ADC?
    Thanks Dave! ADC setup sounds like a good next step.

    Best Regards,
    Paul

  9. #9
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by prstein View Post
    Hello All,

    A screenshot is attached.

    Best Regards,
    Paul
    Hi, Paul

    Nice one !!! I take it all ...

    Alain

    PS: Place PORTA = xxxx .... BEFORE TRISA = xxx ... to prevent any port toggling .
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  10. #10
    Join Date
    Feb 2010
    Location
    USA, New England
    Posts
    164


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics View Post
    Nice one !!! I take it all ...

    PS: Place PORTA = xxxx .... BEFORE TRISA = xxx ... to prevent any port toggling .
    Hello Alain,

    Thank you! And I appreciate the reminder about PORTx before TRISx. It seems I usually default to alphabetical...

    Best Regards,
    Paul

  11. #11
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,833


    Did you find this post helpful? Yes | No

    Default

    Hi Paul.

    I likd the idea of the Initial state.

    Great job!

    Is this in VB?
    Ioannis

  12. #12
    Join Date
    Feb 2010
    Location
    USA, New England
    Posts
    164


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Ioannis View Post
    Hi Paul.

    I likd the idea of the Initial state.

    Great job!

    Is this in VB?
    Ioannis
    Hello Ioannis,

    Thank you very much! It is written in Delphi, an IDE for Visual Pascal. I'm using version 4, which is kind of old, but the IDE loads so much more quickly than the later releases. I know about a half dozen or so (programming) languages, several of those are different flavors of C/C++. I can stumble through a couple of others (C# and Java). I tell customers that I'll write in any language they pay me to. If it isn't specified and it's for Windows, I generally choose Delphi.

    I better get off my soapbox before I blather on any further...8-)

    Best Regards,
    Paul

  13. #13
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Ioannis View Post
    OK. Looking forward...

    Ioannis
    Just to follow up on this, I finally did remember to bring my ICD3 home from work. Today I have it plugged in. I also have the test interface module pluged into it. From time to time through out the day, I jump to mplab and test the connection. So far so good. I don't really know if this will test the issue or not, but at least is a start.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  14. #14
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,833


    Did you find this post helpful? Yes | No

    Default

    With the test interface works OK. It just ensures that electrically the ICD3 is working.

    But if you load a hex file, compile a project or try to program a chip then after a while it looses connection and returns an error message. The only cure is to disconnect the USB cable and reconnect in a few seconds.

    Any version after 8.15a does this. In my Vista, XP and in a friends systems to (his ICD3). On the Microchips forum there are reports from others too...

    Ioannis

  15. #15
    Join Date
    Feb 2010
    Location
    USA, New England
    Posts
    164


    Did you find this post helpful? Yes | No

    Default PBP Header Wizard v0.1 build 3

    Hello All,

    Don't want you to think I've been slacking off too badly...

    Attached is the most recent version of the header wizard. It's come a long way but there is still far to go...

    Changes and additions to Build 3:
    • -Now requires accurate location of PBP folder. This is used when populating the "Select PIC" combo box. The include file must exist in both the MPASM and PBP folders to be added. This prevents the application from attempting to parse files for microcontrollers that are not supported by PBP.
    • When selecting PIC, tabs are updated to show or hide PORT, ADC, Comparator, and USART tabs depending on whether or not they exist for that device.
    • In General tab, added DEFINE for oscillator speed.
    • In General tab, added DEFINE for using bootloader.
    • In General tab, added DEFINE for enabling PORTB pullups.
    • In Port tab, straightened out reversing of TRIS and PORT bits.
    • In Port tab, added handling so that PORT and TRIS will be output in a single line each if possible. Unused (i.e. non-existant) bits are set as zero.
    • In ADC tab, added checkbox to set all potential ADC ports to digital.
    • In ADC tab, added checkbox to configure internal ADC. At this point ONLY the standard PBP DEFINES are included.
    • In Comparator tab, added checkbox to set all potential comparator ports to digital.

    Comments, bug reports, suggestions always appreciated...

    Best Regards,
    Paul
    Attached Files Attached Files

Members who have read this thread : 1

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