Pages

Wednesday, February 4, 2009

Random Thought: Flow chart! Write it down!

I have been conducting microcontroller lab for a while as a lab instructor.
Microcontroller consists of both Hardware and Software. A microcontroller application need to read to read data from input , process it and make decision, then send data to the output based on the decision. Seems easy right? This is not what I want to write this time.

In a lab usually students are given a manual where in the manual the first part, the program is given and in the last part, student need to write their own program for certain application.

Believe it or not! Most of them "drawing flowchart in their mind" and getting confused of the program flow. Most of the time is wasted here, some takes about one hour for a program with simple if-else structure. Sometimes I wonder, Is it that hard to hold a pen and sketch it down? Or is it because they have full confidence of their capabilities. At the end what they do is asking the lab instructor to help trouble shooting the code! Some of them (not all - just a few) blaming the computers/compiler or even the microcontroller for not working.

I don't know about others, but me myself, without sketching and flowcharting, I will get lost in the flow, my minds keep being creative to do this and that, and its getting tired easily. I need a flowchart or diagram! if during that time I am tired of looking at the flowchart, I'll write the "story line", I dont want to get lost!

If the path is straight there is no need to go left or to go right, just go forward!

Enough for today, I want to start writing TCL program based on the diagram and result of discussion with taufiq last night.

Wish me luck and success!

8 comments:

Thumbone Arts said...

eheheh mcm sound aku je tu bunyinye hahaha...sir ape cite pasal RA tu???ade ruang x???klau ade mcm best ...nk buat 4 intern...

Mohd.Taufiq said...

you are welcome but need to see Sir Suhaimi 1'st

Mohd.Taufiq said...

I think that to make flow chart is very simple but to change it become formula is quite hard. Then from formula then we change again into script then is the worse. But after we manage to get what we desire program then that we call money cant buy....

Thumbone Arts said...
This comment has been removed by the author.
Thumbone Arts said...

ooooo...ok3...coz rite now doing intern at company a lot of them are offering office jobs(and rite now a lot of EE student doing intern at TNB...which is kinda redundant for an EE student)...which are also not that cool...coz getting into RnD department and getting into a good company i guess its not that easy...hmm anyways yup its true need to follow the flowchart...but the prob is that...we dont have any basic microC...totally lost i think for all of us i guess, or is it only me???...n if talking about C then a lot of us has a little something...and if its microP we have the idea a little bit but...just to do a delay will take about 10lines...coz i dont like to use subroutine ehehehe...well...ill try to look around for "microC for dummies"...if that thing exists la kan...

zulprog@gmail.com said...

dear tambun, the post is not specific to one person ^_^, in specific semesters. It is quite common anywhere. If do not "communicate" in "flowchart language", Of course we will have problem translating flowchart into programming language. To make it worst, the programming language itself is not understood. How can we translate a "flowchart language" into a language that we do not understand?

Thumbone Arts said...

true3...
i understand pretty much on the flowchart part...
coz its common to c them in C programming long2 time ago...
but rite now...the lack of knowledge in microC programming is whats holding me back...its is almost the same as C but not the same also...
so it would be nice if there are a course under microC...coz...
i think taking microP and doing microC lab wont help us in the lab...a little yes maybe but not that much...because the lab that we did on tuesday...ive understand what the Q wants...but...i just cant take the data like in C which uses scanf n such...and it all became clear when u introduced (usart_data_ready)==0 and the thing must be under while loop...well anyways...ill look around for "microC for dummies",ive learnt C also from "C for dummies" haha

zulprog@gmail.com said...

ohh... actually mikroC is quite friendly. It is a C compiler specific for PIC. There are other compilers as well. Of course using MikroC and using C language is same in the syntax/style but the command is different. However mikroC have a very good Help documentation. Please have a look. It will be very useful.