Peripherals: USART/SPI/I2C
in 14bit cores, can have interrupts on TX buffer empty and RX full
SPI = Serial Peripheral Interface
- 3 wire: Data in, Data out, Clock
- Master/Slave (can have multiple masters)
- Very high speed (1.6Mbps)
- Full speed simultaneous send and receive (Full duplex)
I2C = Inter IC
- 2 wire: Data and Clock
- Master/Slave
- Lots of cheap I2C chips available; typically < 100kbps
UART = Universal Asynchronous Rec/Transmitter
- Can do 300bps - 115kbps
- 8 or 9 bits, parity, start and stop bits, etc.
- Outputs 5V so you need a RS232 level converter (e.g., MAX232)
Previous slide | Next slide | Back to first slide | View graphic version |