Answered step by step
Verified Expert Solution
Question
1 Approved Answer
a (a) Explain the difference between the Harvard architecture and the von Neumann architecture for a computer system. Explain why the Harvard architecture is often
a (a) Explain the difference between the Harvard architecture and the von Neumann architecture for a computer system. Explain why the Harvard architecture is often preferred for microcontroller implementations. Two 16-bit registers, R1 and R2, contain the following values: R1 = 0x8342 R2 = 0x8004 (b) The contents of these two registers are added by an 16-bit ALU and the result stored back to an 16-bit register R3 () What will be the 16-bit result in Register R3 (in hex)? (ii) What are the values in registers R1,R2,R3 interpreted as unsigned decimals? (ii) What are the values in registers R1, R2,R3 interpreted as signed 2s complement decimals? (iv) What will be the resulting values of the carry (C) and overflow (V) status bits? Explain the significance of your answers. (c) In the language, a variable status_bits is declared as follows: uint16_t status_bits; This variable is used to hold bits which control various functions of the microcontroller. As the device operates, we will want to change some of the bits within the variable whilst leaving the other bits completely unchanged. ) Devise a statement in the Clanguage that would set bits 11 and 13 of variable status_bits to a value of 1, whilst leaving the other bits unchanged. (ii) Devise a statement in the language that would set bits 10 and 12 of variable status_bits to a value of 0, whilst leaving the other bits unchanged. (d) A sensor measures rotational velocities in the range 0 to 25 radians per second and outputs a voltage in the range 0 to 1.25 V. (0) A 10-bit ADC is used to convert the velocity sensor output voltage, using VREF set to 3.5 V. Calculate the resolution of the measurement (expressed both in volts and in rad/second) and also the maximum error. (i) The same 10-bit ADC is used, now with VREF set to 1.25 V. Calculate the resolution of the measurement and also the maximum error
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started