1) How does the pin RC2/CCP1 get configured while initializing the CCP module in the compare mode of operation? a. As an input by writing it in TRISC register b. As an output by writing it in TRISC register c. As an input without the necessity of writing or specifying it in TRISC register d. Compare mode does not support pin RC2/CCP1 configuration CCP initialization
|
||||
2) Where does the comparison level occur for 16-bit contents in the compare mode operation? a. Between CCPR1 register & TMR1 b. Between CCPR1 & CCPR2 registers c. Between CCPR2 register & TMR1 d. Between CCPR2 register & TMR0
|
||||
3) Why are the pulse width modulated outputs required in most of the applications? a. To control average value of an input variables b. To control average value of output variables c. Both a & b d. None of the above
|
||||
4) What would be the resolution value if oscillator and PWM frequencies are 16MHz and 2 MHz respectively? a. 2 b. 3 c. 4 d. 8
|
||||
5) How do the variations in an average value get affected by PWM period? a. Longer the PWM period, faster will be the variation in an average value b. Shorter the PWM period, faster will be the variation in an average value c. Shorter the PWM period, slower will be the variation in an average value d. Longer the PWM period, slower will be the variation in an average value
|
||||
6) Which among the below stated conditions are selected by the SSPCON & SSPSTAT control bits? a. Slave Select mode in slave mode b. Data input sample phase c. Clock Rate in master mode d. All of the above
|
||||
7) Which bit of SSPCON must be necessarily set so as to enable the synchronization of serial port? a. WCOL b. SSPOV c. CKP d. SSPEN
|
||||
8) What should be the value of SSPM3:SSPM0 bits so that SPI can enter the slave mode by enabling SS pin control? a. 0000 b. 0100 c. 0010 d. 0001
|
||||
9) Where does the baud rate generation occur and begins to count the bits required to get transmitted, after an execution (set) of BF flag? a. SCL line b. SDA line c. Both a & b d. None of the above
|
||||
10) How many upper bits of SSPSR are comparable to the address located in SSPADD especially after the shifting of 8 bits into SSPSR under the execution of START condition? a. 7 b. 8 c. 16 d. 32
|
||||
11) Where should the value of TX9 bit be loaded during the 9 bit transmission in an asynchronous mode? a. TXSTA b. RCSTA c. SPBRG d. All of the above
|
||||
12) What is the purpose of a special function register SPBRG in USART? a. To control the operation associated with baud rate generation b. To control an oscillator frequency c. To control or prevent the false bit transmission of 9th bit d. All of the above
|
||||
13) Why is the flag bit TXIF tested or examined in the PIR1 register after shifting all the data bits during the initialization process of USART in asynchronous mode? a. For ensuring the transmission of byte b. For ensuring the reception of byte c. For ensuring the on-chip baud rate generation d. For ensuring the 9th bit as a parity
|
||||
14) What is the status of shift clock supply in an USART synchronous mode? a. Master-internally, Slave-externally b. Master-externally, Slave-internally c. Master & Slave (both) - internally d. Master & Slave (both) - externally
|
||||
15) Which bit plays a salient role in defining the master or slave mode in TXSTA register especially in synchronous mode? a. RSRC b. CSRC c. SPEN d. SYNC
|
||||
16) Which register/s should set the SPEN bit in order to configure RC7/RX/DT pins as DT (data lines)? a. TXSTA b. RCSTA c. Both a & b d. None of the above
|
||||
17) Which among the below assertions represent the salient features of PIC in C-18 compiler? a. Transparent read/ write access to an external memory b. Provision of supporting an inline assembly during the necessity of an overall control c. Integration with MPLAB IDE for source-level debugging d. All of the above
|
||||
18) Which command-line option of compiler exhibits the banner comprising overall number of errors, messages, warnings and version number after an accomplishment of the compilation process? a. help b. verbose c. overlay d. char
|
||||
19) In which aspects do the output functions specified in stdio.h differ from ANSI specified versions? a. Provision of MPLAB specific extensions b. Floating-point Format Support c. Data in Program Memory d. All of the above
|
||||
20) What does the 'program idata' section of data memory contain in C-18 Compiler? a. statically assigned/allocated initialized user variables b. statically assigned /allocated uninitialized user variables c. only executable instructions d. variables as well as constants
|
||||
21) Which instruction is applicable to set any bit while performing bitwise operation settings? a. bcf b. bsf c. Both a & b d. None of the above
|
||||
22) Where is the result stored after an execution of increment and decrement operations over the special - purpose registers in PIC? a. File Register b. Working Register c. Both a & b d. None of the above
|
||||
23) Which flags of status register are most likely to get affected by the single-cycle increment and decrement instructions? a. P Flags b. C Flags c. OV Flags d. Z Flags
|