Question: Problem 1 7 : ( 3 5 points ) In Figure 1 , the user can tune the LED intensity through an incremental rotary encoder.
Problem : points
In Figure the user can tune the LED intensity through an incremental rotary encoder. This rotary encoder is designed to generate counts per revolution. Within this configuration, the dsPICEPMC microcontroller monitors the rotary encoder's rotation by employing the modulo counter mode of the quadrature encoder interface module. A single complete clockwise rotation of the encoder shaft sweeps the duty cycle over its full range from to
points Specify the peripheral pins to which the QEA and QEB are connected. Justify your answer in one or two short sentences.
points Add the comments for lines and
points Determine the peripheral pin to which the LED output is connected. Justify your answer in one or two short sentences.
points Modify the code so that two complete clockwise rotations of the encoder shaft sweep the duty cycle from to Clearly identify the lines that require modification in Figure using the line numbers and provide corresponding modified code, along with a brief justification for each change.Figure : C code for Problem
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
