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 all iam working on cygnal mcus,iam converting my c programme into asm by using src directive, presently iam using evaluation version of cygnal shipped with 4kbprogramme memory keil version . iam compiling the c programme using #pragma src iam once again compiling .src file errors=0 but iam not getting results ie iam performing uart communication ,when i compiled src file iam not able to display menu,on the pc ,whats this problem ???? regards john e
Does the rest of your Project build complete? ie, do you get a Linked executable? Does it download OK to the target? If this is all OK, you need to Debug your code. You will find this much easier if you do not do the 'C'-to-assembler conversion. Why do you want to do that anyway? Are you sure that your hardware is all working, and the connection to your PC, and the configuration of your PC? Have you tried the "Blinky" example to verify that you can do something really simple like just flash a LED on your target? Have you tried a simple "Hello, World" example, to verify that you can do basic serial IO? Have you tried running your code in the Simulator, to remove all of these target hardware questions? Have you followed the Standard advice for getting started with the 8051 and/or the Keil tools: First, you need to read the uVision Getting Started guide, and work through the example projects in it. You need to read the following documents - commonly referred to as "the bible" for the 8051: http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_ARCH_1.pdf http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_PROG_GUIDE_1.pdf http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_HARDWARE_1.pdf Are you also a newbie to 'C' programming in general? If so, you'll also need a good 'C' textbook. Here are some other introductory & reference materials: http://www.keil.com/books/8051books.asp http://www.8052.com/books.phtml http://www.8052.com/tutorial.phtml You will need to read the Data Sheet for your particular processor, and the Manual(s) for any development boards, etc. You will need to read the Manuals for the C51 Compiler, A51 Assembler, etc, etc,...