Echelon I/O Model Reference for Smart Transceivers and Neu Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Matériel Echelon I/O Model Reference for Smart Transceivers and Neu. Echelon I/O Model Reference for Smart Transceivers and Neuron Chips User Manual Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 209
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs

Résumé du contenu

Page 1 - Transceivers and Neuron Chips

0 7 8 - 0 3 9 2 - 0 1B®I/O Model Reference for SmartTransceivers and Neuron Chips

Page 2

x Index...

Page 3 - Related Documentation

90 Serial I/O Models Table 34. Magtrack1 Input Latency Values for Series 3100 Devices Symbol Description Minimum T

Page 4 - Series 5000 Chip Data Book

I/O Model Reference 91 io_in( ) function. The data is stored without the parity bit, and the data includes the start and end sentinel charac

Page 5 - Table of Contents

92 Serial I/O Models Example // In this example I/O pin IO_7 is connected to a // ~Data_valid signal which is asser

Page 6

I/O Model Reference 93 Neurowire Master Mode In Neurowire master mode, pin IO8 is the clock (driven by the Smart Transceiver), IO9 is the se

Page 7

94 Serial I/O Models Table 35. Neurowire Master Output Latency Values for Series 3100 Devices Symbol Description T

Page 8

I/O Model Reference 95 DATA OUTDATA ININPUTCLOCKTIMEtretSTARTOFio_in()END OFio_in()DATAOUTPUTCLOCKAND DATASAMPLEDDATAOUTPUTtdockitcklodotcklo

Page 9

96 Serial I/O Models 5. When the input clock is low, return to step 1 if there are more bits to be processed. 6. El

Page 10

I/O Model Reference 97 This pragma must appear prior to the use of any I/O function, such as io_in( ) or io_out( ). For examples on the use

Page 11 - Introduction

98 Serial I/O Models kbaud (const-expr) Specifies the bit rate for a Neurowire master. The expression const-expr ca

Page 12 - Overview

I/O Model Reference 99 communication interface that is compatible with EIA-232 serial interfaces (with the exception of voltage levels). Ext

Page 13

I/O Model Reference 1 1 Introduction This chapter provides an overview of the available I/O models for Series 3100 devices and Series 5000

Page 14 - Parallel I/O Models

100 Serial I/O Models STARTSTARTSTOP Figure 36. SCI I/O and Timing Programming Considerations You can enable and dis

Page 15 - Serial I/O Models

I/O Model Reference 101 If you do not specify the #pragma specify_io_clock compiler directive, the compiler uses a default I/O clock rate of

Page 16

102 Serial I/O Models io-object-name Specifies a name for the I/O object, in the ANSI C format for variable identifi

Page 17

I/O Model Reference 103 Example #pragma specify_io_clock "10 MHz" IO_8 sci twostopbits baud(SCI_2400) ioSci; unsigned short buff

Page 18 - Overlaying I/O Objects

104 Serial I/O Models Parity is not supported for this model. The application code can use bit I/O pins for flow con

Page 19

I/O Model Reference 105 STARTSTARTSTOP Figure 38. Serial Output Timing Table 38. Serial Output Latency Values for Series 3100 Devices Symbol

Page 20

106 Serial I/O Models • Serial input can only work successfully if the application is responsive enough to capture t

Page 21

I/O Model Reference 107 io-object-name A user-specified name for the I/O object, in the ANSI C format for variable identifiers. Usage unsi

Page 22 - I/O Timing Issues

108 Serial I/O Models • In master mode, pin IO8 is the clock (driven by the Smart Transceiver), IO9 is serial data i

Page 23

I/O Model Reference 109 Clock Bit Rate for 10 MHz Bit Rate for 6.5536 MHz Note: For Clock 5 and higher bit rates, the bit rate shown is th

Page 24 - Information

2 Introduction Overview Echelon’s Neuron Chips and Smart Transceivers connect to application-specific external hardwa

Page 25

110 Serial I/O Models Table 42. SPI Slave Mode for Series 5000 Devices Parameter Value for 80 MHz Value for 40 MHz Va

Page 26

I/O Model Reference 111 Up to 255 bytes can be bi-directionally transferred at a time. This I/O model depends on interrupts to process data

Page 27

112 Serial I/O Models Table 44. SPI Master Mode I/O Latency Values for Series 3100 Devices Symbol Description Min

Page 28 - General I/O Functions

I/O Model Reference 113 Symbol Description Minimum Typical Maximum Tdih Data in hold 10 ns — — IO0IO10IO9IO8IO7IO6IO5IO4IO3IO2IO1

Page 29 - Neuron C Reference Guide

114 Serial I/O Models Table 45. SPI Slave Mode I/O Latency Values for Series 3100 Devices Symbol Description Minimu

Page 30

I/O Model Reference 115 select(IO_7) Set this option to have pin IO_7 used as a slave select (SS) signal in slave mode. In slave mode, this

Page 31 - Neuron C Programmer’s Guide

116 Serial I/O Models You can call the io_set_clock( ) function to change the clock divisor and clock edge at run-tim

Page 32

I/O Model Reference 117 extra bytes. For example, if a transfer is set up by the slave for 100 bytes, and there is a need to stop the transf

Page 33

118 Serial I/O Models Wiegand Input The wiegand input model provides an easy interface to any card reader that suppo

Page 34

I/O Model Reference 119 IO10IO9IO8IO0IO1IO2IO3IO4IO5IO6IO7Optional Pull-Up Resistors (3100 Family Only)IO11tdwDATA ASTART OFio_in()END OFio_i

Page 35 - Using Functions or Events

I/O Model Reference 3 • Timer/Counter I/O Models use a timer/counter circuit in the Neuron Chip or Smart Transceiver. Each Neuron Chip and e

Page 36

120 Serial I/O Models • The zero data bit signal • A one data bit signal Data pulses appear exclusively of each ot

Page 37

I/O Model Reference 121 specification denotes the lower-numbered pin of the pair and can be IO_0 through IO_6. timeout (pin-nbr) Optionally

Page 39 - Output Models

I/O Model Reference 123 5 Timer/Counter Input Models This chapter describes timer/counter input models. Timer/counter I/O models use a tim

Page 40

124 Timer/Counter Input Models Introduction A Neuron Chip or Smart Transceiver has two 16-bit timer/counters: • For

Page 41

I/O Model Reference 125 Important: The first measured value of a timer/counter is always discarded to eliminate the possibility of a bad mea

Page 42 - Bit Input/Output

126 Timer/Counter Input Models the input clock). Faster conversion rates are attainable at the expense of bit resolut

Page 43

I/O Model Reference 127 Timer/Counter 1Timer/Counter 2IO10IO9IO8IO0IO1IO2IO3IO4IO5IO6IO7muxControl OutputFromComparatorIO11OUTPUT(IO0 OR IO1)

Page 44

128 Timer/Counter Input Models For additional information regarding dualslope A/D conversion, see the Analog to Digita

Page 45 - Byte Input/Output

I/O Model Reference 129 TCCLK_* macros defined in <echelon.h>). This function overrides the resolution value specified for clock() wit

Page 46

4 Introduction Table 1. Summary of the Direct I/O Models I/O Model Applicable I/O Pins Total Pins per Object Input/O

Page 47 - Byte Input Example

130 Timer/Counter Input Models For a Series 5000 device, this I/O model measures a series of both high and low input s

Page 48 - Leveldetect Input

I/O Model Reference 131 Table 50. Edgelog Input Latency Values for Series 3100 Devices Symbol Description Minimum Typical Maximum tsetup

Page 49

132 Timer/Counter Input Models Changes the maximum value for each period measurement for an edgelog device declared wi

Page 50 - Nibble Input/Output

I/O Model Reference 133 io-object-name A user-specified name for the I/O object, in the ANSI C format for variable identifiers. In Figure 5

Page 51

134 Timer/Counter Input Models // Retrieve edge log edges = io_in(ioTimeStream, buffer, 20); // Correct for pr

Page 52

I/O Model Reference 135 This I/O model can be used with an off-the-shelf infrared encoder/decoder chip that uses the NEC IR protocol to quick

Page 53 - Touch Input/Output

136 Timer/Counter Input Models • A bit_count argument, which is the expected number of data bits to be received and s

Page 54

I/O Model Reference 137 Table 52. Clock Values Range and Resolution Period Clock Series 3100 (10 MHz Clock) Series 5000 (80 MHz Clock) 0

Page 55

138 Timer/Counter Input Models MHz, and the timer/counter clock is clock (7). This yields a 25.6 μs timer/counter clo

Page 56

I/O Model Reference 139 time_on (ns) = return_value * 2000 * 2^(value) / 10 MHz where value ranges from 0..15 You can use this model to impl

Page 57

I/O Model Reference 5 Table 3. Summary of the Serial I/O Models I/O Model Applicable I/O Pins Total Pins per Object Input/Output Value Page

Page 58

140 Timer/Counter Input Models Symbol Description Typical at 10 MHz Note: If the measurement is new, tret = 52 μs.

Page 59

I/O Model Reference 141 For an application running on a Series 5000 device, you can specify an increased resolution for the timer base clock

Page 60

142 Timer/Counter Input Models Hardware Considerations A timer/counter can be configured to measure the period from on

Page 61

I/O Model Reference 143 READTIMER/COUNTERFLAG ANDEVENTREGISTERCLEAR FLAGEND OFio_in()START OFio_in()STOP TIMERCOUNTERSTART TIMERCOUNTERTIMEIN

Page 62 - Muxbus Input/Output

144 Timer/Counter Input Models Programming Considerations For period-input, the data type of the return-value for the

Page 63

I/O Model Reference 145 io-object-name A user-specified name for the I/O object, in the ANSI C format for variable identifiers. Usage unsi

Page 64

146 Timer/Counter Input Models 0.839 sSTOPSTARTtrettfinREADTIMER/COUNTERFLAG ANDEVENTREGISTERCLEAR FLAGEND OFio_in()ST

Page 65 - Parallel Input/Output

I/O Model Reference 147 The input is latched every 50 ns for a Series 3100 device with a 40 MHz input clock, or every 12.5 ns for a Series 50

Page 66

148 Timer/Counter Input Models Quadrature Input The quadrature I/O model is used to read a shaft or positional encode

Page 67

I/O Model Reference 149 ABread, resetread, resetread, resetread, resettretREADTIMER/COUNTERFLAG ANDEVENTREGISTERCLEAR FLAGEND OFio_in()START

Page 68

6 Introduction Table 4. Summary of the Timer/Counter Input Models I/O Model Applicable I/O Pins Total Pins per Objec

Page 69

150 Timer/Counter Input Models Programming Considerations A signed long value is returned from the io_in( ) function,

Page 70

I/O Model Reference 151 Example IO_4 input quadrature ioDial; long angle = 0; when (io_update_occurs(ioDial)) { angle += input_value;

Page 71 - Master Program

152 Timer/Counter Input Models read input_value = 4, resetread, resettrettfinREADTIMER/COUNTERFLAG ANDEVENTREGISTERCLE

Page 72 - Slave Program

I/O Model Reference 153 Syntax pin [input] totalcount [mux | ded] [invert] io-object-name; pin An I/O pin. Totalcount input can specify

Page 74

I/O Model Reference 155 6 Timer/Counter Output Models This chapter describes timer/counter output models. Timer/counter I/O models use a t

Page 75

156 Timer/Counter Output Models Edgedivide Output The edgedivide I/O model is used to control an output pin by toggling its logic state every outpu

Page 76 - Transferring Data

I/O Model Reference 157 Figure 58. Edgedivide Output and Timing Table 58. Edgedivide Output Latency Values for Series 3100 Devices Symbol

Page 77 - Resynchronization Procedure

158 Timer/Counter Output Models Symbol Description Minimum Typical Maximum tret Return from function — 13 μs — Programming Considerations F

Page 78

I/O Model Reference 159 Example IO_0 output edgedivide sync(IO_4) ioDivider; ... when (reset) { // There is a 60Hz signal at pin IO_4.

Page 79

I/O Model Reference 7 I/O Model Applicable I/O Pins Total Pins per Object Input/Output Value Page Pulsewidth Output IO0, IO1 1 0 – 100%

Page 80 - Using the IRQ Signal

160 Timer/Counter Output Models System ClockDivide ChainTimer/Counter 1Timer/Counter 2IO10IO9IO8IO0IO1IO2IO3IO4IO5IO6IO7High Current Sink DriversIO1

Page 81

I/O Model Reference 161 Syntax pin [output] frequency [invert] [clock (const-expr)] io-object-name [=initial-output-level]; pin Specifies

Page 82

162 Timer/Counter Output Models when (...) { io_out(ioAlarm, 100); // outputs 3.125kHz signal at clock(3) } when (...) { io_out(ioAlarm,

Page 83

I/O Model Reference 163 Programming Considerations The frequency of the square wave output is controlled by the clock-expr setting and by th

Page 84

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_

Page 85

I/O Model Reference 165 io-object-name Specifies a name for the I/O object, in the ANSI C format for variable identifiers. initial-output-l

Page 86 - Bitshift Input/Output

166 Timer/Counter Output Models the oneshot before the end of the pulse causes it to continue for the new duration. The resolution and range of the

Page 87

I/O Model Reference 167 Symbol Description Typical at 10 MHz Note: The maximum value for tjit is 1 timer/counter clock period. Programmin

Page 88

168 Timer/Counter Output Models initial-output-level A constant expression, in ANSI C format for initializers, used to set the state of the output

Page 89

I/O Model Reference 169 Output on page 190 for the frequency of the waveform for various clock select values. This model is useful for exter

Page 90 - I2C Input/Output

8 Introduction The following guidelines for declaring I/O object types apply to the I/O models shown in Figure 1 on p

Page 91

170 Timer/Counter Output Models Programming Considerations The output_value determines the number of pulses output. When this I/O model is used, th

Page 92

I/O Model Reference 171 Example IO_1 output pulsecount ioTrainOut; when (...) { // will produce 100 pulses on pin 1 // each pulse of

Page 93

172 Timer/Counter Output Models • If the output is disabled, the new (non-zero) output starts immediately after tfout • For a new output value of

Page 94 - Magcard Bitstream Input

I/O Model Reference 173 Programming Considerations For 8-bit pulsewidth output, the data type of output-value for the io_out( ) function is a

Page 95

174 Timer/Counter Output Models Usage unsigned int output-value; // for 8-bit output unsigned long output-value; // for 16-bit output io_out(io-o

Page 96 - Magcard Input

I/O Model Reference 175 Figure 65. Series 3100 Triac Output Figure 66 on page 176 shows basic triac operation for a Series 5000 device using

Page 97

176 Timer/Counter Output Models Figure 66. Series 5000 Stretched Triac Output Hardware Considerations On a Smart Transceiver, a timer/counter can

Page 98

I/O Model Reference 177 The output gate pulse is asserted after the control period and is deasserted at or near the next sync input point. A

Page 99 - Magtrack1 Input

178 Timer/Counter Output Models Syntax pin [output] stretchedtriac sync (pin-nbr) [clockedge (+)|(-)|(+-)] frequency(value) i

Page 100 - Programming Considerations

I/O Model Reference 179 • Operate at a non-standard power line frequency • Provide higher-than-typical tolerances to changes in frequency

Page 101 - Syntax

I/O Model Reference 9 Parallel I/OTIMER/COUNTER INPUT MODELSSERIAL I/OMODELSPARALLEL I/O MODELSDIRECT I/O MODELSBit Input, Bit OutputByte Inp

Page 102 - Hardware Considerations

180 Timer/Counter Output Models The actual active edge of the sync input and the triac gate output can be set by using the clockedge or invert param

Page 103 - Neurowire Master Mode

I/O Model Reference 181 equivalent of an OFF state. When using the level output configuration, there is always some amount of output signal;

Page 104 - Neurowire Slave Mode

182 Timer/Counter Output Models checks for the availability of this feature. This code logs an error if the chip does not support the feature. io-

Page 105

I/O Model Reference 183 Figure 69. Triac Output, Example 1 Example 2 This example does not apply to model 0 Neuron 3150 Chips. IO_1 output

Page 106

184 Timer/Counter Output Models This model applies to Series 3100 Neuron Chips and Smart Transceivers, and to Series 5000 Neuron Processors and Smar

Page 107

I/O Model Reference 185 Table 65. Triggered Count Output Latency Values for Series 3100 Devices Symbol Description Typical at 10 MHz tfout

Page 108 - SCI (UART) Input/Output

186 Timer/Counter Output Models In Figure 72, an io_out( ) function call is executed with a count argument of 11. After 11 negative edges at the in

Page 109

I/O Model Reference 187 A Timer/Counter Periods and Resolution This appendix describes resolution, range, rate, frequency, and period inform

Page 110

188 Timer/Counter Periods and Resolution Timer/Counter Resolution and Maximum Range Various combinations of I/O pins

Page 111

I/O Model Reference 189 7 25.6 μs 1678 ms 51.2 μs 3355 ms To Calculate for Other Clock Rates: • Resolution = InputClockntClockSelec )(2+

Page 112

Echelon, LONWORKS, LONMARK, NodeBuilder, LonTalk, Neuron, 3120, 3150, ShortStack, LonMaker, and the Echelon logo are trademarks of Echelon Corporation

Page 113 - Serial Input/Output

10 Introduction Example: The following I/O models can be combined for a Neuron Chip or Smart Transceiver: • 1 para

Page 114

190 Timer/Counter Periods and Resolution Table 67. Series 5000 Timer/Counter Resolution and Maximum Range Dualslope,

Page 115

I/O Model Reference 191 Series 3100 Square Wave Output For pulsewidth short output and pulsecount output, Table 68 lists the possible choices

Page 116

192 Timer/Counter Periods and Resolution Series 5000 Square Wave Output For pulsewidth short output and pulsecount ou

Page 117 - SPI Input/Output

I/O Model Reference 193 Timer/Counter Pulsetrain Output The following sections list the possible choices for pulsetrain repetition frequencie

Page 118

194 Timer/Counter Periods and Resolution If you specify an alternate clock value (using the io_set_clock() function w

Page 119

I/O Model Reference 195 Index # #pragma codegen use_i2c_version_1, 83 #pragma enable_io_pullups, 10 #pragma enable_multiple_baud, 96, 106 #pr

Page 120

196 Index I I/O A/D converter, 125 angular position measurement, 148 ASCII data, 35 BCD data, 40 D/A converter, 138,

Page 121

I/O Model Reference 197 L lamp dimmers, 174, 179 latch, 38 latency function call, 15 scheduler, 13 LCD displays, 103 leveldetect input, 38 M

Page 122 - SPI Master (Neurowire

198 Index token passing, 66 totalcount input, 151 touch I/O, 43 touch_bit function, 48 touch_byte function, 48 touch_

Page 123 - SPI Slave

www.echelon.com

Page 124

I/O Model Reference 11 used by the application are tied high or low on the PC board, or are left unconnected and configured as a bit output b

Page 125

12 Introduction For Series 5000 devices, the sample rate is equivalent to the system clock rate. For a signal to be

Page 126

I/O Model Reference 13 page 107 for more information. Also, for Series 5000 devices, when hardware interrupt tasks run in the application (A

Page 127

14 Introduction end-of-loopprocessingbeginsTIMEIO_01stwhenclause(Not to scale)IO_out callIO_out call IO_out calltwwtw

Page 128 - Wiegand Input

I/O Model Reference 15 The total latency for a particular function call, from start to end, has two separate parts: • Processing time requir

Page 129

16 Introduction • Driving a Seven Segment Display with the Neuron Chip engineering bulletin (part no. 005-0014-01) •

Page 130

I/O Model Reference 17 io-object-name A user-supplied name for the I/O object, in the ANSI C format for variable identifiers. The descripti

Page 131

18 Introduction The IO2 pin is an output bit I/O object (because the output is declared last). Assuming that the io_

Page 132

I/O Model Reference 19 functions because they are included by the Neuron C compiler. The compiler enforces type checking for the parameters

Page 133 - Timer/Counter Input Models

I/O Model Reference iii Welcome For the various input/ouput (I/O) pins on an Echelon® Smart Transceiver, an Echelon Neuron® 5000 Processor, or

Page 134

20 Introduction return-value = io_in ( io-object-name [, args] ) return-value The current value read from the input

Page 135 - Dualslope Input

I/O Model Reference 21 #define ON 1 #define OFF 0 IO_0 output bit ioRelay; // or IO_0 output bit ioRelay = ON; The second (commented out

Page 136

22 Introduction } } ... I/O Events An alternative to using the explicit io_in( ) function is to associate an inpu

Page 137

I/O Model Reference 23 I/O Model Event ontime Event occurs if the measured time has changed from the last time. period Event occurs if the

Page 138 - Neuron C Resources

24 Introduction input_value Variable You use the input_value variable to retrieve the input value for an I/O object

Page 139 - Edgelog Input

I/O Model Reference 25 Using Functions or Events To determine whether an input value is new, you can use the io_in( ) function with the input

Page 140

26 Introduction I/O Functions for Timer/Counter Objects For multiplexed I/O objects, the last timer/counter I/O objec

Page 141

I/O Model Reference 27 } when (io_update_occurs(inOntime)) { io_select(inPeriod, 3); } When a new clock is set for an I/O object using

Page 142

28 Introduction int slope1Clock = 2; IO_5 input ontime clock (2) ioSlope1; IO_6 input period clock (1) ioCycleA; /

Page 143

I/O Model Reference 29 returned by subsequent calls to io_in( ) until a new value is latched based on the timing in the hardware. The period

Page 144 - Infrared Input

iv • Mini FX User’s Guide (078-0398-01A). This manual describes how to use the Mini FX Evaluation Kit. You can use the Mini FX Evaluation Kit to dev

Page 146

I/O Model Reference 31 2 Direct I/O Models This chapter describes direct input/output models. Direct I/O models are based on a logic level

Page 147

32 Direct I/O Models Bit Input/Output The bit I/O model is used to read or control the logical state of a single pin

Page 148 - Ontime Input

I/O Model Reference 33 TIMEINPUT PINSAMPLEDEND OFio_in()START OFio_in()INPUTtfintret Figure 8. Bit Input Timing Table 11. Bit Input Latency

Page 149

34 Direct I/O Models Table 12. Bit Output Latency Values for Series 3100 Devices Symbol Description Typical at 10

Page 150

I/O Model Reference 35 Usage unsigned int input-value; unsigned int output-value; input-value = io_in(io-object-name); io_out(io-object-n

Page 151 - Period Input

36 Direct I/O Models IO10IO9IO8IO0IO1IO2IO3IO4IO5IO6High Current Sink Drivers Optional Pull-Up ResistorsIO10IO9IO8IO

Page 152

I/O Model Reference 37 Table 14. Byte Output Latency Values for Series 3100 Devices Symbol Description Typical at 10 MHz tfout Function c

Page 153

38 Direct I/O Models } when (io_changes(ioKeyboard)) { character = input_value; } Byte Output Example IO_0 o

Page 154

I/O Model Reference 39 Figure 13. Leveldetect for Series 3100 Devices and Input Timing Table 15. Leveldetect Input Latency Values for Serie

Page 155 - Pulsecount Input

I/O Model Reference v Table of Contents Welcome...

Page 156

40 Direct I/O Models independently from I/O objects, and can be triggered by positive or negative level, rising or f

Page 157

I/O Model Reference 41 The direction of nibble ports can be changed between input and output dynamically under application control (see Progr

Page 158 - Quadrature Input

42 Direct I/O Models Figure 16. Nibble Output Timing Table 17. Nibble Output Latency Values for Series 3100 Devic

Page 159

I/O Model Reference 43 through IO_4. The lowest numbered I/O pin is defined as the least significant bit of the nibble data. io-object-name

Page 160

44 Direct I/O Models designated I/O pin. This I/O pin is operated as an open-drain device in order to support the i

Page 161 - Totalcount Input

I/O Model Reference 45 Figure 17. Touch I/O for Series 3100 Devices and Timing Table 18. Touch I/O Latency Values for Series 3100 Devices S

Page 162

46 Direct I/O Models Symbol Description Minimum Typical Maximum twrd Start pulse edge to Smart Transceiver rele

Page 163

I/O Model Reference 47 This argument has a minimum value of 7.2 μs (t_low = 1) from the start of tLOW. The incremental resolution of t_low i

Page 164

48 Direct I/O Models limited to 275 μs, after which the touch_reset( ) function returns a -1 value with the assumpti

Page 165 - Timer/Counter Output Models

I/O Model Reference 49 the 1-Wire bus. The last_discrepancy variable is used internally and should not be modified. To start a new search:

Page 166 - Edgedivide Output

vi Nibble Output Example... 43 Touch Input/Output ...

Page 167

50 Direct I/O Models Example // In this example, a leveldetect input is used on the // 1-Wire interface to detect

Page 168

I/O Model Reference 51 3 Parallel I/O Models This chapter describes parallel input/output models. Parallel I/O models are used for high-spe

Page 169 - Frequency Output

52 Parallel I/O Models Muxbus Input/Output The multiplexed bus (muxbus) I/O model provides a means of performing par

Page 170

I/O Model Reference 53 Figure 18. Muxbus I/O for Series 3100 Devices and Timing Table 20. Muxbus I/O Latency Values for Series 3100 Devices

Page 171

54 Parallel I/O Models Symbol Description Minimum Typical Maximum tfin io_in() call to valid address — 26.4 μs

Page 172 - Infrared Pattern Output

I/O Model Reference 55 A user-specified name for the I/O object, in the ANSI C format for variable identifiers. Usage unsigned int data-byt

Page 173

56 Parallel I/O Models • Master and slave A connections are typically used for parallel port interfaces and for Neur

Page 174

I/O Model Reference 57 Figure 19. Master Mode and Slave A Mode The maximum data transfer rate is 1 byte per 4 processor instruction cycles (

Page 175 - Oneshot Output

58 Parallel I/O Models Table 21. Master Mode Parallel I/O Latency Values for Series 3100 Devices Symbol Description

Page 176

I/O Model Reference 59 Symbol Description Minimum Typical Maximum Notes: 1. XIN represents the period of the Smart Transceiver input clo

Page 177

I/O Model Reference vii Example ... 88 Magtrack1 Inpu

Page 178 - Pulsecount Output

60 Parallel I/O Models Table 22. Slave A Mode Parallel I/O Latency Values for Series 3100 Devices Symbol Description

Page 179

I/O Model Reference 61 input buffer of the slave (because the master owns the token after reset and has the first option to write on the bus)

Page 180

62 Parallel I/O Models unsigned int i; when (reset) { outData.length = OUT_LEN; // assign output length for(i=0;

Page 181 - Pulsewidth Output

I/O Model Reference 63 unsigned int buffer[MAX_IN]; } inData; unsigned int i; when (reset) { outData.length = OUT_LEN; // assign outp

Page 182

64 Parallel I/O Models IO10 = 1IO10 = 0R/W~ = 1IO10 = 1READ ONLYSTATUS REGISTERREAD/WRITEDATA REGISTERD0/HSIO10IO9IO8

Page 183

I/O Model Reference 65 Symbol Description Minimum Typical Maximum tsbas A0 setup to falling edge of CS~ 10 ns — — tsbah A0 hold afte

Page 184 - Stretched Triac Output

66 Parallel I/O Models Token Passing Virtual token passing is implemented to eliminate the possibility of data bus c

Page 185

I/O Model Reference 67 Neuron ChipOrSmart TransceiverPass Token CMP_RESYNCWrite DataPass TokenCMP_ACK RESYNCWrite DataMaster Has TokenSlave H

Page 186

68 Parallel I/O Models Step Master Slave Comment 3 Read RESYNC 4 Write EOM End of message (EOM=0x00) 5 Pr

Page 187

I/O Model Reference 69 Table 26. Slave Writes Buffer to Master: R/W~=1 Step Master Slave Comment 1 (Owns Token) 2 Write XFER Slave

Page 188

viii Syntax ... 132 Usage ..

Page 189 - Triac Output

70 Parallel I/O Models Table 28. Slave Passes Token to Master Step Master Slave Comment 1 (Owns Token) 2 Wri

Page 190

I/O Model Reference 71 Neuron C Resources In order to use the parallel I/O model of the Neuron Chip or Smart Transceiver, the io_in( ) and i

Page 191

72 Parallel I/O Models Syntax IO_0 parallel slave | slave_b | master io-object-name; IO_0 Parallel input/output r

Page 192 - Example 1

I/O Model Reference 73 Example The following example shows how to use the io_in_ready and io_out_ready events, in conjunction with the io_ou

Page 194

I/O Model Reference 75 4 Serial I/O Models This chapter describes serial input/output models. Serial I/O objects are used for transferr

Page 195

76 Serial I/O Models Bitshift Input/Output The bitshift I/O model is used to shift a data word of up to 16 bits into

Page 196

I/O Model Reference 77 DATA INActive clock edge assumed to be positive in the above diagram.OUTPUTCLOCKINPUT SAMPLEDEND OFio_in()START OFio_i

Page 197 - Resolution

78 Serial I/O Models DATA OUTActive clock edge assumed to be positive in the above diagram.OUTPUTCLOCKEND OFio_in()S

Page 198

I/O Model Reference 79 Programming Considerations For bitshift input/output, the data type of the return value for io_in( ), and the data typ

Page 199 - InputClock

I/O Model Reference ix Hardware Considerations ... 162 Programming Considerat

Page 200 - And so on

80 Serial I/O Models kbaud (const-expr) Specifies the bit rate. The expression const-expr can be 1, 10, or 15. The

Page 201 - Frequency = 1 /

I/O Model Reference 81 Hardware Considerations The Smart Transceiver is always the master, with IO8 as the serial clock (SCL) signal and IO9

Page 202

82 Serial I/O Models Symbol Description Minimum Typical Maximum tstart End of start condition io_in() io_out()

Page 203

I/O Model Reference 83 For I2C input/output, io_in( ) and io_out( ) return a 0 or 1 value reflecting the fail (0) or pass (1) status of the t

Page 204

84 Serial I/O Models // i2c I/O object with the stop condition specified return-value = io_in(io-object-name, data-bu

Page 205

I/O Model Reference 85 Programming Considerations The data item unit is a single bit, and the maxbits and count values indicate the number o

Page 206 - 196 Index

86 Serial I/O Models Magcard Input The magcard I/O model is used to transfer synchronous serial data from an ISO 781

Page 207

I/O Model Reference 87 Table 33. Magcard Input Latency Values for Series 3100 Devices Symbol Description Minimum Typical Maximum tfin I/

Page 208

88 Serial I/O Models if the card were to stop moving in the middle of the transfer process. If a high level is detec

Page 209

I/O Model Reference 89 // This next object allows monitoring of // the ~Data_valid input signal. IO_7 input bit ioDataValid; int nibbles;

Commentaires sur ces manuels

Pas de commentaire