-
Datei
DS18S20.asm
befehl = r0 ;enthält den auszugebenden 8bit-befehl .def temp1 = r16 .def temp2 = r17 .def temp3 = r18 .def d1 = r19 .def d2 = r20 .def pos = r21 .equ temperature_lsb = 0x060 ;speicherstellen definieren .equ temperature_msb = 0x061 .equ TH_register = 0x062 .equ TL_register = 0x063 .equ res_byte4 = 0x064
-
Datei
ds18s20.c
#include "ds18s20.h" void delay_us (unsigned short us) { TCCR1B |= (1<<CS10); //Prescaler 1 + Start des Timers TCNT1 = 0; while (TCNT1 < (XTAL*us)); } unsigned char reset (void) { DDRx |= (1<<Px); //Ausgang PORTx
in „DS18s20: Zu hohe Temperatur“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ds18s20_.c
frequency : 16,000000 MHz Memory model : Small External SRAM size : 0 Data Stack size : 256 PINB.0 ein DS18S20+; PORTD LCD DS18S20+ GND - Ground DQ - PINB.0 mit 4.7kOhm Widerstand parallel zu VDD +5V VDD - +5V *****************************************************/ #include <mega8.h> #include <lcd.h> // LCD
in „DS18S20+ zeigt nur +85Grad an“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ds18s20.c
= DS18S20_Adresse1[7]; break; case 2: adresse[0] = DS18S20_Adresse2[0]; adresse[1] = DS18S20_Adresse2[1]; adresse[2] = DS18S20_Adresse2[2]; adresse[3] = DS18S20_Adresse2[3]; adresse[4] = DS18S20_Adresse2[
in „DS18S20 Fehler ab ca. 40°C“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
DS18S20.c
(250); } */ // Set the family code to destinguish between DS18B20 and DS1820 // // Use a constant at the moment instead of reading the device's ROM // yDeviceCode = DeviceCode; //---- Configure Slave ----// if( yDeviceCode == 0x10) // It's a DS18B20 with configuration
in „DS18S20 mit Infineon Mikrocontroller“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
DS18S20_.asm
.include "m8def.inc" .equ LCD_PORT = PORTC .equ LCD_DDR = DDRC .equ PIN_RS = 4 .equ PIN_E = 5 .equ XTAL = 16000000 .def temp1 = r16 .def temp2 = r17 .def temp3 = r18 .def temp = r19 ldi temp, LOW (RAMEND) ; Stack initialisieren out SPL, temp ldi temp, HIGH (RAMEND) out SPH, temp Hauptprogramm: rcall lcd_init rcall lcd_clear rcall lcd_home rcall Initialisieren ; Sensor Initialisieren rcall SRom ; Skip ROM rcall ConT ; Temperatur konvertieren rcall Initialisieren ; Sensor Initialisieren rcall SRom ; Skip ROM rcall SendScratchpad ; Scratchpad Senden rcall ReadScratchpad ; Scratchpad Byte 2 Empfangen
in „1-Wire Temperatursensor DS18S20 mit Atmega8 Ansteuern“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
DS18S20_.asm
.include "m8def.inc" .equ LCD_PORT = PORTC .equ LCD_DDR = DDRC .equ PIN_RS = 4 .equ PIN_E = 5 .equ XTAL = 16000000 .def temp1 = r16 .def temp2 = r17 .def temp3 = r18 .def temp = r19 ldi temp, LOW (RAMEND) ; Stack initialisieren out SPL, temp ldi temp, HIGH (RAMEND) out SPH, temp Hauptprogramm: rcall lcd_init rcall lcd_clear rcall lcd_home rcall Initialisieren ; Sensor Initialisieren rcall SRom ; Skip ROM rcall ConT ; Temperatur konvertieren rcall Initialisieren ; Sensor Initialisieren rcall SRom ; Skip ROM rcall SendScratchpad ; Scratchpad Senden clr r24 rcall ReadScratchpad ; Scratchpad Byte
in „1-Wire Temperatursensor DS18S20 mit Atmega8 Ansteuern“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
DS18S20.INC
EJECT ;**************************************** ;* * ;* DS18S20 Driver * ;* Stand: 22.2.2005 * ;* * ;**************************************** EXTERN XTAL EXTERN DS18S20_Port Public DS18S20_Reset ; C := DS18S20[B] Public DS18S20_Read ; A := DS18S20[B] Public
in „AT89C51ED2 (8051) mit DS18S20“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
DS18S20.INC
. ; B=80H -> Sensor 7 ;allgemein : Mov B, #(1 << SensorNummer) Public DS18S20_Reset ; C := DS18S20[B] Public DS18S20_Read ; A := DS18S20[B] Public DS18S20_Write ; DS18S20[B] := A Public GetTemperatur ; DPTR := Temperatur[B] Public SetTemperatur ; C := Reset[B] EJECT ; List
in „AT89C51ED2 (8051) mit DS18S20“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ds18s20.c
#include "ds18s20.h" #include <avr/io.h> unsigned char reset (void) { DDRB |= (1<<PB0); //Ausgang PORTB &= ~(1<<PB0); _delay_us(96); _delay_us(96); _delay_us(96); _delay_us(96); _delay_us(96); DDRB &= ~(1<<PB0);
in „einen einzigen DS18s20 auslesen + LCD“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ds18s20.h
#ifndef DS18S20_H #define DS18S20_H #include <avr/io.h> unsigned char i = 0; unsigned char scratchpad [9] = {0, 0, 0, 0, 0, 0, 0, 0, 0}; void delay_us (unsigned short us); void delay_ms (unsigned short ms); void
in „einen einzigen DS18s20 auslesen + LCD“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
ds18s20.pdf
READ ROM MATCH ROM SEARCH ROM SEARCH SKIP ROM COMMAND COMMAND COMMAND COMMAND COMMAND Y Y Y Y Y N DS18S20 TX MASTER T X FAMILY CODE BIT 0 ALARM 1 BYTE CONDITION ? Y DS18S20 TXBIT 0 DS18S20 X BIT 0 MASTER TXBIT 0 N N DS18S20 X BIT 0 BIT 0 SERIAL NUMBER MATCH? MATCH? 6 BYTES Y Y DS18S20 TX DS18S20 X BIT
in „Messabweichung beim 1-wire DS1“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ds18s20.txt
RCALL reset_pulse_1; RCALL skip_rom_1; RCALL convert_t_1; RCALL reset_pulse_1; RCALL skip_rom_1; RCALL read_scratchpad_1; RCALL reset_pulse_1; ... reset_pulse_1: SBI DDRT1, PinT1; //PD5 als Ausgang setzten CBI PortT1, PinT1; //Bit an PD5 löschen(o setzten) RCall wait480us; // Ausgang mind. 480us auf low halten CBI DDRT1,PinT1; wait_presence_pulse_1: // warten, bis Sensor auf LOW geht (presence pulse) sbic pind, PinT1; // Wenn presence pulse, dann nächsten Befehl überspringen rjmp wait_presence_pulse_1; wait_presence_pulse_end_1: // warten, bis Sensor wieder auf high geht (ende presence pulse)
in „DS18S20 will nicht“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ds18s20.c
/* * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * <joerg@FreeBSD.ORG> wrote this file. As long as you retain this notice you * can do whatever you want with this stuff. If we meet some day, and you think * this stuff is worth it, you can buy me a beer in return. Joerg Wunsch * ---------------------------------------------------------------------------- */ #include <stdint.h> #include <stdio.h> #include <stdbool.h> #include "1wire.h" #define F_CPU 16000000UL #include <avr/io.h> #include <util/crc16.h> #include <util/delay.h
-
Datei
DS18S20.C
return(Ret); } /************************************************************************* * * Name : DS18S20CheckCrc * * Beschreibung : CRC prüfen * * Parameter : Pointer Datensatz (ScratchPad) * Länge Datensatz * * Rückgabe : 0 = O.K x = fehler * *************************************************************************/ NOT_INLINE static uint8_t DS18S20CheckCrc(uint8_t *Adr , uint8_t NumBytes) { uint8_t Crc = 0; do{ Crc = _crc_ibutton_update(Crc, *Adr++); }while(--NumBytes); return(Crc); }
in „DS18S20, Atmega8, AVR Studio“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ds18s20.c
#include <avr/io.h> #define F_CPU 16000000UL #include <util/delay.h> #include <stdbool.h> #define OW_OPORT PORTC #define OW_IPORT PINC #define OW_DIR DDRC #define OW_PIN 0 #define BAUD 9600UL #define UBRR_VAL ((F_CPU+BAUD*8)/(BAUD*16)-1) void ow_setpin(bool b) { // Pin auf Ausgang schalten OW_DIR |= (1 << OW_PIN); if(b) OW_OPORT |= (1 << OW_PIN); else OW_OPORT &= ~(1 << OW_PIN); } bool ow_getpin() { // Pin auf Eingang schalten OW_DIR &= ~(1 << OW_PIN); // Pull-Up deaktivieren OW_OPORT &= ~(1 << OW_PIN); _delay_us(10); return (OW_IPORT >> OW_PIN) & 0x01; } bool ow_init() { bool b; ow_setpin(0);
in „Probleme mit 1-Wire“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Ds18s20.cpp
/**************************Funktion DS1820***********************************************/ uint8_t therm_reset() /*Thermo Init */ { /*Zykluszeit 920µs */ uint8_t i; /* */ THERM_LOW(); /*DQ auf LOW setzen */ THERM_OUTPUT_MODE(); /*DQ auf Ausgang Setzen */ therm_delay(us(480)); /*Warte 480µs */ THERM_INPUT_MODE(); /*DQ auf Eingang setzen */ therm_delay(us(60)); /*warte 60µs */ i=(THERM_PIN & (1<<THERM_DQ)); /*Speicher presence */ therm_delay(us(420)); /*warte 420µs */ return i; /*Gebe I zurück */ } /*0=OK, 1=Fehler */ /***************************************************************************************
in „DS1820 Temp wert an Pi Reglung weiter geben“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Ds18s20.c
#include "ds18s20.h" #include <avr/io.h> /* FCPU = 8 MHz _delay_ms = 32,77 ms _delay_us = 96,00 us*/ unsigned char reset (void) { DDRB |= (1<<PB0); //Ausgang PORTB &= ~(1<<PB0); _delay_us(96); _delay_us(96); _delay_us
in „DS18B20 + LCD + ATmega will nicht funktionieren“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Ds18s20.h
#ifndef DS18S20_H #define DS18S20_H #include <avr/io.h> unsigned char i = 0; unsigned char scratchpad [9] = {0, 0, 0, 0, 0, 0, 0, 0, 0}; void delay_us (unsigned short us); void delay_ms (unsigned short ms); void
in „DS18B20 + LCD + ATmega will nicht funktionieren“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ds18s20.c
length;i++) CRCvalue=_crc_ibutton_update(CRCvalue,*(data+i)); return CRCvalue; } /* Init function for DS18S20. */ uint8_t DS18x20_Init(TSDS18x20 *pDS18x20,volatile uint8_t *DS18x20_PORT,uint8_t DS18x20_PIN) { //Init ports/pins to which DS18S20 is attached. pDS18x20->DS18x20_PORT = DS18x20_PORT; pDS18x20
in „Timerberechnung die hunderste“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ds18s20.h
#ifndef DS18S20_H_ #define DS18S20_H_ #include <stdint.h> /** * @file ds18S20.h * @brief * Header file of DS18S20 library. It contains the prototypes of all * functions available in the library, definitions of
in „Timerberechnung die hunderste“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ds18s20.c
#include <stdint.h> #include <stdio.h> #include <avr/io.h> #include <util/delay.h> #include "ds18s20.h" uint8_t therm_reset() { uint8_t i; /* Pull line low and wait for 480us */ THERM_LOW(); THERM_OUTPUT_MODE(); _delay_us(480); /* Release line and wait for 60us */ THERM_INPUT_MODE(); _delay_us(
in „Mal wieder DS18S20“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ds18s20.h
#ifndef DS18S20_H__ #define DS18S20_H__ #define THERM_PORT PORTB #define THERM_DDR DDRB #define THERM_PIN PINB #define THERM_DQ PB0 #define THERM_INPUT_MODE() THERM_DDR &= ~(1<<THERM_DQ) #define THERM_OUTPUT_MODE
in „Mal wieder DS18S20“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
gast_ds18s20.asm
.nolist .include "m8def.inc" .list .equ clock = 4000000 ; Systemtakt in Hz .equ BAUD = 19200;9600 .equ cr= 13 ; ASCII-Code für ENTER .equ lf= 10 ; ASCII-Code für NEW LINE neue zeile .equ sendon_port=portB .equ sendon_ddr=ddrB .equ sendon_bit=pb1 .equ empfon_port=portB .equ empfon_ddr=ddrB .equ empfon_bit=pb2 .def null = r5 ; immer Null .def befehl = r10 ; enthält den auszugebenden 8bit-befehl .def temp4 = r16 .def temp = r17 .def temp1 = r18 .def temp2 = r19 .def temp3 = r20 .def temp5 = r21 .def delay1 = r22 .def delay2 = r23 .def dta = r24 ; sende register .dseg ;SRAM-Variablen .org 0x60 temp_lsb
in „DS1820/DS18S20“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ds18s20test.c
stdlib.h> #include <stdio.h> #include <avr/io.h> #define F_CPU 4000000 #include <util/delay.h> #include "ds18s20.c" int main(void) { DDRB = 0x00; PORTB= 0xFF; int temperature = 0; for (;;) { read_scratchpad (); temperature = (scratchpad [1] << 8) + scratchpad [0]; temperature *= 0.0625; //für 12bit } }
in „einen einzigen DS18s20 auslesen + LCD“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
TDS_DS18S20.pdf
. andT RC assmallaspossibleandbylocatingthemaster sample time towards the end of the 15 s period. 030598 17/27 DS1820 READ/WRITE TIMING DIAGRAM Figure 12 MASTER WRITE “0” SLOT MASTER WRITE “1” SLOT 1 s< REC < 60 s<T X0”<120 s VCC ÇÇÇ 1–WIRE BUS ÇÇÇ GND ÇÇÇ >1 s DS1820 SAMPLES DS1820 SAMPLES
in „2x HW Uart / Sinnvoll?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Heizplattenregler_DS18S20.c
/* * Heizplattenregler_DS18S20.c * * Created: 07.11.2011 21:53:45 * Author: Rocco * PORT D als LED Temperaturanzeige * PIN B als Soll Temperatur Input über 8er DIL Schalter * PORT C zum Anschluss des DS18S20 und eines Relais
in „Heizungssteuerung mit DS18S20 Relais "blinkt"“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
SCHALTPLAN_DS18s20.pdf
DS1820 / DS18s20 Beschaltung IC25 +5V V 1 10µ 10µ 0 t LCD 16x2 1 r D n / 16 V V K R R E D D D D D D D D5 6 7 DS18s20 GND 2 3 Programmieradapter k 1 5 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 r ) ) ) ) ) ) ) ) ) )
in „DS1820 DS18s20 Digital Thermometer 1-wire Beispiele ATmega8 Assembler“ · Projekte & Code ·
-
Datei
DS18S20_LCD.bas
m8def.dat" $crystal = 8000000 $baud = 9600 $hwstack = 64 $swstack = 64 $framesize = 64 Config Lcd = 20 * 4a , Chipset = Ks077 Config Lcdpin = Pin , Db7 = Portc.0 , Db6 = Portc.1 , Db5 = Portc.2 , Db4 = Portc.3 , E = Portc.4 , Rs = Portc.52 Initlcd Config 1wire = PortD.7 Const Ds18s20 = &H10 Const Skiprom
in „DS18S20 wird vom ATmega8 nicht gefunden“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
DS18S20_1_.pdf
ALARM SEARCH SKIP ROM COMMAND COMMAND COMMAND COMMAND COMMAND Y Y Y Y Y MASTER Tx DS18S20 Tx BIT 0 DS18S20 Tx BIT 0 BIT 0 DS18S20 Tx BIT 0 DS18S20 Tx BIT 0 DS18S20 Tx MASTER Tx BIT 0 MASTER Tx BIT 0 FAMILY CODE 1 BYTE N N DEVICE(S) N BIT 0 BIT 0 WITH ALARM DS18S20 Tx MATCH? MATCH? FLAG SET? SERIAL NUMBER 6 BYTES Y Y Y DS18S20 Tx BIT 1 DS18S20 Tx MASTER Tx DS18S20 Tx BIT 1 CRC BYTE BIT 1 MASTER Tx BIT 1 N N BIT 1 BIT 1 MATCH? MATCH? Y Y DS18S20 T BIT 63 MASTER Tx DS18S20 Tx BIT 63 BIT 63 MASTER Tx BIT 63 N N BIT 63 BIT
in „433Mhz RF Wireless Transmitter + Receiver“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
ds1820.pdf
SKIP ROM COMMAND COMMAND COMMAND COMMAND COMMAND Y Y Y Y Y MASTER T X BIT 0 DS18S20 X BIT 0 DS18S20 TXBIT 0 DS18S20 X BIT 0 DS18S20 TXBIT 0 MASTER TXBIT 0 MASTER TXBIT 0 DS18S20 X FAMILY CODE 1 BYTE N N DEVICE(S) N BIT 0 BIT 0 WITH ALARM MATCH? MATCH? FLAG SET? DS18S20 X SERIAL NUMBER Y Y 6 BYTES Y DS18S20 TXBIT 1 DS18S20 X MASTER TX CRC BYTE BIT 1 DS18S20 TXBIT 1 MASTER T XIT 1 N N BIT 1 BIT 1 MATCH? MATCH? Y Y DS18S20 X BIT 63 MASTER T DS18S20 T BIT 63 X X BIT 63 MASTER T BIT 63 X N N BIT 63 BIT
in „Thermometer mit ds18s20 und LED Annzeige“ · Projekte & Code ·
-
PDF
DS1820-DS1820S.pdf
SKIP ROM N COMMAND COMMAND COMMAND COMMAND COMMAND Y Y Y Y Y MASTER T X BIT 0 DS18S20 X BIT 0 DS18S20 TXBIT 0 DS18S20 X BIT 0 DS18S20 X BIT 0 MASTER TXBIT 0 MASTER TXBIT 0 DS18S20 T X FAMILY CODE 1 BYTE N N BIT 0 BIT 0 DEVICE(S) N MATCH? MATCH? WITH ALARM FLAG SET? DS18S20 T X SERIAL NUMBER Y Y Y 6 BYTES DS18S20 TXBIT 1 DS18S20 X MASTER TX DS18S20 TXBIT 1 CRC BYTE BIT 1 MASTER T BIT 1 X N N BIT 1 BIT 1 MATCH? MATCH? Y Y DS18S20 X BIT 63 MASTER TX DS18S20 TXBIT 63 BIT 63 MASTER T XIT 63 N N BIT 63 BIT 63
in „1-Wire & Pull-UP“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
DS18B20.pdf
the alarm flag status of all DS18B20s on the bus by issuing an Alarm Search [ECh] command. Any DS18B20s with a set alarm flag will respond to the command, so the master can determine exactly which DS18B20s have experienced an alarm
in „Suche nach einem Temperatursensor“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
DS18B20.pdf
the alarm flag status of all DS18B20s on the bus by issuing an Alarm Search [ECh] command. Any DS18B20s with a set alarm flag will respond to the command, so the master can determine exactly which DS18B20s have experienced an alarm
in „Mehrere DS18B20 an einen Pin Avr-Mega32“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Datenblatt_DS18B20.pdf
device can check the alarm flag status of all DS18B20s on the bus by issuing an Alarm Search [ECh] command. Any DS18B20s with a set alarm flag will respond to the command, so the master can determine exactly which DS18B20s have experienced an alarm
in „DS18B20 Darstellung von negativen Zahlen im Zweierkomplement?“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Datenblatt_DS18B20.pdf
device can check the alarm flag status of all DS18B20s on the bus by issuing an Alarm Search [ECh] command. Any DS18B20s with a set alarm flag will respond to the command, so the master can determine exactly which DS18B20s have experienced an alarm
in „Timing Probleme 1-Wire“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Datenblatt_DS18B20.pdf
device can check the alarm flag status of all DS18B20s on the bus by issuing an Alarm Search [ECh] command. Any DS18B20s with a set alarm flag will respond to the command, so the master can determine exactly which DS18B20s have experienced an alarm
in „1-Wire Protokollablauf“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
DS18B20.pdf
ROM ALARM SEARCH SKIP ROM COMMAND COMMAND COMMAND COMMAND COMMAND Y Y Y Y Y DS18B20 Tx BIT 0 DS18B20 Tx BIT 0 MASTER Tx BIT 0 DS18B20 Tx BIT 0 DS18B20 Tx BIT 0 MASTER Tx BIT 0 MASTER TX BIT 0 DEVICE(S) BIT 0 N N BIT 0 N N MATCH ? MATCH ? WITH ALARM FLAG SET ? DS18B20 TX Y Y Y FAMILY
in „DS18B20 Sensor“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
DS18B20.pdf
the alarm flag status of all DS18B20s on the bus by issuing an Alarm Search [ECh] command. Any DS18B20s with a set alarm flag will respond to the command, so the master can determine exactly which DS18B20s have experienced an alarm
-
PDF
DS18b20.pdf
the alarm flag status of all DS18B20s on the bus by issuing an Alarm Search [ECh] command. Any DS18B20s with a set alarm flag will respond to the command, so the master can determine exactly which DS18B20s have experienced an alarm
in „Temperatur ohne AD-Eingang messen“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
DS18b20.pdf
the alarm flag status of all DS18B20s on the bus by issuing an Alarm Search [ECh] command. Any DS18B20s with a set alarm flag will respond to the command, so the master can determine exactly which DS18B20s have experienced an alarm
in „Displaybeleuchtung faden ohne Analog I/O“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
datasheet_002.pdf
READ ROM MATCH ROM SEARCH ROM SEARCH SKIP ROM COMMAND COMMAND COMMAND COMMAND COMMAND Y Y Y Y Y N DS18S20 TX MASTER T X FAMILY CODE BIT 0 ALARM 1 BYTE CONDITION ? Y DS18S20 TXBIT 0 DS18S20 X BIT 0 MASTER TXBIT 0 N N DS18S20 X BIT 0 BIT 0 SERIAL NUMBER MATCH? MATCH? 6 BYTES Y Y DS18S20 TX DS18S20 X BIT
-
Datei
ds18x20.c
uart_puthex_byte((uint8_t)(meas>>8)); uart_puthex_byte((uint8_t)meas); usart_write_str0(" "); if( id[0] == DS18S20_ID ) { // 18S20 usart_write_str0( "S20/09" ); } else if ( id[0] == DS18B20_ID ) { // 18B20 i=sp[DS18B20_CONF_REG]; if ( (i & DS18B20_12_BIT) == DS18B20_12_BIT ) { usart_write_str0( "B20/12" ); }
in „1Wire DS18B20 auslesen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ds18s20_id_lesen.bas
'******************************************************************************* '* DS18S20 ID Auslesen * '* * '* M.Welnick, 26.01.2009 * '******************************************************************************* $regfile = "m8def.dat" $crystal = 3686400 $baud = 9600 $hwstack = 128
in „AVR für wenig Geld im LAN“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
AVR_T_DS18S20.cpp
////////////////////////////////////////////////////////// // // Time-stamp: "25.12.09 22:59 AVR_T_DS18S20.cpp klaus?wachtler.de" // //////////////////////////////////////////////////////////////////////////////// // // Beispiel für Anschluß Temperatursensor DS18S20 (1-wire) an ATMega32 // // Zudem verwendet
in „DS18S20 Temperatur auslesen mit C geht nicht“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Atmega16_DS18S20.c
#include <avr/io.h> #include <avr/interrupt.h> #define F_CPU 8000000 //-> bereits unter Project->Configuration Options-> als 8000000 definiert #include <util/delay.h> #include <inttypes.h> #include <stdint.h> #define TRUE 1 #define FALSE 0 // Anchlussbelegung: An welchen Pins h?ngt der DS1820 bzw die LED Anzeige #define W1_PIN PC0 //PC0 Pin soll der W1_PIN sein - in diesem Fall ist es der DataPin vom DS1820 #define W2_PIN PC1 //PC0 Pin soll der W1_PIN sein - in diesem Fall ist es der DataPin vom DS1820 #define W1_IN PINC //Pin abfragen #define W1_OUT PORTC //Ausg?nge ansteuern #define W1_DDR DDRC
in „Thermomixer noch einmal neu - dieses mal nur ein MEGA16“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
DS18S20_RS232.pdf
C1- 1 4 R +5V PL101-4 V- 4 C 4 GND D C2+ 1 IC111 PL101-5 G 5 D 1 C2- M VDD C111 PL101-6 DSR 14 11 S 2 Ausgang7 T1OUT T1IN 10 Eingang 1 DQ X7R-G1206 22/10 PL101-8 CTS Ausgan13 T2OUT T2IN 12 1 D111 3 Eingang R1IN R1OUT Ausgang 1 GND PL101-3 TXD Eingang8 R2IN R2OUT 9 9 1N4148 DS18S20 GND PL101-7 RTS MAX232 B GND B PL101-9 RI PL101-10 +5V X101 1 B 2 S 3 U 4 GND PN61729-S C C +5V 1C V IC101P C105 D 5G X7R-G1206 10/16 1 D D M. Pabelick GND 1 2 3 4 5 6
in „Temperaturmessung DS18S20 mit MAX232 über Serielle Schnittstelle“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
DS18S20_Romcode_einlesen.pdf
Presence - Impuls Presence Impuls erstes Byte 0 0 0 0 1 0 0 0 LSB MSB 0 1 = 10h Leserichtung zweites Byte 0 1 1 1 0 1 1 0 LSB MSB E 6 = 6Eh Leserichtung drittes Byte 0 0 1 1 0 1 1 0 LSB MSB C 6 = 6Ch Leserichtung viertes Byte 1 0 1 1 1 0 1 1 MSB LSB D D = DDh Leserichtung fünftes Byte 1 0 0 0 0 0 0 0 LSB MSB 1 0 = 01h Leserichtung sechstes Byte 0 0 0 1 0 0 0 0 LSB MSB 8 0 = 08h Leserichtung siebtes Byte 0 0 0 0 0 0 0 0 LSB MSB 0 0 = 00h Leserichtung achtes Byte 0 1 0 1 1 0 1 0 LSB MSB A 5 = 5Ah Leserichtung Gesamter Romcode lautet: 10 6E 6C DD 01 08 00 5A 8-BIT FAMILY CODE (10h) 48-BIT SERIAL
in „DS18S20 auslesen (finde den fehler nicht)“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
DS18S20_Romcode_einlesen_.pdf
Presence - Impuls Presence Impuls erstes Byte 0 0 0 0 1 0 0 0 LSB MSB 0 1 = 10h Leserichtung zweites Byte 0 1 1 1 0 1 1 0 LSB MSB E 6 = 6Eh Leserichtung drittes Byte 0 0 1 1 0 1 1 0 LSB MSB C 6 = 6Ch Leserichtung viertes Byte 1 0 1 1 1 0 1 1 MSB LSB D D = DDh Leserichtung fünftes Byte 1 0 0 0 0 0 0 0 LSB MSB 1 0 = 01h Leserichtung sechstes Byte 0 0 0 1 0 0 0 0 LSB MSB 8 0 = 08h Leserichtung siebtes Byte 0 0 0 0 0 0 0 0 LSB MSB 0 0 = 00h Leserichtung achtes Byte 0 1 0 1 1 0 1 0 LSB MSB A 5 = 5Ah Leserichtung Gesamter Romcode lautet: 10 6E 6C DD 01 08 00 5A 8-BIT FAMILY CODE (10h) 48-BIT SERIAL
in „DS18S20 auslesen (finde den fehler nicht)“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
DS18B20-PAR_TO-92__12_BIT_0_5__Fehler.pdf
SEARCH ROM ALARM SEARCH COMMAND COMMAND COMMAND COMMAND COMMAND Y Y Y Y Y MASTER TX BIT 0 DS18B20-PAR TXBIT 0 DS18B20-PAR TXBIT 0 DS18B20-PAR TXBIT 0 DS18B20-PAR TXBIT 0 MASTER T XIT 0 MASTER TXBIT 0 DS18B20-PAR X FAMILY CODE 1 BYTE N BIT 0 N BIT 0 DEVICE(S) N WITH ALARM MATCH? MATCH? FLAG SET
in „Genauigkeitsangabe auf einem Thermometer“ · Mechanik, Gehäuse, Werkzeug ·