Home / Expert Answers / Computer Science / change-the-c-code-to-assemply-and-drow-a-flowchart-unsignedcharvar-0-void-delayhs-un-pa213

(Solved): Change the C code to assemply and drow a flowchart unsignedcharvar=0: void delayHS (un ...



student submitted image, transcription available below

Change the C code to assemply and drow a flowchart

student submitted image, transcription available belowstudent submitted image, transcription available below
void delayHS (unsigned int timerS) void delayHS (unsigned int imerS) f unsigned int cntr, entr2: \} for ( cotro0; cntr void main (void) vhile( 1 ) \{ for : delayHS (1) ; if f delayMS (100): ? \} : delayHS (1): if \{ delayMS ( 10 ?) ; \} \} \} \} Look at the examples on the EDSIM51 website. Modify the Ramp Signal on the DAC Output example to produce the following waveform: Set update frequency to 5 as shown below. You need to use a suitable step-size value, e.g., from 5 to 15 . This step-size value shortens the time period of the waveform you are generating. Q1. Start by adjusting the step-size of the increments in the Ramp Signal on the DAC Output example. Q2.Add another block of code that makes the waveform ramp down after it reaches the maximum amplitude. Q3. Add the required parts that make the waveform to always level off near the middle of th amplitude while ramping up and down. Use 60 machine cycles for the steady time when the waveform levels off.


We have an Answer from Expert

View Expert Answer

Expert Answer



let's translate this C code into Assembly code for an 8051 microcontroller:


C code: ; ; void delayMS...
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe