Question

In: Computer Science

Please answer these questions clearly in hand written, thank you! 1. Explain 4 things you can...

Please answer these questions clearly in hand written, thank you!

1. Explain 4 things you can do with a JTAG unit while debugging code.

2. The first time an optical shaft encoder was connected to a microprocessor the engineer used an external interrupt but with it configured as a level edge triggered interrupt. Explain why that was not a good idea

3. Discuss the differences between “bare metal” and a Linux operating system and give an example of when each is more appropriate.

Solutions

Expert Solution

May this helps you...

Answer 1:

  1. JTAG is used in accessing sub-blocks of integrated circuits, thus, making it an important tool for debugging embedded systems that might not have any other debug-capable communications channel.
  2. JTAG-based debugging is available in many systems from the very first instruction after the CPU is reset, letting it aids with the construction of early boot software which runs before the set up of anything.
  3. JTAG is used by the JTAG adapter as the transport mechanism to obtain on-chip debug modules inside the destined CPU.
  4. To debug software operating inside a CPU JTAG techniques are applied that can help debug other digital design blocks inside an FPGA.

Answer 2:

Encoder signals should be detected and interpreted within the software as fast as possible to not block the most process flow. we will detect the signals by polling within the main loop or using interrupts. Polling isn't an efficient way because you'll got to reserve time and resources in your main loop which can bring extra delays. Using interrupts may be a faster and cost-effective solution. we'll show you ways to use interrupts to handle the encoder signals.

There are two sorts of interrupts which will be used for this purpose; External Interrupt and Pin Change Interrupt. External Interrupt can detect whether the input is falling or rising and may be triggered in one among the chosen states which are: rising, falling, or toggling. There are more hardware resources for Pin Change Interrupt but it cannot detect the falling or the rising edge and it's triggered when any logical change occurs.

Answer 3:

Bare metal refers to run a program or software directly on the hardware level without the support of any OS .
In other words, program a microcontroller directly with a bunch of lines of C or Assembler-code, because it was traditionally made in electronics and that we learned it.
It is a low-level method of programming and it's specific to the hardware used.

Most of the bare-metal projects don't start from scratch (at all). it might cost tons to start out every project from zero again and again. We use instead some already tested libraries.

  • Better execution with the same HW in bare metals
  • They are easy and fast for small applications
  • They are reliable.
  • Complexity of the bare metal increase exponentially with the system size and functionalities
  • in bare metal, basic and standard functions have to be programmed and adapted to the specific HW
  • There is no multi-threading possibilities in one core

In embedded Linux, applications run over or supported by the kernel, acting as an OS . The "kernel" is that the nucleus or core of the OS controlling almost everything within the system.

Normal user-defined applications are called “User Space Applications” and that they have intermediate layers until they access the hardware. For that purpose, they have to travel through the kernel space to access to the HW. In Userspace is simply a piece of memory and over the kernel.

The bigger difference (and advantage) is that the userspace applications are hardware-independent.
The kernel of Linux consists of varied modules, which interact directly with the underlying hardware.

It provides the specified abstraction to cover low-level hardware details to system or application programs and thus made it hardware-independent.

  • They are easily scalable
  • They are portable
  • linux supports multi-threading and priorities
  • in Linux, free prebuilt drivers available that makes the development faster.
  • There are less less bugs
  • Linux is quite complex for small applications
  • Steeper learning curve than bare metal
  • Require a minimum (powerful) hardware to run the Kernel
  • In Linux, security protection needed
  • Updates of the system may be needed in linux

Related Solutions

CAN YOU PLEASE ANSWER AS SOON AS POSSIBLE AND PLEASE ANSWER ALL QUESTIONS THANK YOU 1/...
CAN YOU PLEASE ANSWER AS SOON AS POSSIBLE AND PLEASE ANSWER ALL QUESTIONS THANK YOU 1/ What is one similarity and one difference between voluntary motor system that innervate the head versus voluntary motor system that innervate the body? 2/ Does olfactory bulb (direct) relay to primary sensory cortex via the thalamus? 3/ Write a short paragraph using the following terms: opiates; endorphins, pain relief. 4/ In your own words, explain one way in which neuroplasticity allows learning and memory...
Can you please answer all questions and please answer as soon as possible THANK YOU 1/...
Can you please answer all questions and please answer as soon as possible THANK YOU 1/ what do you think wernicke’s area of an infant develops prior to Broca’s? 2/ Create a short paragraph using the following terms: fovea, cones, rods, peripheral retina, acuity, center of the visual field? 3/ Why cone receptors are able to send information about different frequencies of light? 4/why do you think it is easier to name a taste in food than a smell in...
CAN YOU PLEASE ANSWER AS SOON AS POSSIBLE AND PLEASE ANSWER ALL QUESTIONS THANK YOU 1-...
CAN YOU PLEASE ANSWER AS SOON AS POSSIBLE AND PLEASE ANSWER ALL QUESTIONS THANK YOU 1- What is one similarity and one difference between voluntary motor system that innervate the head versus voluntary motor system that innervate the body? 2- Does olfactory bulb (direct) relay to primary sensory cortex via the thalamus? 3- Write a short paragraph using the following terms: opiates; endorphins, pain relief. 4- In your own words, explain one way in which neuroplasticity allows learning and memory...
((Note: The answer has to be typed, not hand written nor a picture.)) Thank you.   ...
((Note: The answer has to be typed, not hand written nor a picture.)) Thank you.    GAGE R & R EXERCISE in this example, we do a gage R&R study on two data sets: one in which measurement system variation contributes little to the overall observed variation (GAGEAIAG.MTW), and one in which measurement system variation contributes a lot to the overall observed variation (GAGE2.MTW). For comparison, we analyze the data using both the ANOVA and the Xbar and R method....
Please follow the directions and answer all questions properly. Type the answers please. NO hand written...
Please follow the directions and answer all questions properly. Type the answers please. NO hand written answer. This is a Marketing class. Thanks Please write no more than 100 words for each question. The questions are about fast food chain “Chick-Fil-A. These questions were asked by my professor. Please make sure that answers are good. I would really appreciate. Thanks again. I’m having a hard time understanding differences among needs, wants and demands of “Chick-Fil-A” customers. How would you explain...
Please answer all 4 questions thank you! 1) During lipid digestion, emulsification occurs in the __________________,...
Please answer all 4 questions thank you! 1) During lipid digestion, emulsification occurs in the __________________, whereas formation of chylomicrons occurs in the _____________________. lumen of the small intestine; lacteals epithelial cells that line the wall of the small intestine; lacteals lumen of the small intestine; lumen of the large intestine lumen of the small intestine; epithelial cells that line the wall of the small intestine lumen of the stomach; lumen of the small intestine 2) Mass movements of fecal...
Please complete both questions in MASM. Explain code clearly, thank you. Please screenshot memory outputs. Symbolic...
Please complete both questions in MASM. Explain code clearly, thank you. Please screenshot memory outputs. Symbolic Text Constants Write a program that defines symbolic names for several string literals (characters between quotes). Use each symbolic name in a variable definition. Use this code to get started: ; Symbolic Text Constants Comment ! Description: Write a program that defines symbolic names for several string literals (characters between quotes). Use each symbolic name in a variable definition. ! .386 .model flat,stdcall .stack...
Please answer #14-19, explain and clearly indicate which # you are answering. Thank you so much!...
Please answer #14-19, explain and clearly indicate which # you are answering. Thank you so much! Q14-19 We crossed pure-bred female flies with yellow body and forked-shaped bristles with male flies extra bristles. The subsequent F1 flies showed all normal phenotypes except that all of the F1 males are yellow-body. We crossed again the normal F1 females with males homozygous for yellow body, extra bristles, and forked bristles as a testcross. The number of each category of F2 progeny is...
only 2 questions ((PLSS with steps and clear hand written PLSSS and thank you sooooo much...
only 2 questions ((PLSS with steps and clear hand written PLSSS and thank you sooooo much for helping me)) Depression Geographic location Gender 3 Florida Female 7 Florida Male 7 Florida Female 3 Florida Female 8 Florida Female 8 Florida Male 8 Florida Male 5 Florida Female 5 Florida Male 2 Florida Female 6 Florida Female 2 Florida Female 6 Florida Female 6 Florida Male 9 Florida Female 7 Florida Male 5 Florida Male 4 Florida Male 7 Florida Female...
please can answer all the questions and with work clearly 1. According to the Joslin Clinic,...
please can answer all the questions and with work clearly 1. According to the Joslin Clinic, healthy individuals without diabetes should have a blood glucose level of no more than 100 mg dL−1 after awaking, before breakfast. What is the molarity of glucose in the blood of a healthy individual whose blood glucose level is 100 mg dL−1 ? 2. One index of toxicity is the LD50, the amount of substance which, when administered to a group of subject, will...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT