Questions
Questions is about PLC Project. 13.2 Expand on Installation Acceptance Testing, ie: when and what would...

Questions is about PLC Project.

13.2 Expand on Installation Acceptance Testing, ie: when and what would you expect to be doing / checking.

13.3 Expand on Start-Up Testing , ie: when and what would you expect to be doing / checking.

In: Electrical Engineering

Assignment Instructions: 1) The Factorial The factorial of a non-negative integer ??, denoted by ??!, is...

Assignment Instructions:

1) The Factorial

The factorial of a non-negative integer ??, denoted by ??!, is the product of all positive integers less than or equal to ??. The textbook has an example of a recursive MIPS implementation of factorial. Additionally, a simplified version of the MIPS assembly language recursive implementation of the factorial function is attached. Trace the factorial example carefully using QTSPIM

2) Recursive definition of multiplication

The function ??????????(??, ??) for two positive integers 1 ? ??, and 1 ? ??, is defined as the following:

??????????(??, 1) = ??; ??????????(??, ??) = ?? + ??????????(??, ?? ? 1)

Write a recursive version of ??????????() in C or C++ and a pseudo C program (based on chapter 2 in the book) then use these programs to develop a MIPS program that gets as input two integers 0 < ?? ? 255, and 0 < ?? ? 255, and returns the result of ??????????(??, ??) in $v1.

Your deliverable should be the pseudo C and the assembly level function

Given code file one:

//copyable code

1.

.data

messagestr: .asciiz "Enter Number: "

.text

.globl main

main:

la $a0, messagestr

#load the data

li $v0, 4

#system call

syscall

#load the data

li $v0, 5

#system call

syscall

#move the data

move $a0,$v0   

jal factorial

move $a0,$v0   

li $v0,1   

syscall

li $v0,10

syscall

factorial:

#add the value

addi $sp,$sp,-8

#store the value  

sw $s0,0($sp)

#store the value   

sw $ra,4($sp)

#move the data

move $s0,$a0

#load the data   

li $v0,0x00000001 # 1

beq $s0,$v0,loop2

#branch instruction  

addi $a0,$s0,-1   

jal factorial

#multiply the data

mult $v0,$s0   

mflo $v0   

j loop3

#loop

loop2:

li $v0,0x00000001

loop3:

lw $ra,4($sp)   

lw $s0,0($sp)   

addi $sp,$sp,8   

jr $ra # return

Given code file two:

#####################################################################################
#       Functional Description: Main program to test Factorial function
#       Enter a negative number to terminate run
#####################################################################################

                .data
                .align          2

                .text
main:           addiu           $sp,  $sp,  -8  # Allocate space
mloop:

                li              $v0,  4         # Get value for N

                sw              $v0, 0 ($sp)
                jal             Fac             # Call factorial
                or              $v1,  $v0, $0
                addiu           $sp,  8         # Deallocate space

                li              $v0,  10
                syscall
#####################################################################################
# Functional Description: Recursive Factorial Fac  (N:  in,  N! :out)
#####################################################################################
Fac:
        lw              $a0,   0 ($sp)


        addiu           $sp,   $sp,   -16       #   Allocate    
        sw              $ra,   12 ($sp)         #   Save return address
        sw              $a0,   8($sp)
        slti            $t0,   $a0,  2          #   If N is 1 or 0,  then return the value 1
        beqz            $t0,   Go
        li              $v0,   1
        b               facret
Go:
        addi            $a0,   $a0,   -1                #
        sw              $a0,   0 ($sp)          #   Pass N-1 to factorial function
        jal             Fac                     #   Recursive call
        lw              $v0,   4($sp)           #   Get  (N-1)  !  back.
        lw              $ra,  12  ($sp)
        lw              $a0,  8 ($sp)
        mult            $v0,  $a0                       #  N* (N-1)  !
        mflo            $v0
facret:
        addiu           $sp,  $sp,  16          #  Deallocate
        sw              $v0,  4 ($sp)
        jr              $ra

In: Electrical Engineering

1) For a p-n junction in thermal equilibrium, write your own codes in Matlab to calculate...

1) For a p-n junction in thermal equilibrium, write your own codes in Matlab to calculate and plot the electric field distribution across the p-n junction along with appropriate axes labeling.

In: Electrical Engineering

I want to design a project for fun, since I am planning to take electromagnetics next...

I want to design a project for fun, since I am planning to take electromagnetics next semester. I need help with this design

Design

Construct and demonstrate

An arc generator solely driven by electrostatics, magnetostatics, and/or electromagnetics

Techniques using only household materials and a 9V battery.

In: Electrical Engineering

Derive the equivalent discrete-time model of a wireless communication system with quasi-static frequency-selective fading.

Derive the equivalent discrete-time model of a wireless communication system with quasi-static frequency-selective fading.

In: Electrical Engineering

thanks alot! Scenario: You are a development engineer at a toy company that manufactures remote control...

thanks alot! Scenario: You are a development engineer at a toy company that manufactures remote control cars using microcontrollers. Your R&D team is currently working on designing a new line of remote control cars, which requires your knowledge to make certain design decisions. The new design has the following requirements:

- Driving a motor for the wheels

- Buttons on the remote control to accelerate, brake and reverse

- LEDs to indicate forward and reverse

You are required to determine the appropriate microcontroller for this project

(Task 1) For this task, you are required to perform the following: Compare one member of each of the PIC12, PIC16, PIC18, PIC24 and dsPIC families (datasheets are available at http://www.microchip.com/doclisting/TechDoc.aspx?type=datasheet) and determine which is the most economical option to meet the project requirements. You must give an indication of the following metrics: clock speed, internal architecture, on-board memory, IO ports, instruction size, interrupt capabilities, additional features, cost and physical size.

(D1) Provide proper engineering justification. You must develop proper system requirements and show how your microcontroller and external hardware selection would meet the design requirements. Select the microcontroller which would be ideal for this project, show how you developed the system requirements and what they are, and justify your microcontroller selection.

In: Electrical Engineering

A supermarket you work part-time at has one express lane open from 5 to 6 PM...

A supermarket you work part-time at has one express lane open from 5 to 6 PM on weekdays (Monday through Friday). This time of the day is usually the busiest since people tend to stop on their way home from work to buy groceries. The number of items allowed in the express lane is limited to 10 so that the average time to process an order is fairly constant at about 1 minute. The manager of the supermarket notices that there is frequently a long line of people waiting and hears customers grumbling about the wait. To improve the situation he decides to open additional express lanes during this time period. If he does, however, he will have to "pull" workers from other jobs around the store to serve as cashiers. Hence, he is reluctant to open more lanes than necessary.
Knowing that you are a college student studying probability, your manager asks you to help him decide how many express lanes to open. His requirement is that there should be no more than one person waiting in line 95% of the time.
With the task at hand, you set out to study the problem first. You start by counting the number of customer arrival in the express lane on a Monday from 5 to 6pm. There are a total of 81 arrivals. You repeat the experiment on the following four days (Tuesday through Friday) and note the total arrivals of 68, 72, 61 and 66 customers, respectively.

1) What is the average number of customer arrivals at the express lane from 5 to 6pm on weekdays?

2) Assume the customer arrivals at the express lane from 5 to 6pm on weekdays can be modeled by a Poisson random variable, what is the PMF for the number of customers arrived during a one-minute interval in this period?

3) What is the probability of two or fewer customers arriving at the one express lane during a oneminute interval in this period? Does it satisfy the manager’s requirement of no more than one person waiting in line 95% of the time?

4) If your answer to the previous question is no, how many express lanes should the manager open in order to satisfy his requirement? You can assume that the arriving customer is equally likely to join any of the express lane if there are more than one express lanes. Also you can assume the lanes are independent, but all lanes must satisfy the manager’s requirement.

In: Electrical Engineering

Write VHDL code for ALU 32bit. ALU must perform addition and subtraction. You are not allowed...

Write VHDL code for ALU 32bit. ALU must perform addition and subtraction. You are not allowed to use other libraries. Only this libraries are allowed to use:

use library ieee;

use ieee.std_logic_1164.all;

Please do it correctly and include the comments for me to fully understand. Thank you.

In: Electrical Engineering

What is the open point in a sub-network of distribution substations? How does it operate?

What is the open point in a sub-network of distribution substations? How does it operate? Please provide specific details.

In: Electrical Engineering

Explain its purpose and describe the process of wire bonding which is a part of the...

Explain its purpose and describe the process of wire bonding which is a part of the assembly and packaging sequence of an integrated circuit.

In: Electrical Engineering

What’s the difference between switchgear and smart switchgear? Please compare them in a table if you...

What’s the difference between switchgear and smart switchgear?
Please compare them in a table if you can

In: Electrical Engineering

(i) Compare (a) Mask Programmable Logic Devices, (b) Field Programmable Logic Devices and (c) Field Programmable...

(i) Compare

(a) Mask Programmable Logic Devices, (b) Field Programmable Logic Devices and (c) Field Programmable Gate Arrays.

(ii) Draw an appropriate schematic diagram to describe following programmable logic devices and discuss their advantages and disadvantages.

(a) Programmable Logic Array

(b) Programmable Array Logic

In: Electrical Engineering

New electric grid elements and technologies are changing the traditional grid model of “generation ? transmission...

New electric grid elements and technologies are changing the traditional grid model of “generation ? transmission ? distribution ? load.” Identify what these new disruptive technologies and initiatives are and describe the impacts that each of these is likely to have on the traditional grid.

In: Electrical Engineering

Draw the block diagram of an adapter (also called “Regulated Power Supply”) and explain the function...

Draw the block diagram of an adapter (also called “Regulated Power Supply”) and explain the function of each block. Explain briefly with proper sketches, how the diodes form the integral part of the adapter design.

In: Electrical Engineering

Why we need high gain Receiver RF Amplifier? Justify with an example.

Why we need high gain Receiver RF Amplifier? Justify with an example.

In: Electrical Engineering