






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







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?
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?
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,