Questions: 338

Answers by our Experts: 279

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write an application by using TIMER 2 to produce square wave of 500Hz, 1Khz, 2Khz, 4Khz on 4 different


output channels

Send data from microcontroller to your PC through UART.


Data = “Hello!! Please select the appropriate number


1. Display current clock


2. Input initial parameters of clock


3. Blink LED”


You have to configure RTC in your microcontroller using low speed external clock of 32.768Khz. Data


transmission in UART should be done using polling. Receiving data should be done using interrupt. Write


corresponding ISR for all cases based on the option.




Question 2:




Create a DFA D to recognize all strings of 0’s and 1’s representing binary numbers divisible by three.





Assume the binary string 0 represents the number 0, 1 represents 1, 00 represents 0, 01 represents 1, 10 represents 2, 11 represents 3, and so on. Also, assume the empty string represents the number 0.





Also, assume that D has the following properties:





A finite set of states Q = {A, B, C}




The input alphabet Z = {0, 1}




Start state A




The set of final states F = {A}




State ‘A’ represent all prefixes of binary strings that are Congruent to 0 mod 3, State ‘B’ all prefixes congruent to 1 mod 3, and State ‘C’ all prefixes congruent to 2 mod 3.




a) Draw the DFA D (the state diagram for DFA D)




b) Define the transition table for DFA D




c) Show the DFA D processing the string 1001





d) Prove that the language defined by DFA D is the set of all binary strings representing integers divisible by three.

Write a program in assembly language to swap two variables.


Create an array of 150 items of type Word, leave the all the values uninitialized.



WRITE A PROGRAM ON EMU 8086

Create an array of 50 items of type Byte, assign value 50 to all of the Bytesin memory using Dup.


Write a Program that stores the marks of students in AL, and displays the grade of the student

Marks < 60 Fail

60 ≤Marks ≤ 69   C.

70 ≤Marks ≤ 79   B.

80 ≤Marks ≤ 89   B.

90 ≤Marks ≤ 100 A.


Write a program IN EMU 8086


Write a program that swaps two numbers if A > B.

AL = 10101111b BL = 00001010b TEST AL, BL; Status of FLAGS =?

Example: Determine whether a character is uppercase or lowercase.

Example: Checking a sign or value:

Example: Determine whether a number is even or odd. 


Statement | Destination Content Status Flags

| Before | After OF DF IF SF ZF AF PF CF

MOV AX,NUM1 |

AND AX,0FFDFH |

OR AL,20H |

XOR NUM1,0FF00H |

NOT NUM2 |

XOR AX,AX |

MOV AX,NUM1 |

AND AX,0008H |

XOR AX,0080H  |


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS