| データシートサーチシステム |
|
XGZP6857D データシート(PDF) 13 Page - CFSensor |
|
|
|||||||||||||||||||||||||||||
XGZP6857D データシート(HTML) 13 Page - CFSensor |
|
13 / 16 page ![]() Calibrated Pressure Sensor Series V2.9/20250812 XGZP6857D_DataSheet_EN_V2.9 www.CFSensor.com 13 / 16 { char i; for (i = 0; i < 8; i++) if ((b << i) & 0x80) //Send high bits first 先发送高位 SEND_1(); else SEND_0(); } uchar ReadI2CByte(void) reentrant //Receive one byte 读取一个字节 { char b = 0, i, F0 = 0; for (i = 0; i < 8; i++) { SDA = 1; DELAY(DELAY_TIME); SCL = 1; DELAY(DELAY_TIME); F0 = SDA; DELAY(DELAY_TIME); SCL = 0; if (F0) { b = b << 1; //Receive high bits first 先读取高位 b = b | 0x01; } else b = b << 1; } return b; } //Write a register’s address and a command byte to the sensor //向传感器写寄存器地址和一个命令字节 //"addr": register's address, "thedata": the command byte void Write_One_Byte(uchar addr, uchar thedata) { bit acktemp = 1; I2C_Start(); //IIC START Signal 发送 IIC 启动信号 WriteI2CByte(0x58 << 1 + 0); //The SLAVER address is 0x58 //传感器的 IIC 总线地址为 0x58 // The lowest bit of address is 0 means writing 地址值最低位为 0 表示写 |
|
|
リンク URL |
| ALLDATASHEETはお客様のビジネスに役立ちますか? [ DONATE ] |
Alldatasheetは | 広告 | お問い合わせ | プライバシーポリシー | データシートへのリンク | リンク交換 | メーカーリスト All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |