mikroprozessoren - mit.eit.h-da.demit.eit.h-da.de/vorlesung/0850_twi.pdf · two wire interface...

13
Mikroprozessoren Grundlagen Aufbau, Blockschaltbild Grundlegende Datentypen AVR-Controller Anatomie Befehlssatz Assembler Speicherzugriff Adressierungsarten Kontrollstrukturen Stack Input / Output (I/O) Parallel I/O Seriell I/O Timer Zusammenfassung I/O Interrupt Mathematische Operationen

Upload: lamdiep

Post on 06-Feb-2018

245 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Mikroprozessoren - mit.eit.h-da.demit.eit.h-da.de/Vorlesung/0850_TWI.pdf · Two Wire Interface (TWI=I 2C) TWI Protokoll. TWI Startbedingung. TWI Adressierung. TWI Datentransfer. TWI

MikroprozessorenGrundlagen

Aufbau, BlockschaltbildGrundlegende Datentypen

AVR-ControllerAnatomieBefehlssatzAssemblerSpeicherzugriffAdressierungsartenKontrollstrukturenStack

Input / Output (I/O)Parallel I/OSeriell I/OTimerZusammenfassung I/O

InterruptMathematische Operationen

Page 2: Mikroprozessoren - mit.eit.h-da.demit.eit.h-da.de/Vorlesung/0850_TWI.pdf · Two Wire Interface (TWI=I 2C) TWI Protokoll. TWI Startbedingung. TWI Adressierung. TWI Datentransfer. TWI

Geldkarte

C1 5VC2 ResetC3 CLKC5 0VC6 VppC7 DATA

Page 3: Mikroprozessoren - mit.eit.h-da.demit.eit.h-da.de/Vorlesung/0850_TWI.pdf · Two Wire Interface (TWI=I 2C) TWI Protokoll. TWI Startbedingung. TWI Adressierung. TWI Datentransfer. TWI

Oktokopter

Sensor – Aktor Interfaces: IIC Bus

Page 4: Mikroprozessoren - mit.eit.h-da.demit.eit.h-da.de/Vorlesung/0850_TWI.pdf · Two Wire Interface (TWI=I 2C) TWI Protokoll. TWI Startbedingung. TWI Adressierung. TWI Datentransfer. TWI

I2C Aktoren und Sensoren

Brushless-Motor-Controller

Pressure-Sensor Accelerometer/Gyro/Compass

Page 5: Mikroprozessoren - mit.eit.h-da.demit.eit.h-da.de/Vorlesung/0850_TWI.pdf · Two Wire Interface (TWI=I 2C) TWI Protokoll. TWI Startbedingung. TWI Adressierung. TWI Datentransfer. TWI

Two Wire Interface (TWI=I2C)�

Page 6: Mikroprozessoren - mit.eit.h-da.demit.eit.h-da.de/Vorlesung/0850_TWI.pdf · Two Wire Interface (TWI=I 2C) TWI Protokoll. TWI Startbedingung. TWI Adressierung. TWI Datentransfer. TWI

TWI Protokoll

Page 7: Mikroprozessoren - mit.eit.h-da.demit.eit.h-da.de/Vorlesung/0850_TWI.pdf · Two Wire Interface (TWI=I 2C) TWI Protokoll. TWI Startbedingung. TWI Adressierung. TWI Datentransfer. TWI

TWI Startbedingung

Page 8: Mikroprozessoren - mit.eit.h-da.demit.eit.h-da.de/Vorlesung/0850_TWI.pdf · Two Wire Interface (TWI=I 2C) TWI Protokoll. TWI Startbedingung. TWI Adressierung. TWI Datentransfer. TWI

TWI Adressierung

Page 9: Mikroprozessoren - mit.eit.h-da.demit.eit.h-da.de/Vorlesung/0850_TWI.pdf · Two Wire Interface (TWI=I 2C) TWI Protokoll. TWI Startbedingung. TWI Adressierung. TWI Datentransfer. TWI

TWI Datentransfer

Page 10: Mikroprozessoren - mit.eit.h-da.demit.eit.h-da.de/Vorlesung/0850_TWI.pdf · Two Wire Interface (TWI=I 2C) TWI Protokoll. TWI Startbedingung. TWI Adressierung. TWI Datentransfer. TWI

TWI Blockdiagramm

Page 11: Mikroprozessoren - mit.eit.h-da.demit.eit.h-da.de/Vorlesung/0850_TWI.pdf · Two Wire Interface (TWI=I 2C) TWI Protokoll. TWI Startbedingung. TWI Adressierung. TWI Datentransfer. TWI

Anwendung: 16bit ADC am IIC-Bus

Page 12: Mikroprozessoren - mit.eit.h-da.demit.eit.h-da.de/Vorlesung/0850_TWI.pdf · Two Wire Interface (TWI=I 2C) TWI Protokoll. TWI Startbedingung. TWI Adressierung. TWI Datentransfer. TWI

Master-Slave Communication

Blau = Slave->MasterWeiss = Master->Slave

Page 13: Mikroprozessoren - mit.eit.h-da.demit.eit.h-da.de/Vorlesung/0850_TWI.pdf · Two Wire Interface (TWI=I 2C) TWI Protokoll. TWI Startbedingung. TWI Adressierung. TWI Datentransfer. TWI

MikroprozessorenGrundlagen

Aufbau, BlockschaltbildGrundlegende Datentypen

AVR-ControllerAnatomieBefehlssatzAssemblerSpeicherzugriffAdressierungsartenKontrollstrukturenStack

Input / Output (I/O)Parallel I/OSeriell I/OTimerZusammenfassung I/O

InterruptMathematische Operationen