PSDL Oral Questions
PSDL Oral Questions
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?