MikroElektronika PIC Microcontrollers PIC16 Datenblatt Seite 143

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 194
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 142
Programming PIC Microcontrollers in BASIC - mikroElektronika
5.2.17.1 OW_Reset – Issues 1-wire reset signal for DS1820
Prototype sub function OW_Reset(dim byref PORT as byte, dim Pin as byte) as byte
Description Issues 1-wire reset signal for DS1820. Parameters <PORT> and <Pin> specify the location of DS1820; return
value of the function is 0 if DS1820 is present, and 1 otherwise.
Example
OW_Reset(PORTA, 5)
5.2.17.2 OW_Read – Reads one byte via 1-wire bus
Prototype sub function OW_Read(dim byref PORT as byte, Pin as byte) as byte
Description Reads one byte via 1-wire bus.
Example
temp = OW_Read(PORTA, 5) ' get result from PORTA
5.2.17.3 OW_Write – Writes one byte via 1-wire bus
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (101 sur 112)05/11/2004 02:20:55
Seitenansicht 142
1 2 ... 138 139 140 141 142 143 144 145 146 147 148 ... 193 194

Kommentare zu diesen Handbüchern

Keine Kommentare