6. Hardware Flashcards
What is the power supply for modern mCs?
They don’t care too much about the precise voltage, nor do they draw much current, so batteries are ideal. Most current designs work at 3V, which you can easily get from 2 cells in series (2xAA for example).
What are Vss and Vdd?
Vss - ground - negative
Vdd - supply - positive
Why is it good practise to connect a decoupling capacitor and where do we connect it? What is the usual value for the capacitor?
Because all digital circuits produce electrical noise as they switch. The capacitor ‘shorts this out’ and prevents it affecting other components. Connect between pins for Vss and Vdd as close to the mC as possible. Usually about 10^(-7) F.
What are LEDs?
Light-emitting diodes are the simplest type of output that can be driven by a mC. They are diodes (p-n junctions in a semiconductor) that emit light.
What is an important feature of LEDs?
They are diodes, which means they pass current in only one direction. Almost no current flows if they are connected the other way around.
Can you draw an LED showing it connected the correct way and label the anode and cathode? Can you then draw it the wrong way around showing what happens?
DRAW DIAGRAM.
What colours of LED can you get?
For many years they were red, yellow or green but now blue and white LEDs are available.
Can you draw an LED and label the parts?
DRAW DIAGRAM
How do we connect the LED if we want it to illuminate when the logical value of the output is high (1) - active high.
The LED should light when the pin is at Vdd (supply, positive, logic 1) but not when the pin is at Vss (ground, negative, logic 0). We therefore connect the LED between the pin and Vss. Conventional current flows from the pin to Vss. DRAW DIAGRAM.
How do we connect the LED to illuminate when the logical value of the output is low (0) - active low?
The LED should light when the pin is at Vss (ground, negative, logic 0) but not when the pin is at Vdd (supply, positive, logic 1). We therefore connect the LED between the pin and Vdd. Concntional current flows from Vdd to the pin. DRAW DIAGRAM.
Can you draw operation of active high led in detail? (showing the pins inside the mC?)
DRAW DIAGRAM
Why is a resistor usually needed in series with LEDs?
To limit the current through the LED.
What current can each pin provide/ receive?
Provide (source) - 3mA or 15mA or receive (sink) - 6mA or 9mA, depending on the pin.
What is the total drive current?
All pins combined limited to 130mA. This is plenty for a small LED, but clearly won’t drive the motor or heater in a washing machine.
What does each I/O line embed?
An ODT (On-Die Termination).