Question: Not for a grade, just need help with the steps and thought process for the answers given. 1. When the switch is open, what is

Not for a grade, just need help with the steps and thought process for the answers given.

Not for a grade, just need help with the steps and thought

1. When the switch is open, what is the duty cycle of L2? Answer: 50%

2. When the switch is closed, what is the flashing frequency of L1? Answer: 2 Hz

3. When the switch is closed, what is the duty cycle of L0? Answer: LED does not flash

4. When the switch is open, what is the flashing frequency of L2? Answer: 25 Hz

5. When the switch is open, what is the flashing frequency of L1? Answer: 50 Hz

void setup () PORTC_PCR5PORT_PCR_MUX (0x1); PORTC_PCR4PORT_PCR_MUX (0 x1); PORTC-PCR3 = PORT-PCR-MUX(0x1); PORTC_PCR2PORT_PCR_MUX (0x1); C5 C4 C3 L2 L1 0 GPIOC_PDDR 0x70; GP10C-PDOR&~0x70; //bit-wise N T void loop () static uint8_t count = 0; i f (GPIOC_PDIR & 0x4) 1 0x10; //bit-wise XOR GP10C-PDOR- delay (10); GPIOC_PDOR0x30 // bit-wise XOR delay (10); C2 else +count; GPIOC_PDOR 0x18; if(count-5) { // GP10C-PDOR &~0x18; count 0 bit-wise NOI. +3.3V delay (100)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!