Special-Purpose Digital I/O

There are a few special digital I/O functions that are implemented directly on the ETH32 that may be useful in certain situations. Firstly, a pulse bit command allows you to rapidly pulse one of the output pins a specified number of times. This can be useful in initialization of an external device, such as a counter chip, if a line needs to be clocked a specific number of times.

Secondly, the ETH32 implements a command that allows a port's input value to be read repeatedly until two successive reads match. This can be useful if you are reading a multi-bit value such as a counter chip. Without this functionality, there would be a slight chance of reading the value during a transition period and obtaining an invalid value. By requiring that two successive reads match, that possibility is eliminated.

Applicable Functions

TaskC / C++.NET LanguagesVisual Basic 6
Pulse biteth32_pulse_bitPulseBit MethodPulseBit Method
Successive readeth32_input_successiveInputSuccessive MethodInputSuccessive Method