Unit 4 - Practice Quiz

ECE227 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What does the '16x2' in a 16x2 LCD signify?

Interfacing of 16x2 LCD in 8 bit mode Easy
A. A total of 162 pixels
B. 16 lines and 2 characters per line
C. 16 characters per line and 2 lines
D. 16 data pins and 2 control pins

2 In 8-bit mode, how many data lines of the PIC microcontroller are connected to the LCD's data pins (D0-D7)?

Interfacing of 16x2 LCD in 8 bit mode Easy
A. 4
B. 16
C. 2
D. 8

3 Which pin on a 16x2 LCD is used to select between command mode and data mode?

Interfacing of 16x2 LCD in 8 bit mode Easy
A. R/W (Read/Write)
B. Vcc
C. RS (Register Select)
D. E (Enable)

4 What is the primary function of the 'E' (Enable) pin on an LCD?

Interfacing of 16x2 LCD in 8 bit mode Easy
A. To latch the data present on the data lines into the LCD.
B. To power on the backlight.
C. To select between reading and writing.
D. To adjust the contrast.

5 To clear the entire display of a 16x2 LCD and return the cursor to the home position, which command is typically sent?

Interfacing of 16x2 LCD in 8 bit mode Easy
A. 0x80
B. 0x02
C. 0x01
D. 0x0C

6 In a 'common cathode' 7-segment display, how are the individual segments (A-G) turned ON?

Interfacing 7-segment Easy
A. By connecting the common pin to Vcc.
B. By sending a logic HIGH (1) to the segment's pin.
C. By connecting the common pin to an analog input.
D. By sending a logic LOW (0) to the segment's pin.

7 How many individual LEDs (segments) are used to form a single digit in a standard 7-segment display, excluding the decimal point?

Interfacing 7-segment Easy
A. 9
B. 7
C. 8
D. 10

8 What is the purpose of using a current-limiting resistor for each segment of a 7-segment display?

Interfacing 7-segment Easy
A. To allow it to connect directly to AC power.
B. To prevent the LED segments from getting damaged by excessive current.
C. To increase the brightness of the display.
D. To change the color of the display.

9 To display the number '1' on a 7-segment display, which two segments are typically lit up?

Interfacing 7-segment Easy
A. f, e
B. a, d
C. a, b
D. b, c

10 In a 'common anode' 7-segment display, the common pin is connected to:

Interfacing 7-segment Easy
A. Ground (GND)
B. The microcontroller's clock pin
C. A data output pin
D. The positive supply voltage (Vcc)

11 What does the acronym ADC stand for in the context of microcontrollers?

ADC programming Easy
A. Analog-to-Digital Converter
B. Automatic Data Control
C. Advanced Digital Circuit
D. Analog Data Channel

12 If a PIC microcontroller has a 10-bit ADC, how many distinct digital values can it represent?

ADC programming Easy
A. 10
B. 100
C. 1024
D. 256

13 What is the primary purpose of the ADC in a PIC microcontroller?

ADC programming Easy
A. To measure digital signals.
B. To generate analog signals.
C. To convert real-world analog sensor readings into a digital format.
D. To increase the processing speed of the microcontroller.

14 In many PIC microcontrollers, the result of a 10-bit A/D conversion is stored in which pair of registers?

ADC programming Easy
A. ADRESH and ADRESL
B. PORTA and PORTB
C. STATUS and PCL
D. TMR0L and TMR0H

15 What is the function of the GO/DONE bit in the ADCON0 register?

ADC programming Easy
A. To turn the ADC module on or off.
B. To select the analog input channel.
C. To start the A/D conversion process and indicate when it is complete.
D. To select the ADC reference voltage.

16 Why can't a DC motor be connected directly to a PIC microcontroller's I/O pin?

DC motor interfacing Easy
A. The microcontroller pin does not provide a ground connection.
B. The motor's speed cannot be controlled by a digital pin.
C. The motor requires an AC voltage, but the PIC provides DC.
D. The motor draws too much current for the PIC pin to supply safely.

17 What is the primary function of an H-Bridge motor driver IC like the L293D?

DC motor interfacing Easy
A. To allow the motor to be driven in both forward and reverse directions.
B. To measure the speed of the motor.
C. To step up the voltage from the PIC to a higher level.
D. To convert the motor's motion into electrical energy.

18 Which technique is commonly used by a PIC microcontroller to control the speed of a DC motor?

DC motor interfacing Easy
A. Changing the clock frequency of the PIC
B. Analog-to-Digital Conversion (ADC)
C. Serial Peripheral Interface (SPI)
D. Pulse Width Modulation (PWM)

19 In a DC motor control circuit, what is the purpose of a 'flyback' diode?

DC motor interfacing Easy
A. To light up when the motor is running.
B. To protect the driver circuit from voltage spikes generated by the motor.
C. To increase the motor's torque.
D. To control the motor's direction.

20 The L293D is a popular motor driver IC. How many separate DC motors can a single L293D chip typically control independently in two directions?

DC motor interfacing Easy
A. 8
B. 1
C. 2
D. 4

21 You are interfacing a 16x2 LCD in 8-bit mode. After power-on, you send the command 0x38 (Function Set: 8-bit, 2-line, 5x8 font), followed by 0x0C (Display ON, Cursor OFF), and then 0x06 (Entry Mode Set: Increment cursor). However, the display remains blank. Which critical initialization command is missing from this sequence?

Interfacing of 16x2 LCD in 8 bit mode Medium
A. A delay of at least 40ms after power-on before sending any commands.
B. 0x02 (Return Home)
C. 0x80 (Set DDRAM Address to 0x00)
D. 0x01 (Clear Display)

22 To display the character 'A' on a 16x2 LCD, the PIC microcontroller must set the RS (Register Select) pin and R/W (Read/Write) pin to which logic levels before sending the ASCII value 0x41 and pulsing the E (Enable) pin?

Interfacing of 16x2 LCD in 8 bit mode Medium
A. RS = 1, R/W = 0
B. RS = 1, R/W = 1
C. RS = 0, R/W = 0
D. RS = 0, R/W = 1

23 What is the correct command byte to send to a 16x2 LCD to move the cursor to the 5th character position on the 2nd line?

Interfacing of 16x2 LCD in 8 bit mode Medium
A. 0x85
B. 0xC5
C. 0x45
D. 0xC4

24 Upon powering up your circuit, the first line of the 16x2 LCD displays solid black blocks, and the second line is empty. This issue persists even after your initialization code runs. What is the most likely cause related to the LCD interface?

Interfacing of 16x2 LCD in 8 bit mode Medium
A. The RS pin is stuck HIGH.
B. The E (Enable) pin is not being pulsed correctly.
C. The contrast voltage (Vo) is not correctly set.
D. The data bus lines (D0-D7) are all shorted to ground.

25 When sending a command to an LCD in 8-bit mode, the microcontroller places the 8-bit command on the data bus. What is the correct sequence of events involving the control pins to latch this command into the LCD's instruction register?

Interfacing of 16x2 LCD in 8 bit mode Medium
A. Set E=1; Set RS=0, R/W=0; Wait; Set E=0.
B. Set RS=0, R/W=0; Set E=0; Wait; Set E=1.
C. Set RS=0, R/W=0; Set E=1; Wait; Set E=0.
D. Set E=1; Wait; Set E=0; Set RS=0, R/W=0.

26 To display the digit '2' on a common cathode 7-segment display, which hexadecimal value should be sent to the port connected to segments a, b, c, d, e, f, g (where bit 0 is 'a', bit 6 is 'g')?

Interfacing 7-segment Medium
A. 0x3F
B. 0x4F
C. 0x66
D. 0x5B

27 You are multiplexing four common anode 7-segment displays. To show the digit '8' only on the third display, what signals should be applied to the segment data lines and the common anode transistor controls (assuming DIG1, DIG2, DIG3, DIG4 are active-low)?

Interfacing 7-segment Medium
A. Data=0x80, DIG1=1, DIG2=1, DIG3=0, DIG4=1
B. Data=0x7F, DIG1=0, DIG2=0, DIG3=1, DIG4=0
C. Data=0x00, DIG1=1, DIG2=1, DIG3=0, DIG4=1
D. Data=0xFF, DIG1=1, DIG2=1, DIG3=0, DIG4=1

28 A red LED segment has a forward voltage of 2.0V and a recommended forward current of 15mA. If it is driven by a PIC I/O pin with a 5V supply, what is the closest standard resistor value needed to limit the current?

Interfacing 7-segment Medium
A. 1 k
B. 150
C. 330
D. 220

29 In a multiplexed 4-digit display system, digit '4' appears correctly, but digit '9' appears as '8' (segment 'e' is always on when it should be off for a '9'). Other digits display correctly. What is the most likely cause of this software bug?

Interfacing 7-segment Medium
A. A hardware short on the 'e' segment data line.
B. The refresh rate of the multiplexing is too slow.
C. Incorrect segment data for the digit '9' in the look-up table.
D. A faulty transistor controlling the common pin of the display.

30 If the hex value 0x4F is sent to a port connected to a common cathode 7-segment display to show the digit '3', what hex value must be sent to a common anode display to show the same digit?

Interfacing 7-segment Medium
A. 0x4F
B. 0x0B
C. 0xF4
D. 0xB0

31 A PIC microcontroller's 10-bit ADC is configured with a reference voltage () of 5.0V. If the analog input voltage from a sensor is 1.25V, what will be the approximate decimal value read from the ADC result registers (ADRESH:ADRESL)?

ADC programming Medium
A. 125
B. 255
C. 1023
D. 512

32 To configure the ADC module of a PIC16F877A to use analog channel 2 (AN2), an internal RC oscillator for the ADC clock, and to turn the module ON, which value should be written to the ADCON0 register?

ADC programming Medium
A. 0x91
B. 0x41
C. 0x51
D. 0x12

33 An ADC reading from a temperature sensor is consistently the maximum possible value (e.g., 1023 for a 10-bit ADC), even when the room is cool. The sensor is known to be working. What is the most likely electrical fault in the interface circuit?

ADC programming Medium
A. The sensor's output signal exceeds the ADC's reference voltage.
B. The ADC acquisition time is set too short.
C. The ADC's reference voltage pin () is not connected.
D. The sensor output is shorted to Ground.

34 In the context of PIC ADC programming, what is the primary purpose of the 'Acquisition Time' ()?

ADC programming Medium
A. The minimum time required between two consecutive ADC conversions.
B. The time required for the internal sample-and-hold capacitor to charge to the level of the input voltage.
C. The time it takes for the entire analog-to-digital conversion to complete.
D. The time it takes for the ADC clock source to stabilize after being enabled.

35 Given the following C code snippet for a PIC microcontroller, which line initiates the analog-to-digital conversion process? ADCON0 = 0x81; // ADC ON, Channel 0, Fosc/32 ... delay_us(20); // Acquisition delay ADCON0bits.GO = 1; // Start conversion while(ADCON0bits.GO); // Wait for conversion to complete result = (ADRESH << 8) | ADRESL;

ADC programming Medium
A. ADCON0bits.GO = 1;
B. while(ADCON0bits.GO);
C. delay_us(20);
D. ADCON0 = 0x81;

36 A PIC microcontroller I/O pin can typically source around 25mA. A small DC motor requires 300mA to run. Why is an H-Bridge driver IC (like an L293D) necessary instead of connecting the motor directly to two I/O pins?

DC motor interfacing Medium
A. To reduce the motor's operating speed to a level controllable by the PIC.
B. To convert the PIC's digital signal to an analog voltage for the motor.
C. To protect the motor from voltage spikes from the PIC.
D. To provide the higher current required by the motor and to enable bidirectional control.

37 Using an L293D H-Bridge motor driver, the motor is connected to outputs OUT1 and OUT2. To make the motor spin in the forward direction, what logic levels must the PIC apply to the corresponding inputs IN1 and IN2?

DC motor interfacing Medium
A. IN1 = 0, IN2 = 1
B. IN1 = 1, IN2 = 0
C. IN1 = 0, IN2 = 0
D. IN1 = 1, IN2 = 1

38 A DC motor is controlled by a PIC's PWM signal via an H-Bridge driver. The driver is powered by a 12V supply. If the PWM is set to a 75% duty cycle, what is the approximate average voltage applied across the motor terminals?

DC motor interfacing Medium
A. 7.5V
B. 9V
C. 3V
D. 12V

39 In a simple DC motor driver circuit using a single transistor as a switch, a 'flyback diode' is placed in parallel with the motor. What is the critical function of this diode?

DC motor interfacing Medium
A. To prevent current from flowing back into the power supply.
B. To allow the motor to run in reverse.
C. To regulate the voltage supplied to the motor.
D. To safely dissipate the voltage spike generated by the motor's inductance when it's turned off.

40 You have interfaced a DC motor using an L293D driver. You observe that the motor spins correctly when you set IN1=1 and IN2=0, but it does not move at all when you set IN1=0 and IN2=1. What is a plausible hardware fault?

DC motor interfacing Medium
A. The motor's power supply voltage is too low.
B. The PWM frequency is set too high.
C. The PIC's I/O pin connected to IN2 is faulty and stuck at LOW.
D. The flyback diodes within the L293D are shorted.

41 A PIC microcontroller sends a command to a 16x2 LCD in 8-bit mode. The code ensures the minimum pulse width for the Enable (E) signal is met, but the address setup time (), the time the RS and R/W signals must be stable before E goes high, is violated and is near zero. What is the most probable outcome?

Interfacing of 16x2 LCD in 8 bit mode Hard
A. The data on the bus (D0-D7) will be corrupted, but the command register will interpret the instruction correctly.
B. The LCD will latch the command from the previous cycle or garbage data because the control lines were not stable.
C. The command will be processed correctly, as the E signal's falling edge is the critical timing event.
D. The LCD will enter a busy state indefinitely, requiring a power cycle to reset.

42 You are creating a custom character in the CGRAM of an HD44780-compatible LCD. Your initialization sequence is: 1) Send command 0x40 (Set CGRAM Address to 0). 2) Write 8 bytes of pattern data. 3) Send command 0x80 (Set DDRAM Address to 0). 4) Write character code 0x00 to display the custom character. However, instead of the custom character, a blank space or a different character appears. What is the most likely error in this sequence?

Interfacing of 16x2 LCD in 8 bit mode Hard
A. After writing the 8th byte to CGRAM, the address counter does not automatically wrap back to DDRAM; a 'Set DDRAM Address' command is required before writing character codes.
B. The initial command should be 0x48 to access the memory location for the second custom character, as the first is often reserved.
C. The CGRAM address must be set for each of the 8 bytes written, as it does not auto-increment.
D. Character code 0x00 is a null character and may not be displayable; custom characters start from code 0x01.

43 An LCD is interfaced in 8-bit mode. After sending the command to clear the display (0x01), the programmer forgets to check the Busy Flag (BF) or implement a fixed delay. Instead, they immediately send a command to set the cursor to the second line (0xC0). What is the most probable result on the LCD screen?

Interfacing of 16x2 LCD in 8 bit mode Hard
A. The display will show garbage characters as the second command corrupts the ongoing clear operation.
B. The second command (0xC0) will be ignored because the LCD is still executing the 'clear display' command.
C. The display will clear, but the cursor will remain at the beginning of the first line (address 0x00).
D. The LCD controller will correctly buffer the second command and execute it immediately after the clear operation is finished.

44 A sequence of commands is sent to a 16x2 LCD: 1) 0x38 (8-bit, 2-line), 2) 0x06 (Entry mode: increment cursor, no shift), 3) 0x0C (Display on, cursor off), 4) 0x01 (Clear display), 5) Write "HELLO", 6) 0x18 (Shift entire display left). What will be the final content and cursor position visible on the screen immediately after the last command?

Interfacing of 16x2 LCD in 8 bit mode Hard
A. Display shows "ELLO", with the cursor at the position of the 'O'.
B. Display shows "HELLO", with the cursor remaining at the position after 'O'.
C. Display shows " HELLO", with the cursor at the position of the 'H'.
D. Display shows "ELLO ", with the cursor conceptually off-screen to the left of 'E'.

45 During the power-on initialization sequence for an HD44780 LCD in 8-bit mode, the datasheet recommends sending the 'Function Set' command (0x38) three times. What is the primary reason for this redundancy, especially if the PIC's power-on reset is slower than the LCD's?

Interfacing of 16x2 LCD in 8 bit mode Hard
A. The first command acts as a wake-up signal, and only the third is guaranteed to be latched correctly.
B. It is required to clear all internal registers, including CGRAM and DDRAM, before use.
C. This redundancy compensates for potential timing violations on the first attempt while the PIC's oscillator stabilizes.
D. It forces the LCD out of a potential 4-bit mode state left from a previous brown-out or noisy power-down.

46 A 4-digit common cathode 7-segment display is multiplexed by a PIC18F running at 16MHz (). The ISR for refreshing the display takes exactly 50 instruction cycles to execute per digit. To achieve a flicker-free display, a minimum refresh rate of 60 Hz for the entire 4-digit display is desired. What is the maximum allowable count for a Timer0 interrupt used to trigger the ISR, assuming a 1:256 prescaler and ?

Interfacing 7-segment Hard
A. Timer0 count should be set to 125.
B. The setup is not feasible as the required ISR execution time exceeds the time available per digit.
C. The prescaler is too high; a lower prescaler is required to meet the 60 Hz refresh rate.
D. Timer0 count should be set to 250.

47 A 4-digit common anode 7-segment display is multiplexed using PNP transistors to drive the common anodes and an I/O port to sink current for the segments. Due to a coding error, the routine that turns off the previous digit's PNP transistor executes after the new segment data is written to the port. This is known as a 'break-before-make' violation. What is the most likely visual artifact?

Interfacing 7-segment Hard
A. Only one digit, the first in the sequence, is ever displayed.
B. Flickering of the entire display, as the timing is unstable.
C. The display appears dimmer than expected due to reduced duty cycle.
D. Ghosting, where faint images of the previous digit's segments appear on the current digit.

48 You are designing a circuit to drive a single high-efficiency 7-segment display digit directly from a PIC18F microcontroller's I/O pins. The PIC's VDD is 5V, its maximum source current per pin is 25mA, and is 4.2V at 8mA. The display's segments have a forward voltage () of 1.8V and a max continuous current of 20mA. To drive the segments at 15mA for good brightness, what is the most appropriate value and configuration for the current-limiting resistors?

Interfacing 7-segment Hard
A. Seven 220 resistors, one on each segment pin (a-g).
B. Seven 160 resistors, one on each segment pin (a-g).
C. One 160 resistor on the common cathode pin, connected to ground.
D. One 220 resistor on the common anode pin, connected to VDD.

49 A multiplexed 4-digit, common anode display controlled by a PIC shows the number '1234' correctly. When the code is changed to display '8888', all digits appear significantly dimmer than '1234' did. The multiplexing timing and ISR are unchanged. What is the most plausible cause for this phenomenon?

Interfacing 7-segment Hard
A. The lookup table in the code for the digit '8' contains incorrect, lower-duty-cycle values.
B. This is a perceptual illusion; the brightness of individual LEDs is the same.
C. The common anode driver transistors are not being saturated correctly when more segments are active.
D. The total current required by '8888' is causing the PIC's VDD supply to drop, reducing overall brightness.

50 A PIC18F ADC is configured with and . The ADFM bit is set to 1 (right-justified). A 10-bit conversion of an analog input results in the digital value 0b1011010101. If the ADFM bit were cleared to 0 (left-justified) without changing the analog input, what would be the 8-bit value read from the ADRESH register?

ADC programming Hard
A. 0b11010101
B. 0b01010000
C. 0b10110101
D. 0b00101101

51 A PIC's 10-bit ADC is running with MHz and the ADC clock is set to (ADCS=0b110). The datasheet specifies a minimum acquisition time () of 2.4 µs. The ACQT bits in ADCON2 are set to 0b001, which corresponds to 2 . Is this configuration valid, and if not, why?

ADC programming Hard
A. No, the configured is 6.4 µs, which is valid but inefficient.
B. Yes, the configured is exactly 2.4 µs.
C. Yes, the configuration is valid as the ADC clock period is long enough.
D. No, the configured is 1.6 µs, which is below the minimum required time.

52 An analog sensor with a high output impedance of 25 k is connected to a PIC's ADC input. The ADC's internal sampling capacitor is 5 pF. The datasheet specifies a minimum acquisition time of 2.0 µs, which is based on a source impedance of < 2.5 k. To get an accurate reading to within 1/2 LSB for a 10-bit ADC, what is the approximate minimum acquisition time () you must configure?

ADC programming Hard
A. 2.0 µs is sufficient, as the internal buffer handles high impedance.
B. Approximately 10 µs
C. Approximately 22 µs
D. The ADC cannot be used with this sensor without an external op-amp buffer.

53 A PIC microcontroller is measuring a DC voltage, but the ADC readings are unstable, showing significant noise (±15 LSBs). The analog input is properly filtered with a capacitor, and the VDD/VSS pins have bypass capacitors. The ADC is configured to use the internal FRC oscillator as its clock source (ADCS=0b111). What is the most likely cause of this noise, and how can it be mitigated in software?

ADC programming Hard
A. The FRC oscillator has high jitter, injecting noise into the sampling process. Change the ADC clock to a derivative of and implement digital averaging.
B. The ADC reference voltage () is unstable. No software solution is possible; hardware modification is required.
C. Ground bounce is occurring due to other peripherals. Implement a software delay before starting the conversion.
D. The acquisition time is too short. Increase the ACQT bits to the maximum value.

54 An H-bridge is driving a brushed DC motor with a PWM signal from a PIC. To implement dynamic braking, the firmware is changed to set both inputs for one side of the H-bridge high (e.g., IN1=1, IN2=1) instead of the normal drive state (e.g., IN1=1, IN2=0). This shorts the motor terminals. What is the effect on the motor and the primary risk to the H-bridge driver?

DC motor interfacing Hard
A. The motor coasts to a stop, as no voltage is applied. There is no risk to the H-bridge.
B. The motor stops instantly, but the collapsing magnetic field creates a large voltage spike that can destroy the high-side FETs.
C. This creates a short circuit from the power supply through both H-bridge arms, leading to catastrophic 'shoot-through' failure.
D. The motor's back-EMF generates a large current that flows through the H-bridge, causing rapid deceleration. The risk is thermal overload of the low-side FETs if the braking is prolonged.

55 A PIC's CCP module generates a 10-bit PWM signal at 20 kHz to control a DC motor's speed. The system clock is 40 MHz, and Timer2 is used as the PWM time base. To achieve exactly 50.0% duty cycle, what values should be loaded into the period register (PR2) and the duty cycle registers (CCPR1L:CCP1CON<5:4>)?

DC motor interfacing Hard
A. PR2 = 125, CCPR1L = 62, CCP1CON<5:4> = 0b10
B. PR2 = 124, CCPR1L = 62, CCP1CON<5:4> = 0b10
C. PR2 = 249, CCPR1L = 125, CCP1CON<5:4> = 0b00
D. PR2 = 250, CCPR1L = 125, CCP1CON<5:4> = 0b00

56 A brushed DC motor is driven by a simple low-side N-channel MOSFET switch controlled by a PIC. A flyback diode is placed across the motor terminals. When the PIC turns the MOSFET off, a high-frequency, high-voltage ringing is observed on the MOSFET's drain. What is the most likely cause of this ringing, and what additional component could mitigate it?

DC motor interfacing Hard
A. The flyback diode is too slow, causing a delayed clamp. An RC snubber circuit in parallel with the diode is needed.
B. Back-EMF from the motor is exceeding the diode's reverse breakdown voltage. A higher voltage Zener diode is needed.
C. The MOSFET gate is not being driven hard enough, causing it to switch slowly. A dedicated gate driver IC is needed.
D. Parasitic inductance in the PCB traces and component leads is resonating with the MOSFET's output capacitance. An RC snubber circuit across the MOSFET's drain-source is needed.

57 An L298N H-bridge is used to control a 12V DC motor. The PIC microcontroller provides the PWM signal and direction control. The motor fails to start under light load when the PWM duty cycle is below 25%. However, if the motor is already spinning, the speed can be reduced to as low as 10% duty cycle before it stalls. This phenomenon is best described as:

DC motor interfacing Hard
A. Insufficient current from the power supply at low duty cycles.
B. The difference between static friction (stiction) and kinetic friction in the motor.
C. An incorrect PWM frequency causing the motor to resonate.
D. A limitation of the L298N driver, which has a large voltage drop.

58 You are interfacing a 16x2 LCD using a 74HC595 shift register to save PIC I/O pins. The 8 outputs of the shift register control the LCD's D0-D7 lines. The RS, R/W, and E lines are controlled by separate PIC pins. A bug in the code causes the shift register's Latch Clock (RCLK) to pulse while the data is being shifted in (on each pulse of the Shift Clock, SRCLK). What is the expected behavior on the LCD data bus (D0-D7)?

Interfacing of 16x2 LCD in 8 bit mode Hard
A. Only the last bit shifted in (e.g., D7) will appear on all 8 data lines simultaneously.
B. The LCD data bus will show a 'ripple' of intermediate, incorrect values as each bit is shifted in, potentially causing the LCD to latch garbage.
C. The LCD data bus will show the final, correct 8-bit value, but only after all 8 bits have been shifted.
D. The shift register will not function correctly and its outputs will remain in a high-impedance state.

59 A PIC is multiplexing a 4-digit common cathode display. The digit selection is done via I/O pins RA0-RA3, and segment data is on PORTB. The code sequence in the timer ISR is: 1) PORTA = 0b00000000 (all digits off), 2) PORTB = lookup_table[digit_value], 3) PORTA = digit_select_pattern. A hardware fault causes pin RA0 to be shorted to ground. If the intended display number is '1234', what will be displayed?

Interfacing 7-segment Hard
A. The display will show a superposition of '1' and '2' on digit 2, '3' on digit 3, and '4' on digit 4, with digit 1 blank.
B. The display will show '234' correctly in digits 2, 3, and 4, while digit 1 remains blank.
C. The display will show '1234', but digit 1 will be significantly brighter than the others.
D. The display will show a garbled '1' on all four digits simultaneously.

60 A 10-bit ADC with and is used. The result of a conversion is 0x1A3. The programmer then changes the reference to an external, precise 2.048V source connected to but forgets to update the formula used to convert the ADC value back to a voltage. If the analog input voltage remains the same, what new hexadecimal ADC value would be read, and what incorrect voltage would the old formula calculate from it?

ADC programming Hard
A. New value: 0x3FF; Incorrect voltage: ~3.30V
B. New value: 0x1A3; Incorrect voltage: ~1.03V
C. New value: 0x2A1; Incorrect voltage: ~1.69V
D. New value: 0x2A1; Incorrect voltage: ~0.65V