Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
You are viewing an older revision! See the latest version
Temperatursensor LM75B
(siehe Datenblatt)
siehe (Schaltplan HIM0Board)
da die Adressenleitungen auf GND (A0=A1=A2 = 0) liegen ergibt sich folgende Adresse:
und für die Programmierung:
A0=A1=A2 = 0 --> #define LM75B_ADDR 0x90 An Pin 27, 28 --> I2C i2c(p28,p27);
Register Liste
Pointer Register und Werte
Mit den folgenden Werten von B= und B1:
ergeben sich folgende Konstanten:
#define LM75B_Conf 0x01 #define LM75B_Temp 0x00
Configuration register (Table 8) Command = 0x0: alles Default auf 0 – Init LM75B
char cmd[2]; cmd[0] = LM75B_Conf; // 0x01 – Configuration Register cmd[1] = 0x0; i2c.write( LM75B_ADDR, cmd, 2);