0% found this document useful (0 votes)
94 views4 pages

PSDL Oral Questions

The document contains questions related to programming concepts for a PIC microcontroller. It includes common questions grouped under different assignments related to topics like interfacing LEDs, LCDs, timers, interrupts, serial communication and DC motors. The questions test understanding of microcontroller programming fundamentals and peripheral interfacing.

Uploaded by

saadfaroky85
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
94 views4 pages

PSDL Oral Questions

The document contains questions related to programming concepts for a PIC microcontroller. It includes common questions grouped under different assignments related to topics like interfacing LEDs, LCDs, timers, interrupts, serial communication and DC motors. The questions test understanding of microcontroller programming fundamentals and peripheral interfacing.

Uploaded by

saadfaroky85
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

DEPARTMENT OF INFORMATION TECHNOLOGY

Class : S.E.I.T Semester - II Year : 2020-21

Subject :- Programming Skill Development Laboratory

ORAL QUESTION BANK

Common questions to all Group A assignments

1. Explain procedure to create new project in MPLAB software.


2. What is name of the complier used in MPLAB software?
3. Explain the logic of array addition.
4. What is the significance of header file ‘pic18f4550.h’?
5. What is full form of PIC? What are sizes of data memory and program memory of
PIC18F458?
6. List ports of 40 pin PIC18F. What are their sizes?
7. List different SFRs associated with a port.
8. What value must be loaded in TRISx register to configure it as i) input port and ii) output
port?
9. Upon power on what is the status of a microcontroller port? Why?
10. Explain the logic exchange of blocks in memory.
11. Which sorting technique is used in the program? Explain logic of sorting.
12. Explain logic of multiplication operation.
13. Explain logic of division operation.
14. Explain procedure to create new project in Proteus software.
15. Explain steps for executing program in MPLAB software.

Common questions to all Group B assignments

1. Differentiate between polling and interrupts.


2. List different sources of interrupts in PIC18.
3. Explain steps in executing an interrupt?
4. What is IVT? What is reset, high priority interrupt and low priority interrupt vectors?
5. Explain significance of 3 bits associated with an interrupt.
6. What are GIE and PEIE bits? Where they are located?
7. What is IPEN bit? Where it is located?
8. How to assign high/low priority to an interrupt?
9. List various SFRs used in interrupt control operation.
10. What is #pragma directive?
11. What is the relation between oscillator frequency and timer’s clock frequency?
12. List SFRs available with timer0.
13. What is the difference between timer and counter?
14. What is rollover? What is status of IF before and after rollover?
15. Explain important bits in T0CON register.
16. Why it is necessary to clear IF in ISR?

LED Interfacing:
1. To interface a LED, how many pins are required?
2. Port pin used fir LED interfacing need to be configured as input or output and how?
3. What is necessity of series resistor in LED interfacing?
4. How to calculate LED series resistor value?
5. How to switch ON or OFF LED connected to any pin of PIC microcontroller?
6. What are different ways to generate delay between LED switch ON & OFF?
7. How to adjust time delay generated with timer?
8. How to adjust delay generated with the help of software loop?
LCD Interfacing:
1. What is LCD? Explain significance of EN, RS, RW pins of LCD.
2. How LCD can be enabled?
3. How to select reading or writing operation with LCD?
4. How to select either data register or command register of LCD?
5. How many minimum port pins are required for LCD interfacing to display data on LCD?
6. What are steps in LCD initializing?
7. How to set cursor at leftmost position on first line of LCD display?
8. How to set cursor at leftmost position on second line of LCD display?

Timer Interfacing:
1. Of the interrupt and polling methods, which one avoids tying down the PIC uC?
2. What address in the interrupt vector table (IVT) is assigned to high-priority interrupts?
3. What address in the interrupt vector table is assigned to low-priority interrupts?
4. Upon power on reset of the PIC18, what memory area is assigned to IVT?
5. Which is the last instruction of ISR?
6. In PIC uC, Timers are internal or external peripheral sources of interrupts?
7. Which is the first instruction we use to redirect the PIC uC away from the interrupt vector
table?
8. Which bit of INTCON (interrupt control) register is responsible for enabling and
disabling the interrupts globally?
9. For what purpose C18 compiler uses “#pragma code”?
10. At the end of ISR, C18 compiler places which instruction automatically due to interrupt
keyword?
11. Using which register we can enable the Timer0 interrupt?
12. What is the size of Timer0 registers?
13. What is the size of T0CON register?
14. How many timers are present in PIC18F uC?
15. In PIC18F uC can we operate Timer0/ counters0 in 8-bit and 16-bit mode?
16. Which register determine the timer0 operations modes?
17. What is the range of timer0 outputs in 16-bit mode?
18. What is the range of timer0 outputs in 8-bit mode?
19. Which condition indicates that timer0 has overflowed?
20. What is the relation between crystal oscillator frequency and timer frequency?
21. What is the significance of prescaling factors of timer0?
22. In PIC18F uC, counters count in up, down or up-down directions?
External Interrupt Programming:
1. In PIC uC which external hardware interrupts are present?
2. On default, all three hardware interrupts in PIC uC are directed to which location of IVT?
3. What is the size of INTCON3 register?
4. In PIC18 uC upon power-on reset, the external hardware interrupts are as positive or
negative edge-triggered interrupts?
5. Using which bit of INTCON2 register we can make the external hardware interrupts as
negative edge-triggered interrupts?
6. Using which register we can enable the external interrupt INT1?

DC Motor Interfacing:
1. What is the size of CCP1CON register?
2. What is the size of capture register CCPR1?
3. What is longform of CCP?
4. In which mode PIC uC need to be operated to create pulses with variable widths?
5. To generate PWM signal, CCP1 pin must be configured as input or output?
6. In PIC uC which timer is used for PWM mode?
7. In PIC uC which register is used to choose the PWM mode?
8. In standard CCP1 which register is used to set the period of PWM signal?
9. In standard CCP1 which register is used to set the duty cycle of PWM signal?
10. What is the relation between PR2, CCPR1L registers and duty cycle of PWM signal?
11. What will be the duty cycle of PWM signal if, PR2 =10010 & CCPR1L = 2510?
12. Which bits of CCP1CON register decides the decimal fraction of duty cycle?
13. What is the value for DCB2:DCB1 bits if we want 0.25 for the decimal points parts of the
duty cycle?
14. What is the value for DCB2:DCB1 bits if we want 0.50 for the decimal points parts of the
duty cycle?
15. What is the value for DCB2:DCB1 bits if we want 0.75 for the decimal points parts of the
duty cycle?
16. How do we change a DC motor’s rotation direction?
17. What is the effect of increase in duty cycle of PWM signal on the speed of DC motor?
Serial Communication:
1. Which pins of PIC18 are set aside for serial communication?
2. Which mode is used to connect the PIC18 uC based system to the PC serial port for the
purpose of full-duplex serial communication?
3. In PIC uC which six registers are associated with the UART?
4. The PIC18's UART circuitry divides the crystal oscillator frequency by what factor
before it is used by an internal timer to set the baud rate?
5. Which register of PIC18 uC is used to set the baud rate of UART?
6. Which timer of the PIC18 is used for baud rate generation?
7. In UART to transmit a byte of data serially, it must be placed in which register?
8. In UART what is the size of TXREG register?
9. In UART what is the size of RCREG register?
10. In UART what is the size of Transmit Status and Control Register (TXSTA)?
11. In UART which register used to select the synchronous/asynchronous modes?
12. In UART which register used to set the data frame size?
13. In PIC uC which register holds received data after de-framing?
14. To which register does the BRGH bit belong, and what is its role?
15. In UART what is the size of Receive Status and Control Register (RCSTA)?
16. In UART which register is used to enable the serial port to receive the data, among other
things.
17. Which interrupt flags are used by UART?
18. What is the size of BAUDCON register?
19. The Rx pin must be configured as input or output for data to come into the PIC uC?
20. The Tx pin must be configured as input or output for data to go out from the PIC uC?

You might also like