3. True or false. The ATmega328 has 6 PWM input pins. Answer . True or false. Al
ID: 2249192 • Letter: 3
Question
3. True or false. The ATmega328 has 6 PWM input pins. Answer . True or false. All 6 PWM pins of ATmega328 pins of PORT C Answer 5. True or false. In Fast PWM and Phase correct PWM modes, we can change the duty cycle Answer 6. True or false. For S-bit timers, in Phase correct PWM mode, the period is 510 clocks Answer 7. True or false. In Fast PWM, phase does not change when the duty cycle is changed. Answer 8. True or false. We can associate each of the pins with each of the waveform generators Answer 9. True or false. In PWM modes (Fast PWM and Phase correct PWM) we can change the duty cycle of the generated wave. Answer Questions 10-12 refer to the program below, which monitors the status of the switch and perform the following: (a) If PORTA.7-1 the DC motor moves with 25% duty cycle pulse, (b) If PORTA-7-0, the DC motor moves with 50% duty cycle pulse. Line A: #include-avrioh" Line B: int main() Line C: f Line D: DDRB-0x08 Line E: PORTA-0x80; Line F· TCCRO-Ox73; //Phase corrected PwM. 0. Which timer is used by the program? Answer: W inverted, n 64 11. In the comment for line F, what does "n-64" mean? Answer Line G: while (1) Line H: Line I Line J: Line K: Line L: Line M: Line N: switch ((PINA&Ox80;)) case 0: OCRO 64; break case I: OCRO- 127; break; 12. In Line K, why 0CRO-64" (where does the value 64 come from?) Line O: ine P: return 0: Answer:Explanation / Answer
3.False
Reason:
The Atmega328 has total of 28 pins .Out of which 14 are digital I/O pins, of which 6 pins can be used as PWM outputs and 6 pins as analog input pins.
So the 6 PWM pins are output pins not input.Hence false
4.False
Reason: As all pins of port C are used as analog input not as PWM pins. 3pins of port B i.e.PB1,PB2,PB3 and 3 pins of Port D i.e PD3 ,PD5, PD6 are used as PWM pins
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.