Syntax – Echelon I/O Model Reference for Smart Transceivers and Neuron Chips User Manual

Page 174

Advertising
background image

164

Timer/Counter Output Models

element of the

timing-table

controls the last active period before toggling to idle

(off) and returning from the io_out( ) function. If the number of elements in the
timing table is even, the output will be toggled on at the end of the io_out( )

function, which is typically not the desired behavior.

Syntax

pin

[output] infrared_pattern [invert] [clock(

clock-expr

)]

io-object-name

[=

initial-

output-level

] ;

pin

Specifies a Neuron output pin. The value can be IO_0 or IO_1.

invert

Set this option to specify that the output pin is idle at 1. Otherwise, the

output pin is idle at 0.

clock(

const-expr

)

Specifies a clock in the range 0 to 7, where 0 is the fastest clock and 7 is the

slowest clock. The default clock for infrared_pattern output is clock(0). You

can use the io_set_clock( ) function to change the clock at run time. Table 61
shows the clock values for a Series 3100 device with a 10 MHz input clock

and a Series 5000 device with an 80 MHz system clock (the values scale

inversely proportional to the input or system clock).

Table 61. Clock Values

Range and Resolution Period

Clock

Series 3100 (10 MHz Clock)

Series 5000 (80 MHz Clock)

0 (default)

800 ns to 26.21 ms in steps of 400 ns
(1-65535)

12.8 μs to 419.36 ms in steps of 25 ns
(1-65535)

1

0 to 52.42 ms in steps of 800 ns
(0-65535)

0 to 838.72 ms in steps of 50 ns
(0-65535)

2

0 to 104.86 ms in steps of 1.6 μs

0 to 1.677 sec in steps of 100 ns

3

0 to 209.71 ms in steps of 3.2 μs

0 to 3.355 sec in steps of 200 ns

4

0 to 419.42 ms in steps of 6.4 μs

0 to 6.71 sec in steps of 400 ns

5

0 to 838.85 ms in steps of 12.8 μs

0 to 13.42 sec in steps of 800 ns

6

0 to 1.677 sec in steps of 25.6 μs

0 to 26.84 sec in steps of 1.6 μs

7

0 to 3.355 sec in steps of 51.2 μs

0 to 53.68 sec in steps of 3.2 μs

Advertising