We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi guys, I am using keil C51 to do the program and debugging the cypress FX2 ezusb chip. In my project options I selected Cypress FX2 as the device type. Should I add an include file in my .a51 file? Also, if I need to add one instruction at location 0043h, how do I do it? I tried CSEG 0043h, keil says syntax error. I am new to both cypress fx2 and keil.
"If you write your interrupt handler in 'C'..."
There you go: it has already been established in the other thread that he won't use 'C' - so that was a waste of time suggesting it!
Andy, it was not your time was it?
Not at all. After a while he'll succumb to the superliminal messages and convert to a life of 'C'.
If I get a bit more evangelical he might even cash in his worldly posessions and make a contribution towards the cost of my next Rolls Royce.
"a life of 'C'" would be a sad life.
No I am not in any way saying that the OP should not have 'C' in his toolchest, but a good life would be "a life of 'C' and assembler"
Erik
I tried $include "fx2regs.h" I get the file not found error. Anyone know where to add the header files. I added them to C:\Keil\C51\INC\ and also my project folder. I still get the error.
I tried $include "fx2regs.h"
That just gives a file name, doesn't it?
It doesn't give any information as to the location of that file, does it?
So the assembler will obviously have to apply some default location (or set of locations) in which to look, won't it?
And the place to find out about what that default (or set of defaults) is will, obviously, be the assembler's Manual...