Microcontroller and Interfaces Programming (CSCT6102)
Computer Science - COS
Semester: First Semester
Level: 500
Year: 2014
1
HTTTC Bambili Computer Science Department
Continuous Assessment
COURSE: Microcontroller programming
Level 400 (FCS)
2014-2015 academic year
Exercise 1: This is a PIC 16F84 microcontroller
a) Give the size (number of bits) of PORTA and PORTB
b) Give the role of those ports
c) Give the role of
DD
V
,
SS
V
and their values
d) Give the meaning of âFâ in 16F84
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 2 Red 3
Sequence 5 Red 1 Red 2 Green 3
Sequence 6 Red 1 Red 2 Yellow 3 Yellow 12 blinks
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 MPLAB environment, build and flash it into the PIC18F452. As the program
is running in ISIS, call the Teacher.
www.schoolfaqs.net
2
www.schoolfaqs.net