Theory flashcards
What can be found at address 0000 of the AVR data memory?
The first general purpose register from the register block
What is the effect of the instruction: sbic PORTC, 5?
skips over the next instruction if the bit 5 of register PORTC is cleared
Difference between ld and ldi
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.
What is the purpose if the TCCR0 register of AVR?
The configuration of the Timer can be set using the TCCR0
What is a 3-state buffer?
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.
What is Arduino function for disabling an external interrupt?
De-activating the interrupt handling process is done by calling the function
detachInterrupt(), with the syntax:
detachInterrupt(interrupt)
interrupt - interrupt number
What are the interrupt types of a 16-bit AVR timer?
Events that are generating interrupts:
• Overflow
• Compare match
• External event (capture) – available only for 16 bits timers
What is the Arduino function to generate a signal of a given frequency.
tone(pin, frequency, duration) – causes a signal of given ‘frequency’ on the specified
‘pin’, for ‘duration’ milliseconds.
Give an example of a serial interface that uses master-slave configuration and one example
USES – SPI
DOES NOT USE – USART
What are the signals for the UART communication?
The basic UART signals:
Rx – input, reception
Tx – output, transmission
What is the meaning of Serial.begin(9600,SERIAL_9E2)?
Serial.begin(speed, config) – configures speed (speed) + selects other data
formats (config)
+ slide UART of arduino
Phase and polarity of the SPI communication?
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
What is a stepper motor?
•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)
BHE signal of 8086 purpose?
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.
What is 8259 required to place on the bus when it recieves INTA signal?
PIC puts on the bus the interrupt number (type) for the requested interrupt.