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.
Jack, I am coding in assembly. I found out how to insert a jump at a particular location. I am still trying to find if include files have to be added to my .a51 file.
"Jack, I am coding in assembly"
That had already been established in the other thread, but you didn't see fit to mention it here.
Thus you waste people's time making suggestions that have already been made & rejected!
Andy, I did mention .a51 file.
Jack, I am coding in assembly.
Unless you have a very good reason to do so I'd strongly recommend 'C'!
I am still trying to find if include files have to be added to my .a51 file.
If you want to reference anything not declared in that a51 file then yes - assuming you want declarations of the SFRs (special function registers) you'll need to track down the appropriate file, either in the Keil installation directory structure or at the chip manufacturer's website.
Selecting the 8051 derivative type in the project options does little apart from populating the default memory space sizes that are passed to the linker.
There is nothing special or magic about include files; Including a file is exactly equivalent to having just typed its contents verbatim into the source file.
Therefore you never have to use an include file - but it may often be more convenient to do so...
I will move on to C eventually. For the time being my plan is to do USB HID with the cypress chip in Assembly. As soon as I finish that, I am gonna move on to C. My previous USB HID project was done with the MAX3420 and FPGA (picoblaze) in assembly.
I know there is nothing magical about include files. But they make life convenient and code looks much nicer.
So what was the question?