|
|
Zeile 4: |
Zeile 4: |
|
| |
|
| ---- | | ---- |
| | '''Projekte:'''<br> |
| | einfache i2c Kommunikation: |
|
| |
|
| <b>I2C Protokoll</b>
| | [[Benutzer:siro/i2cprotokoll]] |
| | |
| DEF:<br>
| |
| Hardwareebene (i2c) layer0<br>
| |
| Packetebene layer1<br>
| |
| | |
| Vorderungen:
| |
| <li> Alle Devices sollen die max. Busgeschwindigkeit verwenden
| |
| <li> Alle Daten werden in Packeten übertragen
| |
| <li> Alle Daten werden "gepollt"
| |
| <br>
| |
| Packet:
| |
| <table border='1'><tr><td>Header</td><td>Data</td></tr><tr><td>1 Byte</td><td>1-8 Byte</td></tr></table>
| |
| | |
| Header:
| |
| <table border='1'><tr><td>Bit 7</td><td>Bit 6</td><td>Bit 5</td><td>Bit 4</td><td>Bit 3 - 0</td></tr><tr><td><i>reserved</i></td><td><i>reserved</i></td><td>Command/!Data</td><td>Parity</td><td>Packetsize</td></tr></table>
| |
| | |
| <i>Note: Parity can be EVEN, ODD, XOR, NONE, Parity does include packetsize-Bits and all DATA</i><br>
| |
| <i>Note: Command/!DATA marks this packet as COMMAND packet or as DATA packet</i><br>
| |
| | |
| <b>COMMAND PACKET</b><br>
| |
| COMMAND PACKET: size 1<br>
| |
| DATA: command<br>
| |
| handled by layer1<br>
| |
| | |
| <b>DATA PACKET</b><br>
| |
| handled by userprogram<br>
| |
| | |
| <b>COMMANDS</b><br>
| |
| ----
| |
Version vom 28. Januar 2010, 21:19 Uhr