beautypg.com

Usage, Example 1 – Echelon I/O Model Reference for Smart Transceivers and Neuron Chips User Manual

Page 192

background image

182

Timer/Counter Output Models

checks for the availability of this feature. This code logs an error if the chip

does not support the feature.

io-object-name

A user-specified name for the I/O object, in the ANSI C format for variable

identifiers.

[pulse]

Specifies that the output signal produces a 25 μs pulse at the delay point.

The output pulse is generated by an internal clock with a constant period of

25.6 μs (independent of the Neuron input clock). Because the input sync edge
is asynchronous relative to the internal clock, there is a jitter associated with
the pulse output relative to the input sync edge. This jitter spans a period of

25.6 μs.

Usage

unsigned long

output-value

;

io_out(

io-object-name

,

output-value

);

Example 1

IO_0 output triac sync (IO_5) ioTriac;

when (...) {
io_out(ioTriac, 325); // delay pulse by 8.3 ms
}

when (...) {
io_out(ioTriac, 650); // delay pulse by 16.6 ms
}

when (...) {
io_out(ioTriac, 0); // full on
}