Equates are used to relate the hardware to software ..
In the example below every reference to the option register , which in this example is Equated to Hex 81 ,which is actually the location of the option register in the F88 ..
you
could use the Hex Address of the option register ,when refering to the option register ,instead of the name , but it is much clearer when reading the program , to use an equate
as in
Code:
OPTION_REG EQU H'0081'
TRISA EQU H'0085'
TRISB EQU H'0086'
PIE1 EQU H'008C'
PCON EQU H'008E'
PR2 EQU H'0092'
TXSTA EQU H'0098'
SPBRG EQU H'0099'
EEDATA EQU H'009A'
ANSEL EQU H'009B'
CMCON EQU H'009C'
EECON2 EQU H'009D'
ADRESL EQU H'009E'
ADCON1 EQU H'009F'