User's Manual
Landis+Gyr Chapter 3 - Development Environment
UtiliNet SCADA Single Board Radio 98-1546 Rev AA 31
Digital I/O Functionality
This device provides two general purpose digital I/O lines. These are controllable through the DCW
programming language. It is outside the scope of this document to describe that language, but in
brief, there are mechanisms by which each line can be independently configured as input or output.
The state of inputs can be read, and the state of outputs can be set. The DCW code execution is a
virtual environment and as such, is not fast. Users should understand the speed limitations associated
with the use of these digital I/O pins.
The register below can be used to control either of the two general purpose I/O pins (D1 & D2).
Analog Input Functionality
This device provides two general purpose analog inputs. These are filtered and connected to a 10-bit
A/D converter.
Table 3-1. Control Register 1
Bit Feature Description Dflt.
0 Pin D1 Direction 0: Input
1: Output
0
1 Pin D1 State When D1, bit 0 is "0" and bit 2-3 is "00", then bit 1 returns current
state as "0" or "1".
When D1, bit 0 is "0" and bit 2-3 is not "00", then read location
7706-7709 which returns the count of the as defined in bit 2-3.
When D1, bit 0 is "1" then the value can be read or set.
0
2-3 Pin D1 Control 00: General Purpose I/O
01: Count interrupts on rising edge
10: Count interrupts on falling edge
11: Count interrupts on either edge
0
4 Pin D2 Direction 0: Input
1: Output
0
5 Pin D2 State When D2, bit 4 is "0" then bit 5 returns current state as "0" or "1".
When D2, bit 4 is "1" then the value can be read or set.
0
6-7 Reserved N/A 0
The voltage reference for this A/D converter is 2.5 VDC +/- 60[mVDC] across the operating
temperature range.