Theory flashcards

1
Q

What can be found at address 0000 of the AVR data memory?

A

The first general purpose register from the register block

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the effect of the instruction: sbic PORTC, 5?

A

skips over the next instruction if the bit 5 of register PORTC is cleared

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Difference between ld and ldi

A

ld = load
Loads one byte indirect with or without displacement from the data space to a register.
ldi = load immediate
Loads an 8 bit constant directly to register 16 to 31.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the purpose if the TCCR0 register of AVR?

A

The configuration of the Timer can be set using the TCCR0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a 3-state buffer?

A

A tri-state buffer is similar to a buffer, but it adds an additional “enable” input that controls whether the primary input is passed to its output or not. If the “enable” inputs signal is true, the tri-state buffer behaves like a normal buffer. If the “enable” input signal is false, the tri-state buffer passes a high impedance (or hi-Z) signal, which effectively disconnects its output from the circuit.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is Arduino function for disabling an external interrupt?

A

De-activating the interrupt handling process is done by calling the function
detachInterrupt(), with the syntax:
detachInterrupt(interrupt)
interrupt - interrupt number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the interrupt types of a 16-bit AVR timer?

A

Events that are generating interrupts:
• Overflow
• Compare match
• External event (capture) – available only for 16 bits timers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the Arduino function to generate a signal of a given frequency.

A

tone(pin, frequency, duration) – causes a signal of given ‘frequency’ on the specified
‘pin’, for ‘duration’ milliseconds.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Give an example of a serial interface that uses master-slave configuration and one example

A

USES – SPI

DOES NOT USE – USART

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the signals for the UART communication?

A

The basic UART signals:
Rx – input, reception
Tx – output, transmission

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the meaning of Serial.begin(9600,SERIAL_9E2)?

A

Serial.begin(speed, config) – configures speed (speed) + selects other data
formats (config)
+ slide UART of arduino

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Phase and polarity of the SPI communication?

A

CPOL – clock polarity – whether the first edge is rising or falling
• CPHA – clock phase
• For CPHA = 0: (for = 1 is reversed)
• Latch data on the first clock edge
• Shift (set up) the data on the second clock edge

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a stepper motor?

A

•The rotation is achieved step by step, by selective activation of the coils
• The currents in the coils are changed by electronic control, unlike the classical DC
motors which use mechanical control (brushes)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

BHE signal of 8086 purpose?

A

BHE – Byte high enable
WE (from the 82C08), BHE and A0 are used to determine if a write is to be performed
and which byte(s) (low or high or both) is to be written.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is 8259 required to place on the bus when it recieves INTA signal?

A

PIC puts on the bus the interrupt number (type) for the requested interrupt.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the steps of a DMA fly-by transfer?

Steps

A

slide “Types of DMA transfer”
1) The DMA controller requests bus access, using the HOLD pin.
2) 8086 finishes the current bus cycle, and enters the HOLD state.
3) 8086 grants bus access by activating the HOLDA pin. The bus access pins of
8086 (address, commands, data) are set to high impedance.
4) The DMA transfer is performed.
5) When the DMA transfer is finished, the DMA controller de-activates HOLD, to
release the control of the bus.

17
Q

Which AVR register can be used with immediate instructions?

A

R16-R31

18
Q

What is the effect of cbi PORTC,5?

A

set bit 5 of PORTC to zero

19
Q

What is the difference between ld r1,X+ and ld r1, +X?

A

ld r0, X+ access location pointed by X, then increment X

ld r0, +X increment X, then access location pointed by X

20
Q

What is the purpose of EICRA?

A

Configuring the mode of sensing external interrupts – registers EICRA and
EICRB – a total of 16 bits, 2 bits / interrupt

21
Q

What is a Pull Up resistor?

A

= resistor used to ensure a known state for a signal

Holds the input pin to logic ‘1’ when the button is released

22
Q

Arduino function for disabling the interrupt system?

A

noInterrupts()

23
Q

What is an output compare register of a timer?

A

this register is always compared against TCNT0. when equal to TCNT0 the output compare flag is set (OCF0) and an interrupt can be issued.

24
Q

Which are the signals of the 8086 that are involved in the DMA transfer?

A

HOLD, HLDA

25
Q

What is the size in bytes of the interrupt vector table?

A

from f000h to ffffh. 1024 bytes

26
Q

What is the purpose of DEN signal of 8086?

A

Data enable. DEN is active low(0) during each memory and input-output access and for INTA cycles.

27
Q

What is a servo motor?

A

•Use of a feedback mechanism to maintain a given position, set by a control signal
(analog or digital)
•Contains a DC motor, gears, and a control circuit.

28
Q

What is the principle of distance measurement using sonar?

A

When triggered, the ultrasonic sensor generates eight acoustic (ultrasonic) wave bursts and initiates a time counter. As soon as the reflected (echo) signal is received, the timer stops. The output of the ultrasonic sensor is a high pulse with the same duration as the time difference between transmitted ultrasonic bursts and the received echo signal.
The microcontroller interprets the time signal into distance using the following functions:

29
Q

What is the difference between single ended input and differential input for the A/D convertor?
16.

A

for single ended: difference between the voltage at an input and ground
for differential input: converts the difference between the voltage at one input and the voltage at another input that is not necessarily ground.

30
Q

What are the options for A/D reference voltage configuration for Arduino Mega?

A

Selectable 2.56V or 1.1V internal ADC Reference Voltage

31
Q

What are the signals involved in an SPI communication?

A

SCLK, MOSI,MISO,SS

32
Q

What is the meaning of Wire.begin(0x21)?

A

activates the I2C interface. The address parameter indicates the 7-bit address that Arduino will use on the I2C bus as a slave. If no address is given, the device will be set up as master.

33
Q

Arduino function for generating a PWM signal?

A

Calling the function analogWrite (pin, value) causes a PWM signal to be generated on
the ‘pin’, having a duty cycle specified by ‘value’.

34
Q

What is the duty cycle of a PWM signal?

A

A duty cycle or power cycle is the fraction of one period in which a signal or system is
active.