Microcontroller Systems and Arduino Programming (CSCT4113)

Computer Science - COS

Semester: First Semester

Level: 400

Year: 2015

1
OSC1/CLKIN
16
RB0/INT
6
RB1
7
RB2
8
RB3
9
RB4
10
RB5
11
RB6
12
RB7
13
RA0
17
RA1
18
RA2
1
RA3
2
RA4/T0CKI
3
OSC2/CLKOUT
15
MCLR
4
U1
PIC16F84A
UP
R1
10k
DOWN
R2
10k
RESET
R3
10k
LS1
SOUNDER
ACADEMIC YEAR 2014-2015 Semester 1 Level 300
Lecturer: SP TCHASSO
CSC313: Microcontrollers, applications and assembler programming Time: 2hrs
Exercise 1:
1- Compare a microprocessor and a microcontroller
2- Name and explain the role of basic materials or tools needed to really implement a microcontroller
system
3- Name 02 families of microcontrollers
4- Name 04 applications of microcontrollers
5- Name 03 compilers used in programming microcontrollers
6- Name 03 internal modules of the PIC16F84A and give their role
7- Give the structure of a program written in MikroC for PIC
8- Indentify the following microcontrollers: PIC16F877-20; PIC12C575; PIC18F2550
9- What is the difference between the PIC16F84A and the PIC16F84 can support?
Exercise 2: Study and execution of a project
Consider the diagram of the figure below.
1- What are the physical elements lacking in the diagram to make the diagram function practically?
Redraw the diagram while adding those elements
2- Write a program in MikroC that will function as follows:
When we put ON the system, it displays ‘0’
When we press on ‘UP’, the old value is increased and displayed again
When we press on ‘DOWN, the old value is decreased and displayed again
When we press on ‘RESET, it displays ‘0’
REPUBLIC OF CAMEROON
Peace Work Fatherland
THE UNIVERSITY OF BAMENDA
HIGHER TECHNICAL TEACHER TRAINING COLLEGE
DEPARTMENTS OF COMPUTER SCIENCE
REPUBLIQUE DU CAMEROUN
Paix-Travail-Patrie
UNIVERSITE DE BAMENDA
ECOLE NORMALE SUPERIEURE
D’ENSEIGNEMENT TECHNIQUE
Département d’Informatique
www.schoolfaqs.net