I/o object types – Echelon Neuron C User Manual

Page 40

Advertising
background image

28

Focusing on a Single Device

objects can also be linked to Neuron C events, because changes in I/O often affect

task scheduling.

The Neuron C declaration syntax for I/O objects is described in detail in the

I/O

Model Reference for Smart Transceivers and Neuron Chips

.

I/O Object Types

Many I/O models are available for Neuron Chips and Smart Transceivers.
Certain I/O models are available only for specific chip types, but most are

available to all Neuron Chips and Smart Transceivers. A Neuron C application

instantiates an I/O model as an I/O object.

The I/O models are grouped into the following categories:

Direct I/O Models

are based on a logic level at the I/O pins; none of the

Neuron Chip or Smart Transceiver hardware's timer/counters are used in

conjunction with these I/O models. These models can be used in multiple,

overlapping combinations within the same Neuron Chip or Smart
Transceiver. Direct I/O models include the following types:

Input Model Types

Output Model Types

bit

bit

byte

byte

leveldetect

nibble

nibble

touch

touch

Timer/Counter I/O Models

use a timer/counter circuit in the Neuron Chip

or Smart Transceiver. Each Neuron Chip and each Smart Transceiver
has two timer/counter circuits: One whose input can be multiplexed, and

one with a dedicated input. Timer/counter I/O models include the

following types:

Input Model Types

Output Model Types

dualslope

edgedivide

edgelog

frequency

infrared

infrared_pattern

ontime

oneshot

period

pulsecount

pulsecount

pulsewidth

quadrature

stretchedtriac

totalcount

triac

triggeredcount

Serial I/O Models

are used for transferring data serially over a pin or a

set of pins. The neurowire, i2c, magcard, magcard_bitstream, magtrack1,

and serial I/O models are mutually exclusive within a single Neuron Chip
or Smart Transceiver. Both the input and output versions of a serial I/O

model can coexist within a single Neuron Chip or Smart Transceiver.
Serial I/O models include the following types:

Serial Input Model Types

Serial Output Model Types

bitshift

bitshift

magcard

serial

magcard_bitstream

Advertising