this is the code: INCLUDE <REG52.h> BACK:MOV A,#55H MOV P1,A ACALL DELAY MOV A,#AAH MOV P1,A ACALL DELAY SJMP BACK
DELAY: MOV R0,#11 H1:MOV R1,#248 H2:MOV R3,#255 H3:DJNZ R3,H3 DJNZ R1,H2 DJNZ R0,H1 RET END this is the error messages: Build target 'Target 1' assembling TEST2.A51... TEST2.A51(1): error A9: SYNTAX ERROR TEST2.A51(5): error A45: UNDEFINED SYMBOL (PASS-2) Target not created
you forgot to: 1. use your previous thread 2. use the proper tags used to post source code (pre and /pre)
you must be trying this
$include
yes. i be thinking you must try it.
after $include directive,is it the device name that will follow?
i didnt understand the concept initially that was why i didnt use myprevious thread.but now i understand
plz you must be learning to find and read teh manwells.
http://www.keil.com/support/man/docs/a51/a51_include.htm
i used $INCLUDE <reg52.h> and the error was that the file reg52.h does not exit.
So have you checked if it does exist?
If it does not exist, then you will obviously get an error from anything that tries to use it, won't you?!
If it does exist, you also need to ensure that it is in the correct location for the tools to be able to find it.
Again, you need to read the Manual to know what rules the tools use for finding include files...