mideterm 2 study guide

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

What is the clock frequency of a processor whose clock period is 1ms?

1 KHz

Although it is possible to calculate by hand, it will be more efficient to use the Matlab file provided in L28 to answer these questions on SAR A/D conversion. Assume:Vrefm = 0Vrefp = 4n = 14Vin = 3.4 What is 1LSB? [ Select ] ["24 mV", ".21 mV", ".24 mV"] What is the 4th digital guess generated? [ Select ] ["1024", "13824", "13312"] What analog guess value does this correspond to? [ Select ] [".98mV", "3.25V", "3.375 V"] Which bit index does this correspond to? [ Select ] ["10", "11", "4", "3"] What is the final digital result? [ Select ] ["13927", "13926", "14080"] What analog guess value does this correspond to? [ Select ] ["3.4004", "3.400", "3.3999"] If you change n to 8, what is the final digital result? [ Select ] ["218", "217", "220"] What analog guess value does this correspond to? [ Select ] ["3.4375", "3.400", "3.3906"]

1. .24 mV 2. 13312 3. 3.25V 4. 10 5. 13926 6. 3.3999 7. 217 8. 3.3906

Two different color choices are stored : the colors selected by the game (called "my side" in the video), and the colors selected by the player during the game. How many variables are used to store the color choice on "my side"? 1 How many variables are used to store the color choice on the player side? 2

1. 1 2. 3

If the the BRCLK's frequency (BRCLK is the input clock of the UART) is 3.3MHz and Baudrate is 19200, determine the following configuration parameter values. uartConfig.clockPrescalar = 11 uartConfig.firstModReg = 10 uartConfig.secondModReg = 0xEF uartConfig.overSampling = 0

1. 10 2. 11 3.0xEF 4. 1

Review the diagrams and tables in Section 6.12 of the MCU Datasheet. What should PySEL1 and PySEL0 be set to in order to use Pin 6.0 as an analog input? 11 The structure of P6.0 is the same as that of P3.5 (used for pushbutton) F

1. 11 2.F

In the moving spectrum example, if the frameIndex is 10 and the frameOffset is 120, pick the correct value for each of these.. g (green variable) 20 b (blue variable) 234 y coordinate of the horizontal line that is drawn in that round 2

1. 20 2. 234 3. 2

Assume you are using TimerA in Output Compare mode as illustrated in the timing diagram in class. If the load value is 8000, what should the Output Compare register be set to for a duty cycle of 70%? 2400 what will the duty cycle be if the Output Compare register is set to 3600? 55%

1. 2400 2. 55%

For each of the below-mentioned components, choose one of the below four options: It is part of the UART module only. It is part of the I2C module only. It is part of both UART and I2C modules. It is not part of either of the UART or I2C modules. You need to decide for the following components: Clock source multiplexer [ Select ] ["1", "4", "2", "3"] Clock Prescaler [ Select ] ["2", "1", "4", "3"] open-drain transistor [ Select ] ["1", "3", "2", "4"] Receive shift register [ Select ] ["2", "3", "4", "1"] Schmitt trigger [ Select ] ["3", "1", "4", "2"] Follower address [ Select ] ["3", "1", "4", "2"] Modulator [ Select ] ["1", "2", "3", "4"] An inverter gate[ Select ] ["2", "1", "4", "3"]

1. 3 2. 3 3. 2 4. 3 5. 4 6. 2 7. 1 8. 2

Using the diagram below, determine the values of the following variables. (These calculations are explained in Step 6 of the part 1 video.) hwTimerRollover = 1 timer_p->startRollovers = 1 currentCounter = 300 timer_p->startCounter = 300 SWTimer_elapsedCycles = 3100

1. 3 2.1 3. 900 4. 300 5. 1400

Match each communication protocol with the explanation that best describes how many pins are required. 1. SPI 2. UART 3. I2C

1. 3+ 2. 2 3. 2

If the the BRCLK's frequency (BRCLK is the input clock of the UART) is 500KHz and Baudrate is 115200, determine the following configuration parameter values. uartConfig.clockPrescalar = 49 uartConfig.firstModReg = 0 uartConfig.secondModReg = 0x49 uartConfig.overSampling = 0

1. 4 2. 0 3. 0x49 4. 0

In the Guess the Color project, software timers are constructed in which functions? Check all that apply. App_GuessTheColor_construct App_GuessTheColor_handleTitleScreen App_GuessTheColor_handleInstructionsScreen App_GuessTheColor_handleGameScreen App_GuessTheColor_handleResultScreen App_GuessTheColor_showTitleScreen

1. App_GuessTheColor_construct 2. App_GuessTheColor_handleGameScreen

Match each communication protocol with the explanation that best describes how follower selection works in each. 1. SPI 2. UART 3. I2C

1. By driving the CS/SS (chip select) signal low 2. NA 3. By sending the address of the follower

Choose T/F. 1. Once the UART is enabled, to change the baudrate parameters, it is only necessary to update the uartConfig struct and initialize the UART. F 2. If no character is available from the UART, the UART_receiveData function will not wait and the program will move on. F

1. F 2. F

Choose True/False: The best way to generate a PWM is to use the processor and a general timer such as Timer32 because the processor is very fast and accurate. True The most accurate way to generate a PWM on our chip is using Timer_A, but using Timer_A is very expensive in terms of power and energy. True

1. F 2. F

Select T/F. As in project 1 and project 2, you will need to create an application struct. [ Select ] ["F", "T"] Since this project is interrupt-based, you will not need an enum for your state. [ Select ] ["F", "T"] You must use a hardware timer to measure the Title Screen's 2 second display time. [ Select ] ["T", "F"]

1. F 2. F 3. T

Select T/F. In order to configure TimerA, we will need to determine the correct MC value from the Timer Mode table. [ Select ] ["T", "F"] Up Mode and Continuous Mode each have the same number of interrupts associated with them. F One way that Continuous Mode is simpler than Up Mode is that it does not require a load value. [ Select ] ["T", "F"]

1. F 2. F 3. T

Choose T/F: 1. Launchpad has a dedicated serial port for UART communication. 2. Most modern laptops have a dedicated serial port for UART communication. 3. MobaXterm is an application that provides a variety of communication terminals including serial (UART). 4. Software running on the MSP432 converts the packets received through the USB port from USB format to UART packets.

1. F 2. F 3. T 4. F

Review the BoosterPack and Launchpad pinout diagrams. Which of the following are true? The joystick horizontal and vertical signals are connected to the J3 connector. F The joystick horizontal signal is connected to Pin 6.0 of the MSP432. F The joystick vertical signal is on analog channel A14. T

1. F 2. T 3. F

Choose T/F. I2C is pronounced 'eye two see'. [ Select ] ["F", "T"] I2C is a synchronous serial interface. [ Select ] ["F", "T"] I2C needs pull-up resistors on the SDA and SCL terminals. [ Select ] ["T", "F"] I2C uses half-duplex data transfers. [ Select ] ["T", "F"]

1. F 2. T 3. T 4. T

Which of the following will you need to edit to complete Part A of HW6? HAL_refresh in HAL.c HAL.h LED.h LED.c HAL_construct in HAL.c

1. HAL.h 2. LED.h 3. HAL_construct in HAL.c

The MOSI pin on the initiator/master can connect to what pins on the follower/slave? (choose all that are possible) Correct! MOSI MISO SS Correct Answer SIMO SOMI You Answered CS

1. MOSI 2. SIMO

Out of all the documentation we referenced to initialize interrupts, which informed us whether INT_TA0_0 or INT_TA0_N is the correct interrupt number? [ Select ] ["MSP432 User Guide", "interrupt.h headers", "MSP432 Datasheet"] Do we need to set the interrupt priority in this program? [ Select ] ["No", "Yes"] What is correct name for TimerA rollover ISR? [ Select ] ["TA1_0_IRQHandler", "TA0_0_IRQHandler", "TA2_0_IRQHandler", "TA0_N_IRQHandler"] Do we need to check the interrupt source in my ISR? [ Select ] ["No", "Yes"]

1. MSP432 Datasheet 2. No 3. TA0_N_IRQHandler 4. Yes

Match each communication protocol with the explanation that best describes the selection method for read/write in each. 1. SPI 2. UART 3. I2C

1. Read and write happen simultaneously 2. Read and write happen independently 3. I2C

Select T/F. When using the following configuration, each memory location in the range should be configured individually using the ADC14_configureConversionMemory function. ADC14_configureMultiSequenceMode(ADC_MEM0, ADC_MEM1, true); When using the following configuration, the programmer user will have to set the conversion trigger at the end of each sample/conversion cycle. ADC14_enableSampleTimer(ADC_AUTOMATIC_ITERATION);

1. T 2. F

Select T/F. blinkingTimer must be declared as a static variable. T blinkingTimer should be started each time you begin the App_GuessTheColor_loop. F

1. T 2. F

Choose T/F. The variable redSelected needs to be initialized. T All variables need to be initialized. T The entire game screen is updated regardless of what is causing the change. F

1. T 2. F 3. T

Consider an A/D with n =1, Vref - = 0V, Vref+ = 1V. Assume the A/D uses the floor of the conversion formula when turning non-integers to integers. Select all that are correct. If the input is 0.4 V, The output is 0. If the input is 0.7 V, The output is 0. LSB is worth 0.5 V.

1. T 2. F 3. T

Consider two A/Ds n= 4, Vref-=0, Vref+=2V n = 8, Vref-=-1V, Vref+ = 1V Choose all that is correct. The digital resolution of the second A/D is higher than the first one. The voltage resolution (1LSB or analog resolution) of the second A/D is larger than the first one. Both A/D have the same full-scale range or analog range.

1. T 2. F 3. T

Select T/F. Of the two solutions presented in the TimerA_1 video, both require TimerA to be running and CCR configured for capture. [ Select ] ["T", "F"] One of the two solutions presented will take significantly more code than the other. [ Select ] ["T", "F"] The only Timer mode not recommmended is Up-Down. [ Select ] ["F", "T"]

1. T 2. F 3. T

Which of the below statements is true about S/H circuit? At least two switches are needed to build the S/H circuit. False The capacitor is needed to avoid a short in the S/H circuit. True The resistor is not necessary for building the S/H circuit and it is only used to improve the quality of the design. False The delay of the S/H circuit is increased exponentially when the size of the capacitor is increased linearly. True The speed of the S/H circuit is increased when the size of the resistor is decreased. True

1. T 2. F 3.F 4.F 5. T

Select T/F. Software timers can be used to measure much longer time periods than hardware timers. You can have an unlimited number of software timers. In the Guess the Color project, timer.h can be found in the Includes folder.

1. T 2. T 3. F

Recall the projection from analog values to digital values that we discussed in class and how we derived the general formula. This can also be considered in the opposite direction, from digital to analog (D/A). Consider a D/A with n = 2, Vref- = -1V and Vref+ = +1V. Choose T/F for each statement. The LSB is worth 0.5V. If the input is 00, the output is -1V. If the input is 11, the output is +1V. If the input is 10, the output is 0V. The digital resolution is 2 bits. The analog resolution is 2/3 of a volt.

1. T 2. T 3. F 4. T 5. T 6.F

Which of the following statements is True or False about the watchdog timer? At the heart of a watchdog timer is a counter that tries to count between 0 and the load value. The counter in the watchdog timer should be reset (loaded with 0) on a regular basis by the software. If the counter in the watchdog timer overflows (rolls over), the processor is reset. Resetting a watchdog timer resets the processor. When a processor faces a hardware or software issue and is stuck, it fails to reset the watchdog timer. Resetting the watchdog timer on a regular basis acts as a healthy pulse for the processor status.

1. T 2. T 3. T 4. F 5. T 6. T

While you are testing, where can you find the interrupt flag? [ Select ] ["TACCR0 register", "TAIV register", "TACTL register", "TACCTL0 register"] While you are testing, where can you look at the rollover count variable? [ Select ] ["using the Registers window", "using the Variables window", "using the Expressions window"]

1. TACTL register 2. using the Expressions window

According to MSP432 (MCU) datasheet, is it possible for P9.6 to have the below roles? Choose Y/N. 1) RXD (Rx of UART) Y 2) TXD( Tx of UART) N 3) SIMO (SIMO of SPI) Y 4) SOMI (SOMI of SPI) N

1. Y 2. N 3.N 4.Y

Which of the below components is part of a UART module on MSP432? Choose between "Yes" and "No" Transmit State Machine Y Transmit shift register Y Receive shift register Y Baud rate generator Y Transmit and Receive buffers Y

1. Y 2. Y 3. Y 4. Y 5. Y

In I2C, initiators/controllers [ Select ] ["are not", "are"] able to drive the data line to zero. In I2C, initiators/controllers [ Select ] ["are", "are not"] able to drive the data line to one. In I2C, followers [ Select ] ["are not", "are"] able to drive the data line to zero. In I2C, followers [ Select ] ["are", "are not"] able to drive the data line to one.

1. are 2. are not 3. are 4. are not

Compare the daisy chain and direct configuration for multi-follower SPI setup daisy-chain direct configuration

1. cheaper but slower 2. faster but needs more cs pins

Several macros and functions are listed below. Select whether they are defined by the programmer or by the device manufacturer. 1. LAUNCHPAD_LED2_GREEN_PORT [ Select ] 2. GPIO_PORT_P2 [ Select ] 3. LAUNCHPAD_S2_PIN [ Select ] 4. GPIO_setAsOutputPin [ Select ] 5. Button_refresh [ Select ] 6. LED_turnOn [ Select ]

1. defined by the programmer. 2. defined by the device manufacturer 3. defined by the programmer 4. defined by the device manufacturer. 5. defined by the programmer 6. defined by the programmer

Which of the following are benefits of modular programming?

1. easier to test 2. facilitates collaboration 3. faster to develop 4. easier to maintain and modify 5. produces more reusable code

Based on its purpose, how many times is it reasonable to expect init_Button() to be called? [ Select ] ["multiple", "once"] Based on its purpose, how many times is it reasonable to expect init_Buttons() to be called? [ Select ] ["once", "multiple"] Choose True or False. GPIO_setAsInputPinWithPullUpResistor() should not be used for the Boosterpack button.[ Select ] ["F", "T"]

1. multiple 2. once 3. F

Match each communication protocol with the application that is the best fit. 1. SPI 2. UART 3. I2C

1. relatively fast communication between chips a short distance apart on one PCB 2. between PCBs 3. cheap and slow communication between chips somewhat far apart on one PCB

For each type of function, who decides its address? regular function ISR

1. the software toolchain (compiler/linker/loader) 2. the vector table within the interrupt controller

Match each function with its purpose. 1. HAL_refresh: [ Select ] 3. Application_loop: [ Select ]

1. to check your inputs 2. to take action

Consider the decomposition of your project. When designing your project, you should work top to bottom . When building your project, you should work bottom to top .

1. top to bottom 2. bottom to top

Which of the following are SPI interrupts on the MSP432? receive buffer is empty transmit buffer is full Correct! transmit buffer is ready to accept a character Correct Answer character is loaded into the receive buffer

1. transmit buffer is ready to accept a character 2. character is loaded into the receive buffer

There are two levels of clock dividers in the ADC14 module. Each level of dividers has a continuum of choices. The following function maps the ADC channel to an external pin . ADC14_initModule(ADC_CLOCKSOURCE_SYSOSC, ADC_PREDIVIDER_1, ADC_DIVIDER_1, ADC_NOROUTE);

1. two 2.limited number of 3. True

Select True or False. 1. All macros, structs and enums should be in a .h file. [ Select ] 2. Function definitions are contained in .c files. [ Select ] 3. Application.h is a file we will use repeatedly for all our projects this semester. [ Select ]

1.False 2. True 3. False

In the debouncing state machine, match the state transition (edge/arc) with the event that causes it. 1. transition from NOT DEBOUNCING to DEBOUNCING 2. transition from DEBOUNCING to NOT DEBOUNCING Other Incorrect Match Options:Timer32 interrupttapped is true

1.JSBmodified is true 2. SWTimer expired

1. We can use Timer32 to generate a square wave with a varying duty cycle (PWM). True 2. Using PWM is an expensive, but highly effective control solution for applications such as motor speed control, oven temperature control, etc. True 3. In order to know our exact location on earth, we use an accurate measurement of time (as in GPS). True

1.T 2. F 3. T

Consider an A/D with n = 4 and Vref- = 0V and Vref+ = 4V. Assume the A/D uses the floor of the conversion formula when turning non-integers to integers. Select all correct statements. 1. here are 16 possible digital outputs. 2. If the input is 0 V, the output is 0000. 3. The voltage value of LSB is 0.25 V. 4. If the input voltage is 0.95, the output is 0011. 5. The A/D analog span is a full 4 V. 6. If the input voltage is 1.95, the output is 1000.

1.T 2. T 3. T 4. T 5. F 6. F

Which statements are true about SAR and flash converter? They are both Analog to Digital converters. True SAR is smaller but slower compared to the flash converter. True SAR is both smaller and faster than the flash converter. True

1.T 2.T 3.F

Which of these functions were written by the device manufacturer, and which were written by the application programmer? GFX_print application programmer Graphics_drawString application programmer GFX_removeSolidCircle application programmer LED_isLit device manufacturer

1.application programmer 2.device manufacturer 3.application programmer 4.application programmer

Assume the system clock driving Timer32 is 48MHz. Also, assume the following lines are used to initialize a Timer32. Timer32_initModule(TIMER32_0_BASE, TIMER32_PRESCALER_1, TIMER32_32BIT, TIMER32_PERIODIC_MODE); Assume the following lines are used to start the timer in the one-shot mode. Timer32_setCount(TIMER32_0_BASE, 6000000); Timer32_startTimer(TIMER32_0_BASE, true); How long does it take for the timer to expire after it is started?

125 ms

If the game is played seven times in a row, which randomNumbers value will be used for the 7th play?

2

What is the ratio between the smallest resistor and the largest resistor in an n-bit R-2R ladder D/A?

2

Assume in an A/D the maximum possible sampling rate is 4000 samples per second. What is the maximum possible bandwidth of a signal we can sample without distortion?

2 KHz.

In terms of seconds, how long is 2 million cycles of a processor with a clock frequency of 1MHz? Correct!

2 s

For a signal with the bandwidth of 1KHz, what is the minimum sampling rate that guarantees the sampled data is free of distortion, i.e. it is close enough to the original signal?

2000 samples per second

What is the ratio between the smallest resistor and the largest resistor in an n-bit binary-weighted ladder D/A?

2^(n-1)

What is the number of amplifiers needed in an n-bit A/D flash converter?

2^n - 1

How many resistors exist in an n-bit R-2R ladder?

2n+1

For a processor with a clock frequency of 1 GHz, how many cycles exist in 3 seconds?

3,000,000,000

Consider a processor with a system clock of 4MHz and initialization of the watchdog timer as below: WDT_A_initWatchdogTimer(WDT_A_CLOCKSOURCE_SMCLK, WDT_A_CLOCKITERATIONS_2G); How long after clearing the watchdog time it takes for the watchdog timer to reset the processor?

500 seconds

For a SAR A/D with n = 10, what is the first digital guess?

512

What is the light sensor follower address in our kit? Enter your answer as a decimal value. Hint: you need to check both the light sensor datasheet and the BoosterPack guide to see how the light sensor is configured on our board.

68

Which component is at the heart of an SPI module?

A shift-register

Consider the ADC. We would like to use the function name ADCOutofRange to be recognized as the ISR. What command achieves that?

ADC14_registerInterrupt(ADCOutofRange);

Which statement is true? An interrupt is called pending when the trigger is about to happen. For example, the timer is close to being expired. An interrupt is active when the trigger has happened. For example the timer has expired. An interrupt is active while it is being serviced. An interrupt is inactive when it is not being serviced.

An interrupt is active while it is being serviced.

Choose T/F: 1) GPS depends on timers for accurate determination of one's location on earth. T 2) Controlling the dimness of an LED light can be done using a timer. T 3) Controlling the temperature of an oven can be done using a timer. T

Answer 1:Correct!T Answer 2:Correct!T Answer 3:Correct!T

SPI is full-duplex , synchronous , and serial .

Answer 1:Correct!full-duplex Answer 2:Correct!synchronous Answer 3:Correct!serial

Choose if any of the below computer systems is working under real-time constraints or not? A small microcontroller implementing the anti-lock brake system of a car. yes A massive supercomputer which is performing DNA sequencing. no The MCU inside a joystick that handles the joystick operations. yes A laptop zipping up a large folder while the human user is anxiously waiting. no

Answer 1:Correct!yes Answer 2:Correct!no Answer 3:Correct!yes Answer 4:Correct!no

Where is the initial state declared?

App_GuessTheColor_construct

In the Guess the Color project, software timers are checked in which functions? Check all that apply. App_GuessTheColor_construct App_GuessTheColor_handleTitleScreen App_GuessTheColor_handleInstructionsScreen App_GuessTheColor_handleGameScreen App_GuessTheColor_handleResultScreen App_GuessTheColor_showTitleScreen

App_GuessTheColor_handleTitleScreen App_GuessTheColor_handleResultScreen

Where does clean up happen after the game is played?

App_GuessTheColor_initGameVariables

Where is the initial state of smallFSM declared?

Application_construct()

When the polarity of the clock is 1 and the phase of the clock is 0, what happens on the falling edge of the clock?

Both the initiator and the follower are sampling data (reading).

What is I2C used for?

Communication between chips on the same board.

In order to enable an interrupt source to "interrupt" the processor, which action is NOT needed? Enabling an interrupt enable flag that is associated with this source only. Configuring the interrupt source such that it can activate an interrupt trigger. Configuring the interrupt source to have the highest interrupt priority.

Configuring the interrupt source to have the highest interrupt priority.

In SPI, what happens if a controller needs to read a byte from the follower, but does not need to send any data?

Controller sends a dummy byte in exchange for the desired data.

Which of the following will you need to edit to complete Part B of HW6?

Correct Answer button.h button.c Correct Answer HAL.h Correct Answer HAL_refresh in HAL.c Correct Answer HAL_construct in HAL.c

What are the major components of a simple hardware timer? (check all that apply)

Correct! counter Correct Answer load register Correct Answer comparator Correct Answer prescalar

SWTimer_elapsedCycles is called when using which functionality? (Check all that apply.)

Correct! stopwatch Correct! timer Correct! percentage of time elapsed

Which resources will you refer to in order to configure TimerA? Check all that apply.

Driverlib Manual Chapter 27 MCU User Manual Chapter 19 timer_a.h

What is the name of the ISR for the UART on our kit that gets connected to the computer as we used in project 1?

EUSCIA0_IRQHandler

Consider the bit pathway from the computer to the MSP432 we discussed (using the USB cable). This is connected to P1.2 and P1.3. Which UART modules can be used with this pathway? (the Driverlib name) Check all that apply.

EUSCI_A0_BASE

The RGB LED color is updated within smallFSM.

False

You should create a separate HAL struct for each category of hardware in your project.

False

Another valid option that could have been used to compare the game color choice with the player color choice was to use the value of randomNumber.

False During the transition from INSTRUCTION_SCREEN to GAME_SCREEN, the LEDs are turned on based on the current random number value and the random number is updated in preparation for the next game, so the random number value when App_GuessTheColor_showResultScreen is called does not match what is displayed on the LEDs.

According to MSP432 (MCU) datasheet, if we would like to configure P6.5 to function as C1.2 (a comparator) what function we should use?

GPIO_setAsPeripheralModuleFunctionInputPin( GPIO_PORT_P6, GPIO_PIN5, GPIO_TERTIARY_MODULE_FUNCTION);

Which of the following correctly configures P6.0 as an analog input?

GPIO_setAsPeripheralModuleFunctionInputPin(GPIO_PORT_P6, GPIO_PIN0, GPIO_TERTIARY_MODULE_FUNCTION);

Which one is the correct formula for UCBRF where N is the division factor?

INT([(N/16) - INT(N/16)] × 16)

Which one is true about an ISR? ISR has neither input arguments nor returned value. ISR can have input arguments but no returned value. ISR can have returned value but no input arguments. ISR can have both input arguments and returned value.

ISR has neither input arguments nor returned value.

Which one is NOT true about ISR? ISR stands for Interrupt Service Register. Another name for ISR is interrupt handler. ISR is essentially a function.

ISR stands for Interrupt Service Register.

Which one is NOT true?

In SPI, it is possible that the controller and the followers sample the data at two different phases (e.g. one during high and another during low).

In our development environment including library files, starter code, etc, where can we find the names of the ISR functions?

In startup_msp432p401r_ccs.c

Which of the following paths will allow you to navigate to the DriverLib files in your project?

Includes\ti\simplelink_msp432p4_sdk_3_40_01_02\source\ti\devices\msp432p4xx\driverlib

Consider TA2, Timer_A2, which is the one that is connected to the blue LED on the BoosterPack. We would like this timer's interrupt trigger to reach the processor. What command achieves that?

Interrupt_enableInterrupt(INT_TA2_N);

Consider TA2, Timer_A2, which is the one that is connected to the blue LED on the BoosterPack. We would like this timer's interrupt trigger to reach the processor. What command achieves that? Interrupt_enableInterrupt(INT_TA2_N); Timer_A_enableInterrupt(TIMER_A2_BASE); Timer_A_getInterruptStatus(TIMER_A2_BASE); Timer_A_getEnabledInterruptStatus(TIMER_A2_BASE);

Interrupt_enableInterrupt(INT_TA2_N);

Which one is true about TA0.4?

It is connected to Pin 7 of Port 2.

Which one is NOT true about Red LED on the booster board?

It is driven by channel 0.3 of Timer_A.

Assume you have used Equation 11 of chapter 22 in MSP432 user manual and based on the values at hand in your A/D setup, you have figured that the right side of the inequality is 1ms. What can you say about the sampling speed?

It is less than or equal to 1000 samples per second.

Which statement is NOT true?

It is not possible to have more than one pending interrupt.

In an R-2R ladder, the switch that is connected to the left-most resistor (the resistor that is connected directly to the voltage source) is controlled by which bit?

MSB

~33 Mega-ohm

MSB

What does "static" mean in this declaration? volatile static bool JSBmodified;

Only functions within this file will have access to it.

The temperature sensor and the light sensor use I2C to connect the MSP432 on our kit. What signals do they share?

SCL and SDA

What communications protocol is used to communicate with the display on our Boosterpack?

SPI

How do we initialize a SW timer to wait for 8 seconds?

SWTimer_construct(8000)

Which of the following is the correct way to start the SW timer ?

SWTimer_start(&blinkingTimer);

Which register should you check to see if your TimerA is running?

TAR

When you buy a chip with an I2C interface, who decides on the I2C address used by that chip?

The chip manufacturer

Consider a processor that uses a Timer32 to generate PWM. Imagine a situation when the PWM is in the "on" cycle and the processor gets busy with another task, and therefore, is not able to change the "on" state to "off" state at the right moment. Nevertheless, the processor is not busy during the "off" cycle and switches back to the "on" cycle at the proper time. What happens to the PWM?

The duty cycle of the PWM goes higher than the desired value.

Which one is an interrupt trigger? The hardware event that initiates the interrupt A flag in the interrupt controller A button that initiates an interrupt

The hardware event that initiates the interrupt

Which of the these are true for the following configuration? Check all that apply. ADC14_configureConversionMemory(ADC_MEM0, ADC_VREFPOS_AVCC_VREFNEG_VSS, ADC_INPUT_A15, ADC_NONDIFFERENTIAL_INPUTS);

The reference voltages are set to Vss and Vcc of the board. The conversion result from the joystick X signal is being stored in buffer memory 0

Which statement is true?

There are multiple timer_A modules on MSP432 SoC and each timer_A has several OC/IC channels.

To clear the TimerA rollover interrupt, which is the correct function?

Timer_A_clearInterruptFlag(TIMER_A0_BASE);

Consider TA2, Timer_A2, which is the one that is connected to the blue LED on the BoosterPack. We would like this timer to trigger an interrupt whenever the timer rolls over. What command achieves that?

Timer_A_enableInterrupt(TIMER_A2_BASE);

Consider TA2, Timer_A2, which is the one that is connected to the blue LED on the BoosterPack. We would like this timer to trigger an interrupt whenever the timer rolls over. What command achieves that? Interrupt_enableInterrupt(INT_TA2_N); Timer_A_enableInterrupt(TIMER_A2_BASE); Timer_A_getInterruptStatus(TIMER_A2_BASE); Timer_A_getEnabledInterruptStatus(TIMER_A2_BASE);

Timer_A_enableInterrupt(TIMER_A2_BASE);

Between an A/D and D/A with the same number of bits, building an A/D is always more costly than D/A.

True

HAL_refresh and App_GuessTheColor_loop could be called in any order.

True

Robustness generally refers to the capability of a micro-controller or its software to deal with unexpected events, such as faults and loss of power.

True

Based on the information discussed on the GPIO_setAsPeripheralModuleFunctionInputPin Driverlib function and in the Pin Function Tables, what is the primary peripheral module function of pin P1.3?

UART Tx

According to the MCU datasheet, P2.2 is connected to what eUSCI module? (Recall how I found the Pin Function Table for P1.3.)

UCA1 (also called eUSCI_A1)

Which eUSCI module on MSP432 is connected to the light sensor and temperature sensor on our kit?

UCB1

How does the ISR communicate with other functions in the program?

Using global variables.

How do we clear an interrupt?

We send a command to the interrupt source to remove the interrupt.

When does a brownout situation occur?

When the operating voltage of the microcontroller drops to a point that the processor starts to make mistakes.

Review the J101 connector schematic that we looked at in class, and the J101 connector on your board. Which of the following is true?

XDSET_TXD is connected to P1.2_BCLUART_RXD when a jumper is present.

For a 10-bit SAR resolving one bit takes 1us. In other words, one round of making a digital guess, D/A conversion, comparison with the analog input and finally making a decision about the bit at hand takes 1us. How long does it take to do a complete conversion of an analog input?

always 10us.

What is a Cursor?

an enum with values 0,1,2,3

When is the Results screen drawn on the display?

as part of the App_GuessTheColor_handleGameScreen function

SAR implementation is based on what mechanism?

binary search

What is the task that any properly designed ISR should do?

clear the interrupt flag

In which of the following can you find the defined macros with which to fill your TimerA configuration struct? (Check all that apply.)

configuration function header in timer_a.h

In the egg boiling analogy discussed in the video, Step 5 is analogous to what?

dropping the egg into the water

What is the initial state of smallFSM?

green

Where is the best place to keep project variables, such as FSM states?

in an application struct

Based on our class discussion, which of these is most similar to raising your hand in class?

interrupts

How many resistors exist in an n-bit binary-weighted D/A converter?

n+1

In I2C who can create the stop condition to finish the communication?

only initiators

In addition to enabling interrupts for the relevant GPIO pins, what else needs to be done to set up GPIO interrupts?

select which edge conditions will trigger an interupt

Which one is the best application for an SPI bus?

short distances on PCB

Unlike previous projects, the LED functions are not set up in a struct. What is the reason for this?

so that you can use the LEDs to debug your ISRs

The PWM is NOT suitable for which of the below applications?

steering a self-driving car

In this project, what feature signifies your processor is asleep?

the green Launchpad LED stays lit except for fractions of a second

Consider a signal with a dynamic range of 50 mV. This means the difference between the minimum and maximum value of this signal is 50 mV. In order to feed this signal to an A/D where Vref- is 0V, Vref+ is 3V, and n = 14, it must be amplified first. Among the options below, which one is the most suitable value for the gain of this amplifier?

times 50

Where can we find the I2C follower address of the temperature sensor?

tmp0006 datasheet

What is the purpose of the changes you will make to lines 80-87 of HW6_main.c during Part A?

to test the LEDS one at a time

What device does Dr. Nazhand-Ali use to illustrate main program phases?

toothbrush

In this processor state machine, match the state transition (edge/arc) with the event that causes it. transition from ASLEEP to AWAKE any interrupt transition from AWAKE to ASLEEP finishing main_loop() Other Incorrect Match Options:SWTimer expiresButton interruptTimer32 interrupt

transition from ASLEEP to AWAKE any interrupt transition from AWAKE to ASLEEP finishing main_loop()

How many voltage thresholds are needed for a proper implementation of brownout reset?

two.

Under what conditions is it OK to use the SWTimer in this project?

when timer expiration doesn't require immediate action

Two different options for clearing the cursor were discussed. Which of these would require two separate variables, one for the previous cursor value and one for the new cursor value?

wiping only one cursor location

In a binary-weighted ladder D/A with n = 8, if the resistor attached to MSB is 256 kilo-ohm, what is the resistance of the resistor connected to LSB?

~33 Mega-ohm


Ensembles d'études connexes

Ch 11: Assignment - Planning for Health Care Expenses

View Set

AP Art History Content Are 4 Exam Review

View Set

chapter 14: typical receiving procedures

View Set

Linux and Hacking - Common Commands and Memorize-Me's

View Set

Human Nut MC Exam Questions W7-13

View Set

Chapter 7 Climate and Biodiversity

View Set