Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

what code should go in line 32 and 36 BranchingFunctionsDelays.c startups 1 // Branching Functions Delays.c Lab 6 2 // Runs on IMF 120/TM4C123 3

what code should go in line 32 and 36 image text in transcribed
BranchingFunctionsDelays.c startups 1 // Branching Functions Delays.c Lab 6 2 // Runs on IMF 120/TM4C123 3 // Use simple programming structures in c to 4 // toggle an LED while a button is pressed and 5 // turn the LED on when the button is released. 6 // This lab will use the hardware already built into the LaunchPad. 8 9 10 11 12 // built-in connection: PFO connected to negative logic momentary switch, Sw2 // built-in connection: PFL connected to red LED // built-in connection: PE2 connected to blue LED // built-in connection: PF3 connected to green LED // built-in connection: PF4 connected to negative logic momentary switch, SWI 23 14 //include "Texas. 15 16 17 18 19 20 21 22 23 #define GPIO PORTE DATA R define GPIO PORTE DIR R define GPIO PORTE AFSEL R #define GPIO PORTE PUR R define GPIO PORTE DEN R define GPIO PORTE AMSEL R define GPIO PORTY PCTLR #define SYSCTL RCGC2 R #define SYSCTL RCGC2 GPIOE (( [volatile unsigned long *) 0x400253FC)) volatile unsigned long *) Ox10025400)) (((volatile unsigned long *) Ox40025420)) (*((volatile unsigned long *)0x40025510) ) (((volatile unsigned long *) 0x4002551C)) (((volatile unsigned long *) Ox 40025528)) (((volatile unsigned long ) Ox 40025520) ) (((volatile unsigned long )0x400FE108)) Ox00000020 // port Clock Gating Control // basic functions defined at end of startup.3 //void Disable Interrupts (void); // Disable interrupts //void Enable Interrupts (void); // Enable interrupts 25 26 27 28 29 30 31 32 int main(void) (unsigned long volatile delay: // Texas Init (SH PIN PY4, LED PIN PY2): // activate grader and set system clock to 30 MHz // initialization goes here 33 // enable interrupts for the grader 35 36 37 38 39 L // Enable Interrupts(): while (1) // body goes here ) )

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

7. I get bored.

Answered: 1 week ago