GPIO Flashcards
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?
- input device (peripheral)
- controller (computer/microcontroller)
- output device (peripheral)
MCU - GPIO
- used to write/read digital signals
- requires registers to read input, pin values, write output in values and set directions of the pin
- requires configuration registers (interrupts, pin type, rising falling edge)
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?
- special hardware components between the CPU and peripherals which supervise/synchronise all input and output transfers
- interface between CPU bus and peripherals
What is the purpose of the clock?
- synchronises all data transfer
- generates signal for timers, PWM and other peripherals
Give two clock sources
- mechanical resonant devices such as crystals or ceramic resonators
- RC oscillators
What is the purpose of prescaling?
- used to divide the clock seed the timer as it is too high for counter register (16 bit) to hold
What is the Auto Reload Reigster (ARR)
- further divide system clock to give timer frequency
- 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)?
- compared to counter and raises a signal when equal
- one CRR for each channel
- used to change pulse with