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

Page 156

Advertising
background image

146 Timer/Counter

Input

Models

0.839 s

STOP

START

t

ret

t

fin

READ

TIMER/

COUNTER
FLAG AND

EVENT

REGISTER

CLEAR FLAG

END OF

io_in()

START OF

io_in()

mux

Event Register

IO10

IO9

IO8

IO0
IO1
IO2
IO3

IO4
IO5

IO6
IO7

System Clock

Divide Chain

Optional Pull-Up Resistors for 3100 Family Devices

Event Register

Timer/Counter 2

Timer/Counter 1

IO11

Figure 54. Pulsecount Input and Timing

Table 55. Pulsecount Input Latency Values for Series 3100 Devices

Symbol

Description

Typical at 10 MHz

t

fin

Function call to input sample

86 μs

t

ret

Return from function

52 μs or 22 μs

Note: If the measurement is new, t

ret

= 52 μs. If a new time is not being

returned, t

ret

= 22 μs.

Programming Considerations

For pulsecount input, the data type of the return value for the io_in( ) function is

an unsigned long.

Advertising