MikroElektronika PIC Microcontrollers PIC16 Ficha de datos Pagina 143

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 194
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
Vista de pagina 142
1 2 ... 138 139 140 141 142 143 144 145 146 147 148 ... 193 194

Comentarios a estos manuales

Sin comentarios