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.
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.
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.