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