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

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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