# ECET 365 Week 6 Quiz

July 6, 2015  |  By  |

For more course tutorials visit www.uoptutorial.com 1. Question : (TCO #6) How many 16-bit PWM channels are available in the Freescale 9S12DG256 microcontroller? Student Answer: Two Four Seven Eight Comments: 2. Question : (TCO #6) When concatenating the two 8-bit PWM Channels 3 and 2 to get a 16-bit PWM channel, _____ becomes the low-order byte. Student Answer: Channel 7 Channel 2 Channel 5 Channel 3 Comments: 3. Question : (TCO #6) To enable Channel 7 of the PWM to 9S12DG256, which of the following must be done? Student Answer: Set PWME7 = 1 Set PWME7 = 0 Set CAE7 = 1 Set CAE7 = 0 Comments: 4. Question : (TCO #6) What is Clock SA when PWMSCLA = 0x01 and Clock A = 4MHz? Student Answer: 5MHz 4MHz 8MHz 2MHz Comments: 5. Question : (TCO #6) What is Clock SA when PWMSCLA = 0x00 and Clock A = 8MHz? Student Answer: 8MHz 15625Hz 8MHz 31250Hz Comments: 6. Question : (TCO #6) A bus clock is set to 4000 kHz. What is the Clock A’s value if PWMPRCLK = 0x02? Student Answer: 1MHz 3MHz 2MHz 8MHz Comments: 7. Question : (TCO #6) In case of center-aligned PWM, which formula can be used for the duty cycle of the output waveform? Student Answer: Duty Cycle = [(PWMPERx - PWMDTYx) / PWMPERx] * 100% Duty Cycle = [PWMDTYx / PWMPERx] * 100% Duty Cycle = PWMDTYx 100% Both A or B (depends on PPOLx) Comments: 8. Question : (TCO #6) In case of center-aligned PWM, which formula can be used for the PWM frequency? Student Answer: PWMx frequency = Clock (A, B, SA, or SB) / PWMPERx PWMx frequency = Clock (A, B, SA, or SB) / (2 * PWMPERx) PWMx frequency = Clock (A, B, SA, or SB) / (4 * PWMPERx) PWMx frequency = Clock (A, B, SA, or SB) / (3 * PWMPERx) Comments: 9. Question : (TCO #6) Current passing through a wire creates an electromagnetic field that _____. Student Answer: loops around the wire is directly proportional to the amount of the current flowing inside the wire is strongest closer to the wire satisfies all of the above answers Comments: 10. Question : (TCO #6) PWM channels of a microcontroller are designed for control of a _____. Student Answer: servo motor AC motor stepper motor None of the above

Page 1 / 3