¡GoConqr estrena diseño! Cuéntanos qué te parece.

Fichas

mbed_exam_p2

Charlotte Gonzalex Inglés 12 fichas

mbed_exam_p2

Fichas del conjunto (12)

  1. 1List three benefits that the usage of functions can have on the code and/or program development.- Code has become reusable
    - Code has become clean and efficient
    -Code has become more readable
    - We have separated the what from the how.
    -We enabled for splitting tasks
  2. 2Describe the difference between the following three types of documentation: • Code documentation (code comments)• Code documentation (code comments):
    - short, phrases used to explain specific tasks within a program.
  3. 3Describe the difference between the following three types of documentation: • Application documentation• Application documentation
    - ex. flow charts & state diagrams
    - describes the use of function
    - to indicate the operation of program flow
  4. 4Describe the difference between the following three types of documentation: • API documentation• API documentation:
    - Separating the what from the how
    - Should document the what
    - Users should not need to understand (or even open) your library code to be able to use it.
  5. 5Assume that a temperature sensor is connected to the ADC of a MCU. The sensor outputs a voltage of 0.75 V at 25 ◦C. (a) What is the digital representation the ADC outputs if it has a resolution of 10 bit, a reference voltage of 3 V and it rounds to the closest integer?Svar: n= 256Assume that a temperature sensor is connected to the ADC of a MCU. The sensor outputs a voltage of 0.75 V at 25 ◦C. (a) What is the digit...
  6. 6Assume that a temperature sensor is connected to the ADC of a MCU. The sensor outputs a voltage of 0.75 V at 25 ◦C. (b) What is the minimum resolution the ADC should have in order to have a quantiza- tion error of not more than 5 mV?Assume that a temperature sensor is connected to the ADC of a MCU. The sensor outputs a voltage of 0.75 V at 25 ◦C. (b) What is the minim...
  7. 7The AnalogIn class provides two different functions in order to read from the ADC (read, read_u16) (a) Describe the difference of the two functions by describing their return values.Read: Read the input voltage, represented as a float in the range (0.0-1.0)
    Read_u16: Read the input voltage, represented as an unsigned short in the range (0x0-0xFFFF)
  8. 8The AnalogIn class provides two different functions in order to read from the ADC (read, read_u16) (b) In what relationship do the two functions stand?Both reads the input voltage but have different representation
  9. 9A 1 MHz clock signal is connected to a 16 bit counter. After the counter has reached its maximum value, the counter starts counting from 0 again. How many times will the counter overflow in one minute?A 1 MHz clock signal is connected to a 16 bit counter. After the counter has reached its maximum value, the counter starts counting from ...
  10. 10What is an ISR?Interrupt Service Routines: A signal to the processor emitted by hardware or software indicating an event that needs immediate attention. ISR tells the processor what to do when the interrupt occurs.
  11. 11For every interrupt source, an interrupt flag exists in some register. (a) What is the interrupt flag used for?Usually a single bit in register, which records the fact that an interrupt has occurred.
  12. 12For every interrupt source, an interrupt flag exists in some register. (b) Explain what happens if the interrupt flag is not cleared in the callback function of the interrupt?- If the interrupt it not enabled it will be no respons.
    - Depending on priority it can block other programs or let other programs through
    - The program might later enable that interrupt or poll the interrupt flag

Información

Descripción
Fichas sobre mbed_exam_p2, creado por Charlotte Gonzalex el 13/01/2020.
Visitas
15
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?