Write a c function to configure pd4 pin

Assignment Help C/C++ Programming
Reference no: EM132694499

Part 1. Choose the best answer
( ) 1. Duty cycle is defined to be the percentage of time within a period that the waveform is high. Assume that the TIM5->ARR holds 1000 and the TIM5->CCR4 holds 600. What is the duty cycle of the TIM5_CH4 pin output? (a) 60% (b) 50% (c) 40% (d) 80

( ) 2. Suppose a timer is counting with a 10 MHz clock, what is the timer count to create a time delay of 7 ms? (a) 10,000 (b) 70,000 (c) 30,000 (d) 7,000

( ) 3. What instruction can put the ARM processor in sleep mode and needs an interrupt to wake up the processor? (a) WFI (b) WFE (c) CPSIE I (d) CPSID I

( ) 4. In the SPI interface, how to send out a frame? (a) write the data frame into the SPIx->DR register (b) read from the SPIx->DR register (c) write the data frame into the SPIx->CRI register (d) write the data frame into the SPIx->CR2 register

( ) 5. For the MCP4922 DAC, if the gain is set to 1 and the reference voltage is set to 5 V, what value (the lower 12 bits to be sent) can generate 3 V output? (a) 2000 (b) 1000 (c) 1457 (d) 2457

( ) 6. Suppose the frequency of the clock input is 80 MHz and you write 7, 1000 into the TIM2->PSC, TIM2->ARR register and also select center-aligned PWM mode 1, what is the resultant frequency of the PWM waveform? (a) 10-KHz (b) 5-kHz (c) 2-KHz (d) 1- KHz

( ) 7. An interrupt which is preempted is (a) inactive (b) pending (c) active (d) reset

( ) 8. For exception tail-chaining to occur, which of the following must exist? (a) no pending interrupt (b) there is a preempted interrupt (c) there is a pending interrupt with enough priority (d) there are pending interrupts that do not have enough priority

( ) 9. IF the output compare match for TIM5 channel 4 occurred, the which of the following flag in the TIM5->SR register will be set? (a) UIF (b) CC4IF (c) CC4OF (d) TIF

( ) 10. Which of the following modes is best for measuring the period and pulse width of a signal? (a) PWM mode 1 (b) PWM mode 2 (c) input capture (d) PWM input mode

1. Write a C function to configure PD4 pin to interrupt the CPU on the falling edge and also enable the interrupt. Fill in the appropriate statements between { and }. Solution: void initPB2lnterrupt (void) {}

Reference no: EM132694499

Questions Cloud

Discuss whether Bev is behaving in a professional manner : Bev also instructed the programmer to use a 360-day year to compute interest on loans (assets). Discuss whether Bev is behaving in a professional manner
Compute the forward earnings multiple : The dividend payout ratio for the aggregate market is 65 percent, the required rate of return is 13 percent, and the expected growth rate for dividends is 8 per
Continue to grow and learn throughout career : Effective teachers continue to grow and learn throughout their career. How do you plan to continue growing in your practice and utilize district, academic,
Calculate the variances for x and y : Use the following returns for X and Y. Calculate the variances for X and Y.
Write a c function to configure pd4 pin : Write a C function to configure PD4 pin to interrupt the CPU on the falling edge and also enable the interrupt. Fill in the appropriate statements
Find standard deviation of the nominal market returns : The following table shows the nominal returns on U.S. stocks and the rate of inflation.
Do have a duty to verify : Your Client states they donated $90,000. This amount is 80% of her take home income. Do you have a duty to verify? Explain in detail and provide the calculation
Job shadow experience : Write a short reflection of your job shadow experience and include the following in this reflection: What did you like the best about this job/career?
What is the breakeven price for investor : "...Facebook said that it paid $19 billion to buy messaging company WhatsApp. Shares rose 2.3%to $69.93 on Thursday

Reviews

len2694499

11/11/2020 10:24:47 PM

Can this be done under 1hr ,it is timed.Using the same technique as my previous assignment for the program part

Write a Review

C/C++ Programming Questions & Answers

  What is the importance of creating your own data types

What is the importance of creating your own data types? What are the benefits and drawbacks from developing your own data types?

  Accomplish the preceding task

However, the customer details maintenance application crashed as Dwayne mistakenly entered the wrong file path. Therefore, he asks Elina to modify the application so that it does not crash due to similar errors. Modify the code that Elina needs to ..

  Use a define statement to create a constant

Follow these specifications: Use a define statement to create a constant that will hold your student number. You should have separate string variables for your first and last name; name these first_name and last_name.

  Design a class called complex

Design a class called Complex. The class enables operations on so called complex numbers. These are numbers of the form realPart + imaginaryPart *i, where the i has the value

  Flipflapsthe project is to design and write a c 11fltk game

flipflapsthe project is to design and write a c 11fltk game program with a graphical user interface.the game is based

  Write a program that will read in 2 numbers per line

1.Write a program that will read in 2 numbers per line, and print the sum. You program should work for any number of lines of data.

  Write a program that opens a file and counts the whitespace

Write a program that opens a file and counts the whitespace-separated words in that file - The program opens its own source file and read the number of words

  Replace the algorithm used in the current solution

Replace the algorithm used in the current solution by one that runs twice as fast and run it on the current technology, or

  Write a program that allows users to enter a dollar amount

Write a program that allows users to enter a dollar amount for their bank account balance at the beginning of the month. Then ask the user to enter a dollar amount for any number of checks written in a month, up to 50. Include an approriate sentinel ..

  Determine which customers must be served

Write a program to determine which customers must be served from each field stations.

  Program that opens a file representing an encoded maze

Write a C++ program that opens a file representing an encoded maze and reads it in properly so it can be analyzed.

  Create a figure command interface with one method

Other objects can traverse an Array List by invoking the list's iterator method, which returns an Iterator. Such an Iterator is used quite a few times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd