Busser - Valle´s Bedste Hjemmeside.
Busser - Valle´s Bedste Hjemmeside.
Busser - Valle´s Bedste Hjemmeside.
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>Busser</strong><br />
Se senere<br />
Acknoledge kan opfattes som det 9. bit, hvor slaven trækker dataledningen lav.<br />
Der findes større kredse, hvor det er nødvendigt at sende 2 adressebytes.<br />
Det er ikke nødvendigt, at opretholde en konstant klockrate. Derfor kan processoren godt servicere<br />
interruptrutiner undervejs.<br />
Se evt. tysk kodegenerator.<br />
Der findes ny protokol med 10 bit adressing og op til 400 Kbit / sek.<br />
Her et par gaflede tekster, der på fin vis forklarer baggrunden for IIC-protokollen:<br />
I2C Baggrund<br />
I2C, or 2-wire<br />
communication, is a form of<br />
synchronous serial<br />
communication that was<br />
developed by Phillips<br />
Semiconductor. Two wires,<br />
serial data (SDA) and serial<br />
clock (SCL), carry information<br />
between the devices<br />
connected to the bus. Each<br />
byte put on the SDA line<br />
must be 8-bits long, but the<br />
number of bytes transmitter<br />
per transfer is unrestricted.<br />
Term<br />
Transmitter<br />
Receiver<br />
Master<br />
Slave<br />
Definition<br />
The device which is currently sending data<br />
to the buss.<br />
The device which is currently receiving<br />
data from the buss.<br />
The device which initiates a transfer,<br />
generates clock signals and terminates a<br />
transfer. In our case, this is always the<br />
BS2.<br />
The device addressed by the MASTER.<br />
Both SDA and SCL are bi-directional lines, connected to a positive supply voltage via a pull-up<br />
resistor (usually between 4.7k and 10k). When the bus is free, both lines are high. Each device<br />
is recognized by a unique address (whether it's an EEPROM, RTC or I/O expander) and can<br />
operate as either a transmitter or receiver. In addition to transmitters and receivers, devices<br />
can also be considered as masters or slaves when performing data transfers. The BASIC Stamp<br />
cannot operate as an I2C slave device, however. The table below defines I2C terminology:<br />
All I2C communication must begin with a START condition and terminate with a STOP<br />
condition. START and STOP conditions are generated by the master and are defined as:<br />
/: Valle Thorø<br />
Side 15 af 43