What are I/O registers?
addresses associated with I/O devices
What is a driver?
Software that communicates with an I/O device. Other programs call functions in the device driver to access the device without having to understand lower-level hardware
What is an embedded I/O system?
a programmed controller (comp./microcont.) with a dedicated function within a larger mechanical/electrical system, often with real-time computing constraints
What does an embedded I/O system usually include?
MCU - GPIO
What is the purpose of an I/O interface?
To manage communication between peripherals and the computer. It resolves differences between the peripherals and CPU
What are the four major differences between peripherals and computers?
1) data format in peripherals, word format in CPU and memory
2) operating modes of peripherals differ, must be controlled
3) peripherals are often electromechanical devices which operate differently from CPU and memory (electronic devices), therefore conversion signals may be required
4) data-transfer rate of peripherals and clock rate of CPU, synchronisation required
What are interface units?
What is the purpose of the clock?
- generates signal for timers, PWM and other peripherals
Give two clock sources
What is the purpose of prescaling?
What is the Auto Reload Reigster (ARR)
- counter counts up to value in ARR before reloading
pulse width
“on time”
duty cycle
pulse width divided by period
What is the Capture Compare Register (CRR)?
What happens when an external interrupt is raised?
The MCU stops its current task, branches to an ISR which gets executed, then returns to previous task
What are the different standards for Serial I/O
Describe SPI
Interface requires three lines minimum:
Describe an SPI transmission:
Describe UART
What is the purpose of the parity bit in RS-232 protocol for UART? How does it work?
What is Baudrate (RS-232 protocol)?
RS-485 protocol for UART
Describe I2C
interface requires two lines, one for bidirectional data signals (SDA), one for the clock signal (SCK). Bus drivers are open drain, can pull signal line low but not drive it high, so each signal line requires a pull-up resistor