1882 views|0 replies

1140

Posts

0

Resources
The OP
 

HX711 module schematic and driver [Copy link]

Driver unsigned long ReadCount(void) { unsigned long Count; unsigned char i; SCL=0; //Enable AD (PD_SCL set low) Count=0; while(SDA); //Wait if AD conversion is not completed, otherwise start reading for (i = 0; i < 24; i++) { SCL = 1; //PD_SCL set high (send pulse) Count=Count<<1; //When the falling edge comes, the variable Count is shifted left by one position and filled with zero on the right SCL=0; //PD_SCL is set low if(SDA) Count++; } SCL=1; Count=Count^0x800000;//When the 25th pulse falling edge comes, convert the data SCL=0; return(Count); } ---------------------

This post is from Microcontroller MCU
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list