Answered step by step
Verified Expert Solution
Question
1 Approved Answer
a ) Given the circuit, explain how DDRL should be initialised. ( 2 marks ] b ) Assume DDRL has been initialised correctly, write the
a Given the circuit, explain how DDRL should be initialised.
marks
b
Assume DDRL has been initialised correctly, write the code to: i
Turn ON LEDO and LED only.
Turn OFF LED and LED only.
marks
marks
ii Turn OFF all LEDs at the beginning, check the switch and:
Create a blinking LED at pin PLLED every ms when the switch is open.
Turn on LED delay ms then turn on LED when the switch is closed.
Explain your code.
marks
c
Assume DDRL has been initialised correctly, fill in the blank space in the following program to produce a Hz duty cycle signal on LEDO:
int
mainvoid
DORL
I
However you initialised it above
PORTLI
x;
PORTL &xF; while
PORTL
S
delay ms
D:
PORTL
deaay ms
Explain your code.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started