beautypg.com

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

Page 5

background image

I/O Model Reference

v

Table of Contents

Welcome.........................................................................................................iii

Audience ........................................................................................................iii

Related Documentation ................................................................................iii

Chapter 1. Introduction ..................................................................................... 1

Overview ......................................................................................................... 2

Summary of the Available I/O Models.......................................................... 2

Hardware Considerations............................................................................ 10

I/O Timing Issues......................................................................................... 12

Scheduler-Related I/O Timing Information......................................... 13

Firmware and Hardware-Related I/O Timing Information................ 14

Programming Considerations ..................................................................... 15

Declaring I/O Objects in Neuron C....................................................... 16

Overlaying I/O Objects .......................................................................... 17

Multiplexing I/O Models ....................................................................... 18

Performing I/O: Functions and Events ................................................ 18

General I/O Functions .................................................................... 18

I/O Events........................................................................................ 22

Using Functions or Events ............................................................. 25

I/O Functions for Timer/Counter Objects...................................... 26

I/O Measurements, Outputs, and Functions ....................................... 28

Direct, Serial, and Parallel I/O Models.......................................... 28

Timer/Counter I/O Models.............................................................. 28

Output Models................................................................................. 29

Chapter 2. Direct I/O Models........................................................................... 31

Bit Input/Output .......................................................................................... 32

Hardware Considerations ..................................................................... 32

Programming Considerations............................................................... 34

Syntax .............................................................................................. 34

Usage ............................................................................................... 35

Bit Input Example .......................................................................... 35

Bit Output Example........................................................................ 35

Byte Input/Output........................................................................................ 35

Hardware Considerations ..................................................................... 35

Programming Considerations............................................................... 37

Syntax .............................................................................................. 37

Usage ............................................................................................... 37

Byte Input Example........................................................................ 37

Byte Output Example ..................................................................... 38

Leveldetect Input ......................................................................................... 38

Hardware Considerations ..................................................................... 38

Programming Considerations............................................................... 39

Syntax .............................................................................................. 40

Usage ............................................................................................... 40

Example ........................................................................................... 40

Nibble Input/Output .................................................................................... 40

Hardware Considerations ..................................................................... 40

Programming Considerations............................................................... 42

Syntax .............................................................................................. 42

Usage ............................................................................................... 43

Nibble Input Example .................................................................... 43