Tags

The following Port Tags are implemented:
The variable groups a to j can be used to display the value of any input pin or port on the PIC. The lower 3 bits of the 8 bit variable value is used to specify the desired bit of the given port (port is given by variable group). The upper 5 bits are used to specify how the ports value should be displayed. The following variable groups are defined:
Variable GroupDescription
aPIC Port A
bPIC Port B
cPIC Port C
dPIC Port D
ePIC Port E
fPIC Port F
gPIC Port G
hReserved for furture use
jReserved for furture use

The following variable values(in hex) are defined:
Variable ValueString returned by HTTP Server - displayed on web page
00 - 07'1' or '0' returned depending on PORT state
10 - 17"on" or "off" returned depending on PORT state
20 - 27"<!--" returned if port is configured as input
28 - 2f"-->" returned if port is configured as input
30 - 37"<!--" returned if port is configured as output
38 - 3f"-->" returned if port is configured as output
40 - 47"checked" returned if port is configured as output
48 - 4f"checked" returned if port is configured as input
50 - 57"0" returned if port is configured as output. "1" returned if port is configured as input.

For variable values where bit 3 is set (values from x8 to xf):
x8=port bit 0, x9=port bit 1, xa=port bit 2, xb=port bit 3
xc=port bit 4, xd=port bit 5, xe=port bit 6, xf=port bit 8
For example, variable value 48 will return "checked" if port bit 0 is configured as an input