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 a program that takes two 2-D matrixes A and B. Add value of the matrixes and store it in different matrix called C. NB: Implement the above problem inside Main Procedure.


Write a assembly program that takes two 2-D matrixes A and B. Add value of the matrixes and store it in different matrix called C. NB: Implement the above problem inside Main Procedure.


Write a programs for  PIC16F84A 

The CPU will execute two tasks in parallel. First task will be a normal program Execution loop which continuously tests an active-low switch connected to RB3. When switch is pressed, an active-high LED connected to RB4 will turn on for 1 sec (using software delay). Any switch presses while the LED is on will not be detected as the CPU is busy in the 1 sec software delay. After delay and the LED is turn off, CPU will return to testing the active-low switch. The second task will be toggle an active-high LED connected to RA1 every 0.25 sec. Timer0 will be configured to generate an interrupt every 0.25 sec, and the code to toggle LED will be placed in ISR. Timing accuracy requirements is ±1% using 800 kHz RC oscillator.

this subject is under engineering electrical but also in assembly code.

this are under engineering electrical subject but also write in assembly code


(a) The CPU will execute two tasks in parallel. The first task will be a normal program Execution loop which continuously tests an active-low switch connected to RB3. When the switch is pressed, an active-high LED connected to RB4 will turn on for 1 second (using software delay). Any switch presses while the LED is on will not be detected as the CPU is busy in the 1 second software delay. After the delay and the LED is turned off, CPU will return to testing the active-low switch. The second task will be to toggle an active-high LED connected to RA1 every 0.25 seconds. Timer0 will be configured to generate an interrupt every 0.25 seconds, and the code to toggle the LED will be placed in the ISR. Timing accuracy requirements is ±1% using 800 kHz RC oscillator.

 

(b) Modify the program of Q5(a) such that another active-low switch connected to RB0 will toggle an active-high LED connected to RB7 immediately when pressed, although the CPU is busy in the 1 second software delay at the moment.

[Hint: Use the external interrupt capability on RB0/INT pin to detect this switch press. The interrupt should be on falling edge of RB0/INT pin. ]

Write complete programs for PIC16F84A :

The CPU execute two tasks in parallel. First task will be a normal program Execution loop which continuously tests an active-low switch connected to RB3. When the switch is pressed, an activehigh LED connected to RB4 will turn on for 1 sec (using software delay). Any switch presses while the LED on will not be detected as the CPU busy in the 1 sec software delay. After the delay and the LED is off, CPU will return to testing the active-low switch. The second task will be to toggle an active-high LED connect to RA1 every 0.25 sec. Timer0 will be configured to generate an interrupt every 0.25 sec, and the code to toggle LED will be placed in the ISR. Timing accuracy requirements is ±1% using 800 kHz RC oscillator.

this subject is under engineering electrical but also in assembly code.

1. Write complete programs for the PIC16F84A to perform the following tasks using TMR0:

Count the number of pulses fed into the T0CKI pin, display the count on PORTB, and set the RA3 bit when the count reaches the decimal value of 100. The count will be continuously displayed on PORTB after setting the RA3 bit.

this subject is under engineering electrical but also in assembly code.

1. Write complete programs for the PIC16F84A to perform the following tasks using TMR0:

 

Generate a 500 Hz (±1% timing accuracy) square wave with 25% duty cycle at RB3, given FOSC = 4 MHz.

Consider yourself as a computer architect, and you are employed in a vendor company. The company told you that they are going to design a new 16 bit RISC type of CPU. As an ISA designer, your job is to propose a detailed design of the ISA. Note that your ISA must be based on what instructions you were given and in which order they were given.

  1. nop
  2. addi
  3. and
  4. slt
  5. lw
  6. beq
  7. add
  8. sll
  9. jmp
  10. sub
  11. sw

Write an assembler program that converts the first four binary bits connected to port A and store the converted number in the register 24 and converts the last four binary bits connected to port A and store the converted number in the register 22. Your application should perform the following:

3.1. If the number is register 24 is even , substract the number stored in 24 by the number stored in 22 and store the difference in register 24. If the difference is positive multiply the by 10 and stored the result.

3.2. If the number is register 24 is odd , add the number stored in 24 by the number stored in 22 and store the sum in register 25. If the sum is above 45, divide the number stored in register 25 by 3 and store the result in 26h.

Test your code using the last 2 numbers of your student number connected to Port A.


Create a calculator which could do the following operations. Such as

i)          Addition and subtruction of two single digits

ii)                 Other than this it could say whether the single digit is Odd or Even.

iii)         Put 2 single digits and say whether 1st number is greater than 2nd number, less than 2nd number or equal.


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS