Abl-electronic PIC Microcontrollers PIC16 Bedienungsanleitung Seite 242

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 312
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 241
mikroC
- C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
234
MikroElektronika:
Development
tools
-
Books
-
Compilers
page
Prototype
char Ow_Reset(char *port, char pin);
Returns Returns 0 if DS1820 is present, 1 if not present.
Description Issues OneWire reset signal for DS1820. Parameters port and pin specify the location
of DS1820.
Requires Works with Dallas DS1820 temperature sensor only.
Example
Ow_Reset(&PORTA, 5);
// reset DS1820 connected to the RA5 pin
Ow_Reset
Prototype
char Ow_Read(char *port, char pin);
Returns Data read from an external device over the OneWire bus.
Description Reads one byte of data via the OneWire bus.
Example
tmp = Ow_Read(&PORTA, 5);
Ow_Read
Prototype
void Ow_Write(char *port, char pin, char par);
Description Writes one byte of data (argument par) via OneWire bus.
Example
Ow_Write(&PORTA, 5, 0xCC);
Ow_Write
Seitenansicht 241
1 2 ... 237 238 239 240 241 242 243 244 245 246 247 ... 311 312

Kommentare zu diesen Handbüchern

Keine Kommentare