Question: Software Requirements ( B ) : Develop a C program to achieve the following functionalities: 1 ) At startup, both LED 1 and LED 2

Software Requirements (B): Develop a C program to achieve the following functionalities: 1) At startup, both LED1 and LED2 should be turned on.2) Pressing SW1 generates an edge-triggered interrupt on PC2. Within the ISR, LED1 toggles once, leaving LED1 unaffected. Releasing SW1 doesn't produce any interrupt or LED changes. 3) Pressing SW2 triggers an edge-triggered interrupt on PC3. The ISR toggles LED2 once, leaving LED1 unaffected. Releasing SW1 doesn't produce any interrupt or LED changes. ENGR 478 In essence, your responsibilities include designing push-button switch and LED circuits using both positive and negative logic and implementing edge-triggered interrupts on GPIO pins. This involves configuring NVIC, EXTI, and SYSCFG module registers and developing the appropriate ISRs.

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 Electrical Engineering Questions!