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.
i am using keil uvision 2. plss tell me why we use printf in embedded c? if its 4 debugging,HOW? if its 4 serial commn/transmit characters to serial port,HOW? plsssssssssssssss some1 help.........i searched everywere but i dint get answer..
We use it because we (or in this case you) have decided that it is better to use printf() than to use any other method for solving something.
Different embedded projects has different needs. So what functions to use (or not use) is something you decide for each and every project. And also, what your needs are for debugging. Or if the device even have any interface that may receive the data from printf().
So when giving the answer to the school assignment, you will yourself have to come up with advantages and disadvantages with printf() - and examples where it is good to use printf() and examples where it should be avoided.