181
WebCat/WebCatPlus / Re: WebCat and DIO with tags
« on: January 12, 2007, 03:18:56 pm »
<form method="get" action="dio.asp">
<input type="hidden" name="I2CSTART">
<input type="hidden" name="I2CNUM" value="16">
<input type="hidden" name="I2CNUM" value="0">
<input type="hidden" name="I2CSTART">
<input type="hidden" name="I2CNUM" value="17">
<input type="hidden" name="I2CREC">
<input type="hidden" name="I2CNAK">
<input type="hidden" name="I2CSTOP">
</form>
^I2CNUM^
Start
Write 16 // DIO I2C address
Write 0 // PORTA UNIT
Start
Write 17 // DIO I2C address | READ
Read // Read port A to internal buffer
Nak
STOP
WebCat server will replace ^I2CNUM^ with the received data byte from the internal buffer
Also, you can empty the internal buffer using the following form
<form method="get" action="dio.asp">
<input type="submit" name="CLR" value="IP - clear RX buffer of I2C Port">
<input type="submit" name="CLR" value="IB - reset TAG pointer of I2C buffer">
</form>
<input type="hidden" name="I2CSTART">
<input type="hidden" name="I2CNUM" value="16">
<input type="hidden" name="I2CNUM" value="0">
<input type="hidden" name="I2CSTART">
<input type="hidden" name="I2CNUM" value="17">
<input type="hidden" name="I2CREC">
<input type="hidden" name="I2CNAK">
<input type="hidden" name="I2CSTOP">
</form>
^I2CNUM^
Start
Write 16 // DIO I2C address
Write 0 // PORTA UNIT
Start
Write 17 // DIO I2C address | READ
Read // Read port A to internal buffer
Nak
STOP
WebCat server will replace ^I2CNUM^ with the received data byte from the internal buffer
Also, you can empty the internal buffer using the following form
<form method="get" action="dio.asp">
<input type="submit" name="CLR" value="IP - clear RX buffer of I2C Port">
<input type="submit" name="CLR" value="IB - reset TAG pointer of I2C buffer">
</form>