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 SW is closed, the Green LED stay on and the
RED will blink. When SW 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: xFE offset: bit to set is for PORT F
PORT F Direction register address: x
PORT F Digital Enable register address: xC
GPIODATAF Register set the particular pin Base: x
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
