if you have label inside macro. and you are calling that macro more then once then keil will raise multipal label problem.
you have to declare label inside the macro as a local.
Example :
TEST_SPIBUSY  macro    
local spi01
    push acc
spi01:
    mov a,SPI0CFG
    anl a,#80
    jb acc.7, spi01        
    clr SPIF
    pop acc
endm
No comments:
Post a Comment