Free Essay

Ecet 340 Week 6 Homework 6

In:

Submitted By uoptutors3
Words 349
Pages 2
ECET 340 Week 6 Homework 6

To Buy This material Click below link

http://www.uoptutors.com/ecet-340-devry/ecet-340-week-6-homework-6

1. What are the four main functions of the HC12 Timer unit?
2. Two input capture events occur at counts 0×1037 and 0xFF20 of the free-running counter. How many counts (in decimal) have transpired between these two events?
3. What is the maximum time possible before the free-running counter overflows when the e MHz?
4. Two input capture events occur at 0×1037 and 0x002A. If the prescaler bits PR[2:1:0] are set to 101 and the e clock is 24 MHz, how much time as transpired between the two events?
5. Calculate the count that should appear in the timer capture register TC0 if a 125 kHz rectangular wave is inputted on timer pin PT0 while TCTL4 is preset for falling edge detection. Assume a 24 MHz e-clock, TMSK2 was programmed with the value $02, and the count of the 1st edge event has already been subtracted off from TC0.
6. Write down the name of the HC12 timer register that should be polled through software to determine whether or not an active input edge has been captured on one of the port T pins.
7. What is the duty cycle of a signal produced by the PWM when and ?
a. 28.0% b. 29.8% c. 50.0% d. 72.0%
8. What values are required for period and duty cycle to generate a 6.0 kHz, 95% duty cycle waveform using the PWM function? Assume e-clock frequency is 24 MHz.
9. What is the slowest clock signal that can be generated from the PWM output using the 16-bit counter mode with pre-scaling and scaling? Assume e-clock frequency is 24 MHz.
10. Write down the C statements needed to program PWM channel 0 to output a 12.5 kHz left-aligned wave with 30% duty cycle. Assume e-clock frequency is 24 MHz.

For more Assignments visit
http://www.uoptutors.com

Similar Documents

Free Essay

Ecet 340 Week 6 Homework 6

...ECET 340 Week 6 HomeWork 6 Purchase here http://devrycourse.com/ecet-340-week-6-homework-6 Product Description 1. What are the four main functions of the HC12 Timer unit? 2. Two input capture events occur at counts 0x1037 and 0xFF20 of the free-running counter. How many counts (in decimal) have transpired between these two events? 3. What is the maximum time possible before the free-running counter overflows when the e MHz? 4. Two input capture events occur at 0x1037 and 0x002A. If the prescaler bits PR[2:1:0] are set to 101 and the e clock is 24 MHz, how much time as transpired between the two events? 5. Calculate the count that should appear in the timer capture register TC0 if a 125 kHz rectangular wave is inputted on timer pin PT0 while TCTL4 is preset for falling edge detection. Assume a 24 MHz e-clock, TMSK2 was programmed with the value $02, and the count of the 1st edge event has already been subtracted off from TC0. 6. Write down the name of the HC12 timer register that should be polled through software to determine whether or not an active input edge has been captured on one of the port T pins. 7. What is the duty cycle of a signal produced by the PWM when and ? a. 28.0% b. 29.8% c. 50.0% d. 72.0% 8. What values are required for period and duty cycle to generate a 6.0 kHz, 95% duty cycle waveform using the PWM function? Assume e-clock frequency is 24 MHz. 9. What is the slowest clock signal that can be generated from the PWM output...

Words: 1661 - Pages: 7