Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions