Question: Produce 5 different frequencies using only one timer and output them on different pins of a parallel port. These frequencies ( time intervals ) will
"Produce different frequencies using only one timer and output them on different pins of a parallel port. These frequencies time intervals will be and times the given frequency. The frequencies will be generated using the timer; they will not be produced using a table, and interrupts will be used for this task. Timer modes or can be used. For this task, choose a base frequency time interval which is or times the given frequency or choose a value greater than for finetuning Create an interrupt for the base frequency time interval Based on this time interval, assign a separate counter and threshold value separate memory addresses for each frequency for the different frequencies time intervals specified in the assignment. These counters will be incremented by the base frequency. When each of these counters reaches a threshold value, the polarity of the port pin logical or will be changed. Since there are different frequencies, different port pins and different memory areas will be used. Thus, with the interrupt from the base frequency, each counter will be incremented, and when the counters reach the specified threshold values, the polarity of the port pins will be changed to achieve the required frequencies. In this case, the port pin's polarity to ; to will be changed. For each frequency, you need to find a separate threshold value considering the base frequency.
a Draw the flowchart of the algorithm.
c Write the algorithm in assembly code." for this question I have a solution that does not use interrupts "MOV TMOD, #H
HERE: MOV TL #H
MOV TH #FCH
CPL P
ACALL DELAY
MOV TL #CCH
MOV TH #FCH
CPL P
ACALL DELAY
MOV TL #H
MOV TH #FDH
CPL P
ACALL DELAY
MOV TL #H
MOV TH #FDH
CPL P
ACALL DELAY
MOV TL #CH
MOV TH #FDH
CPL P
ACALL DELAY
SJMP HERE
DELAY: SETB TR
AGAIN: JNB TF AGAIN
CLR TR
CLR TF
RET
END" please solve the question for a random hz value and tell what you have chosen
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
