Search for question
Question

Q1

(a)

(b)

A modern embedded processor is used in the engine management unit for a

hybrid petrol/electric car - requiring precise measurement of engine emissions

in real time. Discuss whether single precision or double precision floating point

arithmetic is most appropriate for the software running on this processor. [4]

(c)

(d)

State the range of allowable values for the exponent and fraction of IEEE-754

single precision floating point numbers.

[3]

(e)

Obtain the IEEE single precision representation for the number -15.62510

showing your working at each point of the analysis.

[7]

Explain the key differences between the IEEE-754 numbers Ox7f800000 and

0x7fc00000.

[3]

The code of figure Q1 is executed on a Freescale Kenetis Microcontroller.

Assume that the function delayms (int n) creates a delay of n ms.

i)

ii)

iii)

Describe the purpose and action of the line PTB->PDDR = 0x080000

noting the pin on which it acts.

[4]

Why is the bitwise operation '=' not needed when acting upon the

registers PCOR and PSOR?

[2]

}

What changes would be necessary in this program so that the output

would be observed on port B, pin 3?

[2]

#include

void delayms (int n);

int main (void) {

SIM->SCGC5=

PORTB->PCR [19]

PTB->PDDR = 0x080000;"

while (1) 1

PTB-PCOR= 0x080000;

delayms (500)

PTB-PSOR = 6x080000;

delayms (500);

Fig: 1


Most Viewed Questions Of Embedded System

Using the ADALP2000 analog parts kit / breadboard, construct the R-L voltage divider circuit using a 1k2 resistor and 10 mH inductor (code 103) as shown below. With the ADALM2000 SCOPY signal generator, adjust the input voltage (Vin) to 4.0 volts peak- to-peak (2.0 volts peak) at a frequency (f) of 60 kHz AC signal. Using the oscilloscope function of the SCOPY, display on your computer, both the input (Vin) and output (Vout) voltage waveforms on the same screen. Use the ADALM2000's 1+ and 1- wires to measure the voltage across Vin and the 2+ and 2-wires to measure the voltage across Vout. Note that once the circuit is connected to the signal source, the measured value of Vin on the oscilloscope will be slightly less that 4V p-p (2 V peak). This is due to the internal resistance of the SCOPY. For your calculations, use the measured value of Vin rather than 2.0V peak. Set Vin scaling for 500 mV/div and Vout scaling for 200 mV/div. Assume that the input voltage (Vin) is reference (Z = 0º). Remember that for a 60 kHz signal, the period, t = 1/f = 1/(60 x 10³) = 16.67 usec. Therefore, a 90° phase shift would result in a time difference (At) of 4.18 usec. Set the time-base scale on the SCOPY to 2.0 usec / div. Measure the time difference between the zero crossings of the two voltage sinewaves as the voltages are going positive in order to compute the phase angle difference (40) most accurately. Attach a picture of your circuit mounted on the breadboard as well as a screenshot from SCOPY showing both input and output voltage waveforms to this page. What At between the two waveforms and output voltage amplitude did you measure? Calculate the phase angle shift from At: Vout degrees (peak) (15 points) At= Is the output voltage (Vou) leading or lagging the input voltage (Vin)? Justify your answer by referencing the screenshot of the input/output waveforms. (2 points) Use hand calculations to verify your Vout measurement on a second piece of paper. What is the % error for the amplitude and phase shift measurements? (3 points) V₁ L + RV


Given a memory with a 14-bit address and an 8-bit word size: How many bytes can be stored in this memory? If this memory was constructed from Ik x 1 RAMs, how many memory chips would be required? How many bits would be used for chip select?


5. Practice Exercises 5.1 Multiplexer Design and implement an 8-1 Multiplexer using a case statement. 5.2 Array Adder Design and implement an Array Adder. Depending on an input bit named 'op', if: • op is 1: Add together two integer arrays with addition and stores the result in a third array. • op is 0: Subtract one integer array from the other and store the result in a third array. You can assume all three arrays are hardcoded as signals. 5.3 Array-Mapped Increment Design and implement an Array-Mapped Increment circuit that takes an integer named "x" as input and adds "x" to all elements in an integer array. If an array value exceeds 9, that array element is reset to zero. You may assume that the integers are hardcoded signals. 6. Deliverables Practical demonstration of the sample exercises will be requested during the lab and instructor may ask for their code to be submitted on Moodle. Complete work of the practice exercises must be submitted on Moodle by the specified deadline. Provide the following for all designs: 1. Complete VHDL code. 2. Flow Summary and Successful Compilation. 3. RTL Viewer. 4. Power Consumption. 5. ModelSim simulation for the designs.


Changes to this answer. Question 2 A microcontroller (not the Tiva) has a 19-bit-wide address bus. What is the theoretical maximum address space it can address? Give your answer in MegaBytes (not bytes, kilobytes, or gigabytes). Moving to the next question prevents changes to this answer. Question 2 of points Save Ar


Use the C2000 microcontroller and set up pins as GPIOS for LEDs. Toggle LED2 and LED4 every 1000000 loops in background. Submit the only main.c please. Remember to put comments to explain your code. < To Do Assignment Details Elec Machines and Drives Lab 002