Create BAS and INC files to add support for new PICs?


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429

    Default Create BAS and INC files to add support for new PICs?

    Hi, I have PBP 2.60A and I need support for 16F1828 PICs.

    I have the latest MPASM which has support for the 16F1828, but PBP is missing the INC and BAS files for it.

    Could someone give advice on how to go about creating a PBP INC and BAS file for that chip?

    *edit*

    This is what I have so far. Ive looked up some info from the data sheet, but the main thing i'm not sure about is PORTL, PORTH, TRISL and TRISH. How do I know which ports they should be set to? From looking at examples, most seem to be PORTL=PORTB, PORTH=PORTA or PORTL=PORTB, PORTH=PORTC.

    Code:
    BANK0   $0020, $007F     ; Got these values fron the data sheet
    BANK1   $00A0, $00EF
    BANK2   $0120, $016F
    BANK3   $01A0, $01EF
    BANK4   $0220, $026F
    BANK5   $02A0, $02EF
    BANK6   $0320, $032F
    EEPROM  $F000, $F0FF
    LIBRARY "PBPPI14E"
    DEFINE  CODE_SIZE 4   
    
            include "PI14EEXT.BAS"
    
    PORTL   VAR     PORTB    ; Not sure if these are right
    PORTH   VAR     PORTA
    TRISL   VAR     TRISB
    TRISH   VAR     TRISA
    
            include "PBPPI14E.RAM"
    Last edited by Kamikaze47; - 13th November 2010 at 15:26.
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Hi Kamikaze,

    Many new chips will be included in the next patch 2.60b (no release date set).

    In the mean time, I've attached the files for the 16F1828.

    HTH,
    DT

  3. #3
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    Thanks very much DT.
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

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