Basic Micro Studio Syntax Manual
Basic Micro Studio Syntax Manual
Basic Micro Studio Syntax Manual
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
OWIN<br />
<strong>Syntax</strong><br />
owin pin,mode,{FailLabel,} [{modifi ers}InData1, ..., {modifi ers}InDataN]<br />
Commands<br />
• Pin - is a variable, constant or expression that specifi es the pin used for 1-wire data transfer.<br />
• Mode - is a variable, constant or expression that specifi es the data transfer mode as described in<br />
the table below.<br />
• FailLabel - is a label the program will jump to if communications fail (no chip present).<br />
• InData - is a list of variables with optional modifi ers to store incoming data from an attached<br />
1-wire device.<br />
Supported<br />
• BA - Supported<br />
• BAN - Supported<br />
• BAP - Supported<br />
• BAP40 - Supported<br />
Modes<br />
Mode Reset Byte / Bit Speed<br />
0 None Byte Low<br />
1 Before Data Byte Low<br />
2 After Data Byte Low<br />
3 Before and After Byte Low<br />
4 None Bit Low<br />
5 Before Data Bit Low<br />
Description<br />
The 1-wire protocol was developed by Maxim (Dallas Semiconductor). It is a 1-wire asynchronous<br />
serial protocol that does not require a clock. Most 1-wire devices can optionally be powered from the<br />
data line, this is known as parasitic power. This means the device is powered from an extended data<br />
high (1) state on its data pin. A high (1) state is held briefl y to charge a small internal capacitor. One<br />
wire is setup to have a single master device which communicates with one or more 1-wire devices<br />
over a single data line. This network is dubbed a “<strong>Micro</strong>Lan”. The master initiates and controls all<br />
activities on the 1-wire bus.<br />
Notes<br />
1. The 1-wire parts use CMOS/TTL logic levels with open collector outputs. The data line requires a<br />
4.7K pull-up.<br />
151