firmware/config.asm
author root@rika
Thu, 23 Apr 2009 20:55:41 +0200
changeset 33 7a0c4b0354ba
parent 2 2f55e5dd591d
permissions -rw-r--r--
updated documentation
     1 ;******************************************************************************
     2 ;    Files required:         P18F2550.INC                                     *
     3 ;******************************************************************************
     4 
     5 	LIST P=18F2550	;directive to define processor and file format
     6 	#include <P18F2550.INC>	;processor specific variable definitions
     7 
     8 	
     9 ;define YOUR Device ID here !
    10 	__IDLOCS	_IDLOC0,		0
    11 	__IDLOCS	_IDLOC1,		1
    12 	__IDLOCS	_IDLOC2,		2
    13 	__IDLOCS	_IDLOC3,		3
    14 	__IDLOCS	_IDLOC4,		4
    15 	__IDLOCS	_IDLOC5,		5
    16 	__IDLOCS	_IDLOC6,		6
    17 	__IDLOCS	_IDLOC7,		7
    18 	
    19 ;******************************************************************************
    20 ;Configuration bits
    21 ; The __CONFIG directive defines configuration data within the .ASM file.
    22 ; The labels following the directive are defined in the P18F2550.INC file.
    23 ; The PIC18F Data Sheet explains the functions of the configuration bits.
    24 ; Change the following lines to suit your application.
    25 
    26 ;this does not work for me :(
    27 ;	__CONFIG    _CONFIG1L, _PLLDIV_5_1L & _CPUDIV_1_1L & _USBDIV_2_1L
    28 ;	__CONFIG    _CONFIG1H, _IESO_OFF_1H & _FCMEM_OFF_1H & _FOSC_HSPLL_HS_1H
    29 ;	__CONFIG    _CONFIG2L, _BOR_ON_2L & _PWRT_ON_2L & _BORV_45_2L & _VREGEN_ON_2L
    30 ;	__CONFIG    _CONFIG2H, _WDT_OFF_2H & _WDTPS_128_2H
    31 ;	__CONFIG    _CONFIG3H, _MCLRE_ON_3H & _PBADEN_OFF_3H
    32 ;	__CONFIG    _CONFIG4L, _DEBUG_OFF_4L & _LVP_OFF_4L & _STVREN_ON_4L & _ICPRT_OFF_4L
    33 ;	__CONFIG    _CONFIG5L, _CP0_ON_5L & _CP1_ON_5L & _CP2_ON_5L & _CP3_ON_5L
    34 ;	__CONFIG    _CONFIG5H, _CPB_OFF_5H & _CPD_OFF_5H
    35 ;	__CONFIG    _CONFIG6L, _WRT0_OFF_6L & _WRT1_OFF_6L & _WRT2_OFF_6L & _WRT3_OFF_6L
    36 ;	__CONFIG    _CONFIG6H, _WRTC_OFF_6H & _WRTB_OFF_6H & _WRTD_OFF_6H
    37 ;	__CONFIG    _CONFIG7L, _EBTR0_OFF_7L & _EBTR1_OFF_7L & _EBTR2_OFF_7L & _EBTR3_OFF_7L
    38 ;	__CONFIG    _CONFIG7H, _EBTRB_OFF_7H
    39 
    40 ;Values taken from original picdemfsusb.hex file because my configuration above did not work
    41 ;
    42 ;Werte aus der Original picdemfsusb.hex Datei weil meine Konfiguration oben nicht klappte
    43 ;
    44 ;:020000040030CA
    45 ;:0E000000240E3F1E008181000FC00FA00F4094
    46 
    47 	__CONFIG    _CONFIG1L, H'24'
    48 	__CONFIG    _CONFIG1H, H'0E'
    49 	__CONFIG    _CONFIG2L, H'3F'
    50 	__CONFIG    _CONFIG2H, H'1E'
    51 ;	__CONFIG    _CONFIG3L, H'00' ;Error Message from mpasm
    52 	__CONFIG    _CONFIG3H, H'81'
    53 	__CONFIG    _CONFIG4L, H'81'
    54 ;	__CONFIG    _CONFIG4H, H'00' ;Error Message from mpasm
    55 	__CONFIG    _CONFIG5L, H'0F'
    56 	__CONFIG    _CONFIG5H, H'C0'
    57 	__CONFIG    _CONFIG6L, H'0F'
    58 	__CONFIG    _CONFIG6H, H'A0'
    59 	__CONFIG    _CONFIG7L, H'0F'
    60 	__CONFIG    _CONFIG7H, H'40'
    61 
    62 ;!! Configuration Word ans ENDE deiner ASM-Datei setzen !!
    63 ;Sonst landet es nicht im HEX-File
    64 	
    65 ;EEPROM Daten
    66 ;	ORG	0xF00000
    67 ;	DB	"Holgi was here",0,1,2,3,4,5,6,7,8,9	
    68  		END