Pulsecount output – Echelon FT 3150 Smart Transceiver User Manual

Page 90

Advertising
background image

Chapter 3 - Input/Output Interfaces

84

FT 3120 / FT 3150 Smart Transceiver Data Book

Pulsecount Output

A timer/counter may be configured to generate a series of pulses. The number of pulses output is in the range 0 to
65,535, and the output waveform is a square wave of 50% duty cycle. This function suspends application processing
until the pulse train is complete. The frequency of the waveform may be one of eight values given by Table 3.7 in
section , Notes with clock select values of 0 through 7. This object is useful for external counting devices that can
accumulate pulse trains, such as stepper motors. See Figure 3.47.

Figure 3.47 Pulsecount Output

The return from this function does not occur until all output pulses have been produced.

t

fout

is the time from function call to first output pulse. Therefore, the calling of this function ties up the

application processor for a period of N x (pulse period) + t

fout

+ t

ret

, where N is the number of specified output

pulses.

The polarity of the output depends on whether or not the invert option was used in the declaration of the function
block. The default is low with high pulses.

Symbol

Description

Typ @

10MHz

t

fout

Function call to first active output pulse edge

115 µs

t

ret

Return from function

5 µs

RETURN FROM

io_out()

FUNCTION CALL

t

ret

t

fout

1ST ACTIVE

OUTPUT

PULSE EDGE

io_out()

FUNCTION CALL

System Clock

Divide Chain

Timer/Counter 1

Timer/Counter 2

IO10

IO9

IO8

IO0
IO1
IO2
IO3
IO4
IO5
IO6
IO7

High Current Sink Drivers

Advertising
This manual is related to the following products: