Microcontrollers and Interface Programming (CSCT6102)

Computer Science - COS

Semester: First Semester

Level: 500

Year: 2014

1
HTTTC Bambili Computer Science Department
Continuous Assessment
CSC 511: PIC MICROCONTROLLER PROJECTS
2013-2014 academic year
Exercise 1: LCD project
A text based LCD LM016L is connected to a microcontroller PIC16F877.
1. What mean PIC
2. Give the signification of F and 877
3. Complete the bloc diagram below (Appendix 1), suggested by a student.
4. Let us assume that a LCD port called dad1 is connected to PIC16F877 port RC0. The instructions
to be used are: “Sbit LCD_dad1 at RC0_bit;” and “Sbit LCD_dad1_Direction at TrisC0_bit;”.
Write an appropriate Mikro C program for the functioning of question 3 block diagram.
5. Write again the same program that can function with question 3 block diagram using BASIC in
Proton environment.
6. Complete this table explaining how to move from Mikro C program to Proton one with a LCD.
Number Proton program Mikro C program
1 Each instruction finishes with semi-colon
2 Six instruction to connect a LCD
3
4
5
6
www.schoolfaqs.net
2
Exercise 2:
Let us consider the table below representing the sequences of a junction light. Only the diodes
lighting are representing in the table.
Sequence 1 Green 1 Red 2 Red 3
Sequence 2 Yellow 1 Red 2 Red 3
Sequence 3 Red 1 Green 2 Red 3
Sequence 4 Red 1 Yellow 1 Red 3 Yellow 12 blinds
Sequence 5 Red 1 Red 2 Green 3
Sequence 6 Red 1 Red 2 Yellow 3
The junction traffic light is represented as follow:
a) Suggest an electronic circuit able to manage that project, using a PIC18F452 microcontroller.
b) Use ISIS Proteus to design that electronic circuit.
c) Write a program in an environment of your choice (Proton Basic or MiKro C), build and flash it
into the PIC18F452.
d) Simulate and call the examiner as you succeed.
Exercise 3: Suggest the block diagram of the following projects.
a) A calculator
b) Street lights control using a phone
c) Street lights control using a computer
d) Fire detector in a market with message sent to the following people: Policeman, owner of a shop
and fire emergency.
e) Patient temperature control with a database, messages sent to nurses and a doctor, LCD displaying
the value of the temperature.
www.schoolfaqs.net