Tutorial 1 Questions
Tutorial 1 Questions
Tutorial 1 Questions
4. Other than PIC (microcontroller brand name), what are other example of microcontrollers
available in the market?
6. List down the available modules which can be found in the microcontroller.
14. Give THREE (3) examples of interrupt sources that can be detected by PIC16F877A
microcontroller.
Page 1 of 5
15. If the value of register INTCON = 0xB0, determine which interrupt sources has been
enabled.
16. Why we need to clear the interrupt flag at the end of interrupt subroutine
17. By using internal crystal as clock, suppose we want to create a delay of 0.5 second in
our program using Timer 0. What is the value of count?
18. By using external clock source (oscillator), what is the output frequency (Fout), when
the external oscillator is 100 kHz and count=8?
20. For an 8-bit ADC, and VREF = 2.56 V. Calculate the D0– D7 output if analog input is
1.7V.
21. PIC16F877A analog digital converter (ADC) module has four register which is
ADRESH, ADRESL, ADCON0 and ADCON1. The value of register ADCON0 and
ADCON1 as shown below.
a. The resolution in 10-bit ADC and what does 1 bit in 10-bit ADC mean?
d. Find the new value of ADCON0 and ADCON1 register for the following option; 6
channel analog input, Vref+ and Vref- equal to VDD and VSS, clock conversion is
FOSC/32, A/D result is left justified and A/D module is turn ON.
23. One of the uses of PWM is as a motor speed control. Based on the H-Bridge Operation
table below, draw DC motor clockwise and counter clockwise circuit.
H-Bridge operation
Page 2 of 5
24. The location from where the program proceeds with execution is called an interrupt
vector. Draw how the interrupt process occurs in the PIC16F877A.
25. Classify the advantage and disadvantage of using Harvard architecture compared to
Von Neumann architecture.
26. Identify the advantages and disadvantages of Reduced Instruction Set Computing
(RISC) technology compared to Complex Instruction Set Computing (CISC)
technology.
29. As an embedded system engineer, you have been assigned to design a smart egg
incubator temperature control system. Based on the phone call you had with the
customer, these are the initial requirements you gathered:
a. The control panel will have a soft-touch keypad for the user to enter parameters
such as incubator timer, incubator heating mode, maximum temperature, etc.
These changes will be reflected on the LCD screen.
b. The LCD displays the current date & time during its idle time.
c. The predefined modes (switching switch) will allow the user to select whether
they want to activate the heater with or without the fan.
d. When the incubator reaches the set temperature, a buzzer will emit a loud sound
to notify the user. The heater will also turn off to maintain the set temperature.
Based on the information above, construct a detailed block diagram in order to plan
your project execution. Make sure your block diagram clearly segregates the inputs on
one side and the outputs on another side. Use the proper arrows to illustrate your design
Page 3 of 5
APPENDIX 1
Page 4 of 5
Page 5 of 5