Instructions
299 C-Control Pro IDE
© 2013 Conrad Electronic
5.17.2 Onewire_Reset
1-Wire Functions
Syntax
void Onewire_Reset(byte portbit);
Sub Onewire_Reset(portbit As Byte)
Description
A reset is made on the One-Wire Bus. The port bit number for the One-Wire Bus communication is spe-
cified.
Parameter
portbit port bit number (see Port Table)
5.17.3 Onewire_Write
1-Wire Functions
Syntax
void Onewire_Write(byte data);
Sub Onewire_Write(data As Byte)
Description
A byte is written to the One-Wire Bus.
Parameter
data data byte
5.17.4 Onewire Example
CompactC
// Sample Code to read DS18S20 temp. sensor from Dallas Maxim
void main(void)
{
char text[40];
int ret, i, temp;
byte rom_code[8];
byte scratch_pad[9];