Question: (20 pts.) (10 pts.) Given the following initialization code: TIMER_A2->CTL |= 0x0294; TIMER_A2->CCTL[2] |= 0x0080; TIMER_A2->CCR[0] |= 999; TIMER_A2-> CCR[2] |= 902; P5->SEL0 |= 0X80;
- (20 pts.)
- (10 pts.) Given the following initialization code:
TIMER_A2->CTL |= 0x0294;
TIMER_A2->CCTL[2] |= 0x0080;
TIMER_A2->CCR[0] |= 999;
TIMER_A2-> CCR[2] |= 902;
P5->SEL0 |= 0X80;
P5->SEL1 &= ~0X80;
P5->DIR |= 0X80;
Identify the following:
Timer mode: ___________________________
Output mode: __________________________
TOP value: ______________________
prescale = _______
Output frequency : ___________________
Output duty cycle (if applicable): ___________
- (10 pts.) Given the following initialization code:
TIMER_A2->CTL |= 0x0274;
TIMER_A2->CCTL[2] |= 0x00E0;
TIMER_A2->CCR[0] |= 499;
TIMER_A2-> CCR[2] |= 99;
P5->SEL0 |= 0X80;
P5->SEL1 &= ~0X80;
Identify the following:
Timer mode: ___________________________
Output mode: __________________________
TOP value: ______________________
prescale = _______
Output frequency : ___________________
Output duty cycle (if applicable): ___________
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
