Sunday, 24 March 2013

Week 7 and 8 - Study C Language and Flow chart

Welcome to Week 7 and 8 here.......

For the week 7 and 8, Supervisor teach how to install the MicroC Pro software. After that, explain how to use the software and the coding. 

Step of writing and Compile

  1. Click file then that can test program in Disk C choose the program.
  2. When want to save the program must have to .c
  3. Copy the program then go to project and then select project and choose open project. After this, choose program what you want then just open it.

For the Program part :



int, counter, shift, load;
bit oldstate; (mean only 1)
void main(); (mean open the hardware first)

Void Bilang()
{   counter=0;
     counter=counter+1;
}
------------------------------------------------------------------------------------------------------------

for(x=0; x<10; x+1) ------> ( mean repeat the program <10 time then start by zero)
{
}
if ( x==10 )--------> ( if x=10 the meaning is select 10 then the program will going down).
{
}

------------------------------------------------------------------------------------------------------------

Vold main()
{  TRISA=0; // Port A is output.
    TRISB=1; // Port B is input.
}
do---------------------------> ( mean of do is repeat program )
{  Bilang();--------------> ( meaning is if you want to call the program just put in there )
}
while(1);--------------> ( mean is repeat the program non-stop )

------------------------------------------------------------------------------------------------------------

After that, for the week 8 , Show the flow chat to supervisor, and discuss with supervisor the flow chart which part need to change or mistake.


Flow Chart
Operation for the Flow Chart, the first is student scan RFID reader using card, the LCD will display the subject then student will select the subject, and then the system will make conformation user if have error the program will going back to start. After that, is yes the LCD will display student picture, Id no and full name and the following the LCD will display attendance percent to let student check it. Lastly, the 7 segment counter will be count how many student to enter the class, then open will be open. The process is finish.









  

No comments:

Post a Comment