Rainbow-electronics DAB-GPS-C01 Uživatelský manuál Strana 9

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 28
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 8
AMS0805WAH
MOTION SENSOR
9
Protocol
Transaction Rules
Each data transferred on the SDA is accompanied by a pulse on the clock signal. The
data on the SDA must be stable when the clock is high. The only exception is for generating start
and stop. The master initiates and terminates a data transmission.
Start condition
: To start reading/writing operation, it is necessary to generate a start condition by
switching the SDA input from high level to low level when the SCL input is high
level.
Stop condition
: To stop reading/writing operation, it is necessary to generate stop condition by
switching the SDA input from low level to high level when the SCL input is high
level. When the stop condition is generated, the operation is stopped, the data
is processed and the system enters in standby mode.
Single-Byte Write Sequence
The Single Byte Write Sequence is composed of 3 bytes of 9 bits, the 9
th
bit being the
acknowledgement. It starts by a start condition and ends by a stop condition. The first byte is the
Slave Address, the second is the Register Address and the third is the Data Byte. The LSB of the
Slave Code byte is the R/W indicator.
SDA
SCL
Start
Stop
1
0
1
00XWA
SCL
SDA
Slave address
0S65
4
3
21
0A
Command
765
4
3
21
0A
Data
7P
MSB LSB MSB LSB MSB LSB
AAA
SDA SLAVE
SDA MASTER
10100XW0S6
5
4321076
5
432107P
MASTER Transmit & SLAVE Receive
Zobrazit stránku 8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 ... 27 28

Komentáře k této Příručce

Žádné komentáře