Question: Write a embedded C code for denigning the control loop syntem for glowing the LED ( Red , Green, Blue ) using the user switche.

Write a embedded C code for denigning the control loop syntem for glowing the LED (Red,
Green, Blue) using the user switche. When the SW1 is closed, the Green LED stay on and the
RED will blink. When SW1 is open, the Green LED will blink and the Red stay on. Whale
writing the program make sure you should follow given points:
Specific bit addressing must be needed
Must use bitwise and shift operator
For the above problem following register addresses (base and offet) with specific bit to be net
ns show below:
Clock Gating register Base: 0x400FE000 offset: 608 bit to set is 5 for PORT F
PORT F Direction register address: 0x40025400
PORT F Digital Enable register address: 0x4002551C
GPIODATAF Register set the particular pin Base: 0x40025000
 Write a embedded C code for denigning the control loop syntem

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!