slime@2: ;****************************************************************************** slime@2: ; Files required: P18F2550.INC * slime@2: ;****************************************************************************** slime@2: slime@2: LIST P=18F2550 ;directive to define processor and file format slime@2: #include ;processor specific variable definitions slime@2: slime@2: slime@2: ;define YOUR Device ID here ! slime@2: __IDLOCS _IDLOC0, 0 slime@2: __IDLOCS _IDLOC1, 1 slime@2: __IDLOCS _IDLOC2, 2 slime@2: __IDLOCS _IDLOC3, 3 slime@2: __IDLOCS _IDLOC4, 4 slime@2: __IDLOCS _IDLOC5, 5 slime@2: __IDLOCS _IDLOC6, 6 slime@2: __IDLOCS _IDLOC7, 7 slime@2: slime@2: ;****************************************************************************** slime@2: ;Configuration bits slime@2: ; The __CONFIG directive defines configuration data within the .ASM file. slime@2: ; The labels following the directive are defined in the P18F2550.INC file. slime@2: ; The PIC18F Data Sheet explains the functions of the configuration bits. slime@2: ; Change the following lines to suit your application. slime@2: slime@2: ;this does not work for me :( slime@2: ; __CONFIG _CONFIG1L, _PLLDIV_5_1L & _CPUDIV_1_1L & _USBDIV_2_1L slime@2: ; __CONFIG _CONFIG1H, _IESO_OFF_1H & _FCMEM_OFF_1H & _FOSC_HSPLL_HS_1H slime@2: ; __CONFIG _CONFIG2L, _BOR_ON_2L & _PWRT_ON_2L & _BORV_45_2L & _VREGEN_ON_2L slime@2: ; __CONFIG _CONFIG2H, _WDT_OFF_2H & _WDTPS_128_2H slime@2: ; __CONFIG _CONFIG3H, _MCLRE_ON_3H & _PBADEN_OFF_3H slime@2: ; __CONFIG _CONFIG4L, _DEBUG_OFF_4L & _LVP_OFF_4L & _STVREN_ON_4L & _ICPRT_OFF_4L slime@2: ; __CONFIG _CONFIG5L, _CP0_ON_5L & _CP1_ON_5L & _CP2_ON_5L & _CP3_ON_5L slime@2: ; __CONFIG _CONFIG5H, _CPB_OFF_5H & _CPD_OFF_5H slime@2: ; __CONFIG _CONFIG6L, _WRT0_OFF_6L & _WRT1_OFF_6L & _WRT2_OFF_6L & _WRT3_OFF_6L slime@2: ; __CONFIG _CONFIG6H, _WRTC_OFF_6H & _WRTB_OFF_6H & _WRTD_OFF_6H slime@2: ; __CONFIG _CONFIG7L, _EBTR0_OFF_7L & _EBTR1_OFF_7L & _EBTR2_OFF_7L & _EBTR3_OFF_7L slime@2: ; __CONFIG _CONFIG7H, _EBTRB_OFF_7H slime@2: slime@2: ;Values taken from original picdemfsusb.hex file because my configuration above did not work slime@2: ; slime@2: ;Werte aus der Original picdemfsusb.hex Datei weil meine Konfiguration oben nicht klappte slime@2: ; slime@2: ;:020000040030CA slime@2: ;:0E000000240E3F1E008181000FC00FA00F4094 slime@2: slime@2: __CONFIG _CONFIG1L, H'24' slime@2: __CONFIG _CONFIG1H, H'0E' slime@2: __CONFIG _CONFIG2L, H'3F' slime@2: __CONFIG _CONFIG2H, H'1E' slime@2: ; __CONFIG _CONFIG3L, H'00' ;Error Message from mpasm slime@2: __CONFIG _CONFIG3H, H'81' slime@2: __CONFIG _CONFIG4L, H'81' slime@2: ; __CONFIG _CONFIG4H, H'00' ;Error Message from mpasm slime@2: __CONFIG _CONFIG5L, H'0F' slime@2: __CONFIG _CONFIG5H, H'C0' slime@2: __CONFIG _CONFIG6L, H'0F' slime@2: __CONFIG _CONFIG6H, H'A0' slime@2: __CONFIG _CONFIG7L, H'0F' slime@2: __CONFIG _CONFIG7H, H'40' slime@2: slime@2: ;!! Configuration Word ans ENDE deiner ASM-Datei setzen !! slime@2: ;Sonst landet es nicht im HEX-File slime@2: slime@2: ;EEPROM Daten slime@2: ; ORG 0xF00000 slime@2: ; DB "Holgi was here",0,1,2,3,4,5,6,7,8,9 slime@2: END