Martin. I use the EQU for assigned a memory location for a variable. and CONSTANT for use a label otherwaise a number. Francisco Martin SchŠfer wrote: > > Somebody out there who can explain me the difference between CONSTANT and > EQU? After assembling, the two both become constants in the Cross reference > file. The same question could be asked about the difference between VARIABLE > and SET. The Users guide says only: > > EQU - an Assembler Constant > > CONSTANT - Symbol Constant > > What I want to do is to define a constant for a reload value of timer 1, > dependent on the frequency and perhaps some other parameters. > > constant TMR1H_SUB = D'1000' * Frequency / D'4000000' / 256 > > TMR1H_SUB equ D'1000' * Frequency / D'4000000' / 256 > > or something like this. This constant will then be used like > > movlw TMR1H_SUB > subwf TMR1H,F > > Thanks for helping > > martin > > ;********************************************** > ;** name: Martin Schaefer ** > ;** company: elektronik 21 GmbH, Germany ** > ;** e-mail: schaefer@elektronik21.de ** > ;**********************************************