Docsity

Embedded Systems Midterm || Needed to Pass., Exams of Computer Security

Toggle sidebar
bg1
Embedded Systems Midterm || Needed to Pass.
MCU (Microcontroller unit) consists of a CPU (Central Processing Unit), memory and some
other peripherals. correct answers True
Which one of the following is not part of MSP432 MCU?
- simple peripherals such as buttons and LEDs
- Blocks that are in charge of reset, clock and power
- Several timers
- Different types of memory including ROM, SRAM and flash
-Analog interface including ADC (Analog to Digital Converter)
- Digital interface including UART SPI, I2C, I/O ports
- CPU correct answers simple peripherals such as buttons and LEDs
XDS110 is the is the emulator on the launchpad board that helps program/debug the main
microcontroller whereas MSP432 is the main microcontroller on the Launchpad board . correct
answers - is the emulator on the launchpad board that helps program/debug the main
microcontroller
- the main microcontroller on the Launchpad board
Which statement is true?
- MSP432 is on the Launchpad.
- Launchpad is on the MSP432.
- XDS110 is on the MSP432.
- MSP432 is on the XDS110. correct answers - MSP432 is on the Launchpad.
On what component is the tri-color LED that can be driven by PWM
- Boosterpack
-LaunchPad
- MSP432 chip correct answers Boosterpack
On what component is the tri-color LED cannot be driven by PWM
- Boosterpack
-LaunchPad
- MSP432 chip correct answers Launchpad
On what component is Joystick
- Boosterpack
-LaunchPad
- MSP432 chip correct answers Boosterpack
On what component is the ADC (Analog-toDigital Converter)
- Boosterpack
-LaunchPad
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Embedded Systems Midterm || Needed to Pass. and more Exams Computer Security in PDF only on Docsity!

Embedded Systems Midterm || Needed to Pass.

MCU (Microcontroller unit) consists of a CPU (Central Processing Unit), memory and some other peripherals. correct answers True Which one of the following is not part of MSP432 MCU?

  • simple peripherals such as buttons and LEDs
  • Blocks that are in charge of reset, clock and power
  • Several timers
  • Different types of memory including ROM, SRAM and flash -Analog interface including ADC (Analog to Digital Converter)
  • Digital interface including UART SPI, I2C, I/O ports
  • CPU correct answers simple peripherals such as buttons and LEDs XDS110 is the is the emulator on the launchpad board that helps program/debug the main microcontroller whereas MSP432 is the main microcontroller on the Launchpad board. correct answers - is the emulator on the launchpad board that helps program/debug the main microcontroller
  • the main microcontroller on the Launchpad board Which statement is true?
  • MSP432 is on the Launchpad.
  • Launchpad is on the MSP432.
  • XDS110 is on the MSP432.
  • MSP432 is on the XDS110. correct answers - MSP432 is on the Launchpad. On what component is the tri-color LED that can be driven by PWM
  • Boosterpack -LaunchPad
  • MSP432 chip correct answers Boosterpack On what component is the tri-color LED cannot be driven by PWM
  • Boosterpack -LaunchPad
  • MSP432 chip correct answers Launchpad On what component is Joystick
  • Boosterpack -LaunchPad
  • MSP432 chip correct answers Boosterpack On what component is the ADC (Analog-toDigital Converter)
  • Boosterpack -LaunchPad
  • MSP432 chip correct answers MSP432 Chip On what component is the large S1 and S2 buttons found
  • Boosterpack -LaunchPad
  • MSP432 chip correct answers Boosterpack On what component is the Timer_A found
  • Boosterpack -LaunchPad
  • MSP432 chip correct answers MSP432 chip On what component is the UART found
  • Boosterpack -LaunchPad
  • MSP432 chip correct answers MSP432 chip On what component is Timer32 found
  • Boosterpack -LaunchPad
  • MSP432 chip correct answers MSP432 chip On what component is the micro-USB port found
  • Boosterpack -LaunchPad
  • MSP432 chip correct answers Launchpad On what component is the Debugger chip found
  • Boosterpack -LaunchPad
  • MSP432 chip correct answers Launchpad If the first address the integer resides is A, it is going to take up A, A+1, A+2, and A+3 in the memory. If the least significant byte is stored at address A, followed by the next least significant byte at A+1 and so on, it is called correct answers little-endian if the most significant byte is at address A, followed by the next significant byte at address A+ and so on, it is called correct answers big-endian Choose True or False:
  1. A struct in the C programming language is a composite data type (or record) declaration that defines a physically grouped list of variables to be placed under one name in a block of memory, allowing the different variables to be accessed via a single pointer. correct answers True Choose True or False:

What is the lowest number that can be stored in a signed short? (Hint: A C short is two bytes.) correct answers -2^ What is the highest number that can be stored in an unsigned long? (Hint: A C long is four bytes.) correct answers 2^32- Which one is bit 4 mask or BIT4? correct answers 2^ Which one is bit 23 mask or BIT23? correct answers (1<<23) True or False: A port is a combination of pins. correct answers True True or False: MSP432 has 1 port, but many pins. correct answers False True or False: A port is used as output and a pin as input. correct answers False True or False: Port and pin are two names of the same thing. correct answers False In an MSP432 digital I/O module, there are how many Schmitt triggers? correct answers one In an MSP432 digital I/O module, there are how many 2-input logic gates? correct answers two In an MSP432 digital I/O module, there are how many multiplexers? correct answers three In an MSP432 digital I/O module, there are how many switches correct answers two True or False: Two gates cannot share a certain wire as their output as it may cause a short in the circuit. correct answers True Which expression could be untrue if the nth bit of the integer a is 0?

  • ((a & (1<>n) == 0)
  • ~(a&(1<>n) == 0) A C expression to compute a * 19 (a times 19) is: (Recall that one time shift to left doubles an integer. ) correct answers (a << 4) + (a << 1) + a; What selects a certain input among multiple inputs correct answers multiplexer

What is able to cut off a path in the circuit correct answers tri-state buffer What can act as a basic analog to digital converter correct answers schmitt trigger True or False: In MSP432, a digital I/O cannot be used for any other purpose such as an analog input. correct answers False In MSP432, any digital I/O pin can be configured to be a digital input. correct answers True In MSP432, any digital I/O pin can be configured to be a digital output. correct answers True In MSP432, a digital input can use any of these three options: 1) attached pull-up resistor, 2) attached pull-down resistor, 3) no attached resistor. correct answers True True or false: A programmer is not able to change the functionality of a digital I/O after the chip is manufactured with a certain configuration. correct answers False True or False: A programmer is not able to change the functionality of a digital I/O after the chip is placed on a PCB board with certain peripherals and a specific configuration. correct answers False True or False: A programmer is able to change the configuration of a digital I/O at any time. correct answers True Consider a Schmitt trigger with two thresholds at 1.4V and 1.6V. Also, assume the logic 0 is 0V, and logic 1 is 3V. What is the output when the input is 0.2V? correct answers 0V Consider a Schmitt trigger with two thresholds at 1.4V and 1.6V. Also, assume the logic 0 is 0V, and logic 1 is 3V. What is the output when the input is 1.55V? correct answers We cannot tell. It depends Consider a Schmitt trigger with two thresholds at 1.4V and 1.6V. Also, assume the logic 0 is 0V, and logic 1 is 3V. What is the output when the input is 2.33V? correct answers 3V True or False: In MSP432, the configuration of a single digital I/O pin depends on the values of several registers. correct answers True True or False:

True or False: In memory-mapped i/o, peripherals and memory certainly share a data bus. correct answers False True or False: In memory-mapped i/o, peripherals and memory certainly share the same address space. correct answers True True or False: In memory-mapped i/o, memory and the peripherals can share address bus and data bus. correct answers True True or False: In memory-mapped i/o, the processor uses the same instruction for reading from memory and reading from an i/o. correct answers True When programming the buttons on the boosterPack, the buttons correct answers do not need pull-up or pull-down resistors from within MSP432's GPIO. In other words, PxREN should be equal 0. True or False: API is a special form of HAL. correct answers False True or False: HAL is a special form of API. correct answers True True or False: HAL functions can be found in the driverlib manual. correct answers False True or False: We can use driverlib functions to develop (implement or write the code for) HAL. correct answers True True or False: HAL stands for Hardware Abstraction Level. correct answers False True or False: Driverlib is a form of API. correct answers True True or False: Driverlib is a form of HAL correct answers False Yes or No. It makes the code more readable. correct answers yes

Yes or No. It makes the code easier to port from one processor to another. correct answers Yes Yes or No. It reduces the size of the machine code binary after compilation. correct answers No Yes or No. It improves the efficiency of the program (e.g. it becomes faster or uses fewer resources.) correct answers No True or False: FSM stands for Finite State Machine. correct answers True True or False: FSM is a mathematical model of computation. correct answers True True or False: FSM is an abstract machine. correct answers True True or False: FSM is the C code that implements a certain algorithm correct answers False True or False: FSM is a mechanical machine that is capable of doing calculations. correct answers False True or False: FSM is a machine that can go into an infinite number of states. correct answers False True or False: FSM is defined by a list of states, an initial state, and conditions for transitions between the states. correct answers True True or False: An FSM is weaker than the combinational logic correct answers False True or False: Some examples of the behavior of an FSM are traffic lights, vending machines, and elevators. correct answers True True or False: An FSM is more powerful than the Turing correct answers False True or False: A static in C is a variable that is constant and does not change. correct answers False

Is I2C synchronous? correct answers Yes Is UART synchronous? correct answers No. Asynchronous Consider a communication scheme where each symbol (baud) represents two bits. If the bitrate in this communication is 10 Kbit/sec, what is the baudrate? correct answers 5K Consider a communication scheme where the bitrate is 1 Mbit/sec. The bits are packaged as packets of 20 bits, where 4 bits are used to specify the start and stop of the package and other protocol-related information. The rest of the bits are data bit. What is the data rate (in bits per second)? correct answers 0.8M What are the number of bits in a UART packet of data with the default number of start bits, 8 data bits, 2 stop bits, and no parity bits? correct answers 11 True or False: In UART, sender, and transmitter share a clock signal correct answers False True or False: In UART, baud rate is equal to bit rate. correct answers True True or False: In UART, bit rate is equal to data rate. correct answers False True or False: UART is asynchronous. correct answers True True or False: UART is always half-duplex. correct answers False True or False: UART has two data lines between sender and transmitter. correct answers True Assume we are transmitting single bytes with a parity bit. Choose T/F. When sending ASCII of 'L', the odd parity is 0. correct answers true Assume we are transmitting single bytes with a parity bit. Choose T/F. When sending 0x23, the even parity is 0. correct answers False Assume we are transmitting single bytes with a parity bit. Choose T/F. When sending the decimal 0, the odd parity is 1. correct answers True

In a UART where the BRCLK's frequency (BRCLK is the input clock of the UART counter) is 500KHz and Baudrate is 115200, what are the integer part and the fractional part of the division factor (the potential load value of the counter)? correct answers 4 and 0. When is the ideal time for sampling the data of a bit? correct answers In the middle of the data bit. True or False: In UART, sender, and transmitter share a clock signal correct answers False True or False: In UART, baud rate is equal to bit rate. correct answers True True or False: In UART, bit rate is equal to data rate. correct answers False A UART module shares a clock with the processor core that is 4MHz. The Baudrate is set at 10,000 baud/sec. What is the length of time the UART has to wait between sampling two consecutive bits? correct answers 0.1ms A UART uses Baudrate of 100 K Baud/sec. The counter inside the UART uses a 1MHz clock as its input, how long after the beginning of the start bit (the falling edge moment), we should sample the first data bit? correct answers 15 us In a UART where the BRCLK's frequency (BRCLK is the input clock of the UART) is 500KHz and Baudrate is 115200, what are the integer part and the fractional part of the division factor? correct answers 4 and 0. What is the clock frequency of a processor whose clock period is 1ms? correct answers 1kHz In terms of seconds, how long is 2 million cycles of a processor with a clock frequency of 1MHz? correct answers 2 s For a processor with a clock frequency of 1 GHz, how many cycles exist in 3 seconds? correct answers 3,000,000,