PDA

View Full Version : Create BAS and INC files to add support for new PICs?



Kamikaze47
- 13th November 2010, 14:46
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.


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"

Darrel Taylor
- 13th November 2010, 16:55
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,

Kamikaze47
- 13th November 2010, 17:01
Thanks very much DT.