
DAEnetIP3
User Manual
-
33
-
8. Digital Inputs Port (Port B)
Port B is 8 bit digital inputs port. Each channel has pull-up resistor to +3.3V.
8.1.
Port B web page
Figure 29.
Port B web page
– 8 x digital inputs
8.2.
Reading the digital inputs
The digital inputs can be read separately (only single line) or it can be read the
whole port at a time. The state of the digital input mode can be read anytime and it
doesn‟t matter in what mode works each input channel.
The controller has simple digital input filter. It measures the signal level on the
digital input pin and stores it in variable with name diValue. This variable will contain
0 or 1 (depending what was the level detected by the controller). After about 100 ms,
the controller measures the input level again and stores the new value in
diNewValue. If the diValue is different than diNewValue that‟s mean the input level is
not stable and the controller does not accept it. But if diValue is the same as
diNewValue that‟s mean the digital input signal is stable and it can be accepted. After
that diValue = diNewValue and after about 100ms the algorithm is repeated. In this
way DAEnetIP3 has simple digital input filter. The controller can handle only digital
signals with frequency less than 10Hz (1/0.1s).
8.3.
Port B modes
8.3.1.
Simple reading
This mode is simple reading of the digital inputs value. There are no reactions
based on this input. In this mode it is just for monitoring.
8.3.2.
Set output during rising edge