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,I want to test out my buzzer/sounder on the mcb2300 but do not know how to do so in uvision.I can not seem to find any sample programs either.
Does anyone have any advice??
Chris; This is a good forum for beginners in microcontroller programming with the Keil Toolset. You have been given a number of good sources to begin.
But it's been pointed out that you are "beginning" in several different areas. First the C language is common to many areas of development and the answers for one area do not fit all areas. To learn to program in C is more difficult in the embedded area. We have suggested that you consider the PC as a better framework for learning the C language. Microsoft offers a set of C/C++ tools for free download. They come with good tutorials. The Visual Studio Express C++ can be used as a good C compiler.
Second are the tools. Learning a new set of tools present a different set of problems. The "Complete User's Guide" will guide you through the Keil Toolset with examples but give you very little help on the C language.
Third is the actual device that you have chosen as a target device. You ask how to set a bit and clear a bit to make an LED to blink. You are directed to an example for the MCB2300 board. We need to add the Data Sheet as the next reference you will need. Programming microcontrollers DEMAND that you carefully read and study the data sheet for the target device. There are so many different devices and device types that have different method of controlling the embedded peripherals that even very experienced programmers have problems when they encounter a new device type.
There are other websites for more detailed information but each website will be directed to a limited type of information.
For example, http://www.8052.com is an excellent website for information and tutorials on the 8051 type devices.
The vendor website of SiLabs at http://www.sillabs.com has a great deal of information and examples on their devices.
The UK company HiTex has an excellect website for ARM information. They have several manuals for the MCB2300 type devices in PDF format for download or you can purchase their manuals in hard copy. Check at http://www.hitex.co.uk/arm for "The Insider's Guide to the Philips ARM7-Based Microcontrollers" by Trevor Martin.
But having said all that, you are right, this website is more directed to problems of the Keil Toolset.
Just a couple of notes how better to get your questions answered. 1. Direct you question to a specific problem. 2. Note what you have tried, the results and how you attempted to debug the problem. 3. Where possible, show code snippets and any error messages that you encounter. Try to cut and paste rather than re-type. A single typing error can mis-direct your problem. And always excuse my typing errors! 4. Note the "pre" and "post" tags to format your code snippets so others can read your code. They are outlined at the top of this page. You will be suprised how often someone will post code that is totally un-readable. No one will waste their time attempting to read such garbled code. Good luck in your learning experiences. Bradford
Thanks
Unfortunately doing electronic engineering has only really introduced me to programming.I have a basics in it but its taking this basics to a suitable level for programming microcontrollers which I do find difficult.My project has a time constraint and unfortunately I do not have time to delve into a large number of c texts.I have done so before but still found it difficult to fully grasp,I guess its just practice and some have the knack and some don't.I will continue to practice,i chose this project as it is my weak point area and I wanted to learn something new,despite what some of you may think from impressions I do work rather hard on this programming.
If i ask any questions in the future which may seem ignorant or amateur like please do excuse me.
and that time constraint has been set such that a student keeping up with the course should be able to meet it.
If you feel that you're going to have difficulty meeting it, then you need to discuss that with your tutor(s)/supervisor(s) now!
Andy
I would appreciate if you no longer replied to my comments.Perhaps you have too much time on your hands,I do not need your opnion nor did I ask for it.I was replying to someone else's comment.
You do not know anything about the course I am undertaking nor the background to this project therefore keep such comments to your damn self.
Chris,
Here is a nice FAQ page which answers a lot of questions related to C:
http://c-faq.com/index.html
It is not a classic introduction, but reading through it with some knowledge can be eye opening, I think. Good luck.