(5) Write a program to create a sq uare wave of60% duty cycle on bit 1...
Create a square wave of 75% duty cycle on bit4 of port 2 by writing an assembly language programi ior 8051 microcontroller. Also, determine the frequency of the square wave if the delay routine given in problem 2 is used in this program. 5. 20 pts. Create a square wave of 75% duty cycle on bit4 of port 2 by writing an assembly language programi ior 8051 microcontroller. Also, determine the frequency of the square wave if the delay routine...
write down the pseudocode to generate a 200μs period square wave with a 25% duty cycle. You do not need to write any Assembly, just explain the method you would use to generate this type of square wave. 3,
04. a) Write an 8051 C program to send values 00 through FFH to port Pl. b) Write an 8051 C program to send values -3 to +3 to port P1. c) Write an 8051 C program to toggle all bits of P1 (between 55H and AAH) with some delay d) A door sensor is connected to P1.1 and a buzzer to P1.7. Write an 8051 C program to monitor the sensor and when it opens (0') sound the buzzer...
Write a program that implements an elementary bit stream cipher. An elementary level bit stream cipher is an encryption algorithm that encrypts 1 byte of plain text at a time. This one uses a given 4-bit bit pattern as the key. The size of the encrypted message that we want to be able to send has a maximum length of 200 characters. You must: 1. prompt the user to input the clear text to be encrypted. You must use printf()...
2. A digital clock signal is basically a square wave signal with 50% duty cycle. The frequency of the clock can be anything as needed by the digital circuit that is using it. Clock is used for timing and synchronization of digital circuits. Many times, there is a requirement to slow down the frequency of clock to a certain level and this can be done using clock frequency dividers EE200 Digital Design Laboratory Manual (reducing the frequency of clock or...
Using uVison: Write a C program that generates a 1 second square wave on Pin 2 Port B. Using generated signal from that Pin 2, as an input to Pin 3 Port B drive the red LED at the same rate and the Blue LED at half the rate of the Red LED.
and then print their average. Write a C program that accepts a string of text from the user and prints back the string without any of the vowels. For example, if the user entered "Hello, world", the program should print "Hll, wrld" Write a C program that accepts an integer in decimal from the user and prints the number of 1' bits in the integers binary representation. For example, if the user entered 14, the program should print 3 because...
Create an algorithm to count the number of 1’s in a 32-bit number. Implement the program in a high level language like C or Java. It does not need to run for me, but the code should be included in a text document called FirstnameLastnameHLA3.txt along with your assignment submission. Implement the program in MIPSzy Assembly language. Use the high level code as comments to the right of the Assembly code as the textbook does. If you write that MIPSzy...
Write a program for a 2-bit multiplier in assembly language. Also, multiple 01 and 10 and show the output in the program. Review the pipeline table and suggest changes to improve the performance. Output: Assembly language code with screenshot of the output. Also mention/highlight the cycle count for the complete program. The cycle count should be optimized for performance improvement. Also, display pipeline table with 3-4 suggestion for improvements FOR RISC-V using RIPES simulator
Question 7 (a) Write a C program that performs the following tasks: 1. Create a text file to store a list of numbers. 2. Read a number entered by a user and store it into the text file until a negative number is entered. (b) Write a C program that performs the following tasks: 1. Open the text file that contains a list of numbers. 2. Print the list of numbers stored in the text file on the screen.