Rabbit EM1500 Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Machine de réduction du bruit Rabbit EM1500. Rabbit EM1500 User`s manual Manuel d'utilisatio

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

Résumé du contenu

Page 1 - User’s Manual

RabbitFLEX™ BL300F User’s Manual019-0155 • 070720-DThe latest revision of this manual is available on the Rabbit Web site, www.rabbit.com, for free, u

Page 2 - Trademarks

4 www.rabbit.com RabbitFLEX BL300F Introduction1.4.1 ImmunityThe RabbitFlex series of single-board computers meets the following EN55024/1998 immuni

Page 3 - Table of Contents

94 www.rabbit.com Applications ProgrammingflexAnaInmAmpsfloat flexAnaInmAmps(Flex_IOPin *pin);DESCRIPTIONReads the state of the external analog input

Page 4

RabbitFLEX User’s Manual www.rabbit.com 95flexAnaInAverageSettingint flexAnaInAverageSetting(Flex_IOPin *pin, float alpha);DESCRIPTIONSets the averagi

Page 5

96 www.rabbit.com Applications ProgrammingflexAnaInAverageint flexAnaInAverage(Flex_IOPin *pin);DESCRIPTIONThis function is like flexAnaIn(), except

Page 6

RabbitFLEX User’s Manual www.rabbit.com 97flexAnaInVoltsAveragefloat flexAnaInVoltsAverage(Flex_IOPin *pin);DESCRIPTIONThis function is like flexAnaIn

Page 7 - ABBITFLEX BL300F INTRODUCTION

98 www.rabbit.com Applications ProgrammingflexAnaInmAmpsAveragefloat flexAnaInmAmpsAverage(Flex_IOPin *pin);DESCRIPTIONThis function is like flexAnaI

Page 8

RabbitFLEX User’s Manual www.rabbit.com 99flexAnaInNewValueint flexAnaInNewValue(Flex_IOPin *pin, int clear);DESCRIPTIONReports whether an updated val

Page 9 - 1.4 CE Compliance

100 www.rabbit.com Applications Programming6.6.6 Analog OutputsflexAnaOutCalibint flexAnaOutCalib(Flex_IOPin *pin, int value1, float volts1, int val

Page 10

RabbitFLEX User’s Manual www.rabbit.com 101flexAnaOutint flexAnaOut(Flex_IOPin *pin, int rawvalue);DESCRIPTIONSets the voltage on a given analog outpu

Page 11 - 1.5 What to Expect

102 www.rabbit.com Applications ProgrammingflexAnaOutVoltsint flexAnaOutVolts(Flex_IOPin *pin, float voltage);DESCRIPTIONSets the voltage on a given

Page 12

RabbitFLEX User’s Manual www.rabbit.com 1036.6.7 LCDflexDispInitint flexDispInit(Flex_LCD *lcd, Flex_LCDConf *user_conf);DESCRIPTIONInitializes the g

Page 13 - 2. GETTING STARTED

RabbitFLEX User’s Manual www.rabbit.com 51.4.4 Interfacing RabbitFlex to Other DevicesSince the RabbitFlex series of single-board computers is design

Page 14 - 2.1.1 Hardware Connections

104 www.rabbit.com Applications ProgrammingflexDispCursorvoid flexDispCursor(Flex_LCD *lcd, unsigned int style);DESCRIPTIONSets the cursor type to be

Page 15 - 2.2 Software Preparation

RabbitFLEX User’s Manual www.rabbit.com 105flexDispGotoint flexDispGoto(Flex_LCD *lcd, unsigned int col, unsigned int row);DESCRIPTIONPlaces the curso

Page 16 - 2.3 Verify Serial Connections

106 www.rabbit.com Applications ProgrammingflexDispGetPositionint flexDispGetPosition(Flex_LCD *lcd, unsigned int *col, unsigned int *row);DESCRIPTIO

Page 17 - 2.4 Ethernet Communication

RabbitFLEX User’s Manual www.rabbit.com 107flexDispGetDimensionsvoid flexDispGetDimensions(Flex_LCD *lcd, unsigned int *num_cols, unsigned int *num_ro

Page 18

108 www.rabbit.com Applications ProgrammingflexDispClearvoid flexDispClear(Flex_LCD *lcd);DESCRIPTIONClears the display and returns the cursor to the

Page 19 - 2.5 Troubleshooting Tips

RabbitFLEX User’s Manual www.rabbit.com 109flexDispPutcvoid flexDispPutc(Flex_LCD *lcd, char ch);DESCRIPTIONPuts the given character on the display at

Page 20 - CAUTION: HOT!

110 www.rabbit.com Applications Programming flexDispPrintfint flexDispPrintf(Flex_LCD *lcd, char *format, ...);DESCRIPTIONPrints the formatted string

Page 21 - 2.7 Contact Information

RabbitFLEX User’s Manual www.rabbit.com 111flexDispOnoffvoid flexDispOnoff(Flex_LCD *lcd, int onOff);DESCRIPTIONTurns the display on or off.PARAMETERS

Page 22

112 www.rabbit.com Applications ProgrammingflexDispBacklightint flexDispBacklight(Flex_LCD *lcd, int onOff);DESCRIPTIONTurns the display's backl

Page 23 - INFORMATION

RabbitFLEX User’s Manual www.rabbit.com 113flexDispContrastint flexDispContrast(Flex_LCD *lcd, char vcontrast);DESCRIPTIONSets the contrast for the di

Page 24 - 3.2 Cells and Circuits

6 www.rabbit.com RabbitFLEX BL300F Introduction

Page 25

114 www.rabbit.com Applications ProgrammingflexDispGetContrastchar flexDispGetContrast(FLEX_LCD *lcd);DESCRIPTIONReturns the current contrast setting

Page 26 - 3.2.3 Board Map

RabbitFLEX User’s Manual www.rabbit.com 1156.6.8 KeypadflexKeyProcessvoid flexKeyProcess(Flex_Keypad *keypad);DESCRIPTIONFor the given keypad, this f

Page 27 - MADE IN USA

116 www.rabbit.com Applications ProgrammingflexKeyConfigvoid flexKeyConfig(Flex_Keypad *keypad, char cRaw, char cPress, char cRelease, char cCntHold,

Page 28

RabbitFLEX User’s Manual www.rabbit.com 117flexKeyUngetint flexKeyUnget(Flex_Keypad *keypad, char cKey);DESCRIPTIONPushes the key press (cKey) on the

Page 29 - 4. RABBITFLEX BL300F OPTIONS

118 www.rabbit.com Applications ProgrammingflexKeyGetchar flexKeyGet(Flex_Keypad *keypad);DESCRIPTIONGets the next key press for the selected kepad f

Page 30

RabbitFLEX User’s Manual www.rabbit.com 1196.6.9 SpeakerflexSpeakerPWMint flexSpeakerPWM(Flex_IOPin *pin);DESCRIPTIONSelects the PWM channel to be us

Page 31

120 www.rabbit.com Applications ProgrammingflexToneLoadint flexToneLoad(char *buffer, int bufsize, char repeat);DESCRIPTIONLoads tone samples to be p

Page 32

RabbitFLEX User’s Manual www.rabbit.com 121flexToneShutdownvoid flexToneShutdown();DESCRIPTIONTurns off the tone driver. Useful to preserve processor

Page 33 - connectors, Molex

122 www.rabbit.com Applications ProgrammingflexAudioPlayvoid flexAudioPlay();DESCRIPTIONPlays samples that have been loaded into the driver buffer, s

Page 34 - 4.3.1 Core Module

RabbitFLEX User’s Manual www.rabbit.com 123flexAudioSetRatevoid flexAudioSetRate(unsigned int sample_rate);DESCRIPTIONTells the driver to treat the in

Page 35 - Serial Port D Serial Port E

RabbitFLEX User’s Manual www.rabbit.com 7 2. GETTING STARTEDThe information in this chapter will get you up and running. Follow the instructions given

Page 36 - 4.3.3 RS-485

124 www.rabbit.com Applications ProgrammingflexAudioLoadint flexAudioLoad(char *buffer, int bufsize);DESCRIPTIONLoads audio samples to be played into

Page 37

RabbitFLEX User’s Manual www.rabbit.com 125flexAudioShutdownvoid flexAudioShutdown();DESCRIPTIONTurns off the audio driver. Useful to preserve process

Page 38 - Keypad Input

126 www.rabbit.com Applications Programming6.6.10 Serial CommunicationserModeint serMode(int mode);DESCRIPTIONSets up user interface for the serial

Page 39 - Keypad Driver

RabbitFLEX User’s Manual www.rabbit.com 127ser485Txvoid ser485Tx(void);DESCRIPTIONEnables the RS-485 transmitter. The brdInit() function must be execu

Page 40 - PWM Output Connector and Pin

128 www.rabbit.com Applications Programmingser485Rxvoid ser485Rx(void);DESCRIPTIONDisables the RS-485 transmitter. This puts you in a listen mode, wh

Page 41

RabbitFLEX User’s Manual www.rabbit.com 129APPENDIX A. RABBITFLEX BL300FSPECIFICATIONSThis appendix provides the board specifications for the RabbitF

Page 42

130 www.rabbit.com Rabbit recommends an exclusion zone of 0.25" (6 mm) around the RabbitFLEX BL300F board in all directions when the RabbitFLEX

Page 43

RabbitFLEX User’s Manual www.rabbit.com 131Table A-1 lists the electrical, mechanical, and environmental specifications for the RabbitFLEX BL300F.Tabl

Page 44

132 www.rabbit.com A.2 Conformal CoatingThe areas around the crystal oscillator and the battery backup circuit on the PowerCore module have had the

Page 45 - DIGITAL INPUT, CONTACTS

RabbitFLEX User’s Manual www.rabbit.com 133APPENDIX B. POWER SUPPLYThis appendix provides information for the power supplies on the PowerCore modules

Page 46 - BIDIRECTIONAL LOGIC

8 www.rabbit.com Getting Started2.1.1 Hardware ConnectionsThere are two steps to readying the RabbitFLEX BL300F for use with Dynamic C: 1. Connect t

Page 47

134 www.rabbit.com B.2 Battery-Backup CircuitsThe data SRAM and the real-time clock on the PowerCore module have battery backup. Power to the SRAM a

Page 48 - 4.3.11 Digital Outputs

RabbitFLEX User’s Manual www.rabbit.com 135B.4 Power On / Reset StateThe table below shows the circuits that are affected by power on or reset.Table

Page 50 - Sinking Driver, 100 mA 40 V

RabbitFLEX User’s Manual www.rabbit.com 137APPENDIX C. DEMONSTRATION BOARDThe demonstration board allows you to exercise the digital I/O on a RabbitF

Page 51 - Sourcing Driver, 400 mA 24 V

138 www.rabbit.com C.1.2 Digital Input ConnectionsTo run the digital input sample programs, you must connect at least one demo board switch to a dig

Page 52 - Sourcing Driver, 50 mA 5 V

RabbitFLEX User’s Manual www.rabbit.com 139C.1.3 Digital Output ConnectionsTo run the digital output sample programs, you must connect at least one d

Page 53 - Line Driver, 100 W 5 V

140 www.rabbit.com C.1.4 Run Sample ProgramsMake sure the programming cable and transformer are connected as described in Chapter 2, “Getting Starte

Page 54 - • 0-10 V

RabbitFLEX User’s Manual www.rabbit.com 141APPENDIX D. RABBITFLEX KEYPAD/DISPLAY KITRabbit offers a RabbitFLEX Keypad/Display Kit for the RabbitFLEX

Page 55 - DAC 03 V

142 www.rabbit.com Figure D.1 Connect Keypad to Keypad Connector J5 Pin 1J5R80R86R22R82C19C22C1C2C3R9R12C21C5C6C7R10R6R5R39R118R11U3R37R4R38R36R81

Page 56 - DAC 0-10 V

RabbitFLEX User’s Manual www.rabbit.com 143D.3 2 × 6 Keypad Datasheet10 9 8 7 6 5 4 3 2 1FLEX CABLE CONTACTS0.5500.2500.2000.525 ty

Page 57

RabbitFLEX User’s Manual www.rabbit.com 92.1.1.2 Connect PowerConnect the locking plug of the AC adapter to connector J3 on the PowerCore module as s

Page 58

144 www.rabbit.com D.4 LCD ModuleThe LCD supplied with the RabbitFLEX Keypad/Display Kit does not have any connectors attached. Use two cable assemb

Page 59 - Analog Input

RabbitFLEX User’s Manual www.rabbit.com 145D.5 4 × 20 Character LCD Datasheet

Page 60

146 www.rabbit.com

Page 61 - Analog Input, 420 mA

RabbitFLEX User’s Manual www.rabbit.com 147

Page 63 - RABBITFLEX BL300F OPTIONS

RabbitFLEX User’s Manual www.rabbit.com 149Electrical CharacteristicsItem Symbol Condition Min Typ MaxInput Voltage (high) Vih H Level 2.2 V — VddInpu

Page 65 - 5.4 Digital Outputs

RabbitFLEX User’s Manual www.rabbit.com 151SCHEMATICSThis page consists of links to the schematics of interest to an engineer using the RabbitFLEX BL3

Page 66 - Water Tower

152 www.rabbit.com

Page 67 - 5.5 DACs

RabbitFLEX User’s Manual www.rabbit.com 153IndexAADCs ... 52amplifier ...

Page 68 - 5.6 Speaker

10 www.rabbit.com Getting Started2.3 Verify Serial ConnectionsRun the sample program pong.c to verify that everything is installed and connected prop

Page 69 - 5.7 ADCs

154 www.rabbit.com flexKeyGet() ...118flexKeyInit() ...

Page 70

RabbitFLEX User’s Manual www.rabbit.com 155UUSB ... 8, 13User block ...

Page 72 - Program Name Description

Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: Rabbit Semiconductor: 20-1

Page 73 - 6.2 RabbitFLEX BL300F Files

RabbitFLEX User’s Manual www.rabbit.com 112.4 Ethernet CommunicationThis section describes the additional hardware connections needed to use the Rabbi

Page 74 - 6.3.2 Software Pin Names

12 www.rabbit.com Getting Started2.4.1 Direct ConnectionA direct connection means that a crossover cable connects the target board to the host compu

Page 75 - FLEX_GROUP_END

RabbitFLEX User’s Manual www.rabbit.com 132.4.4 Verify the Ethernet ConnectionRun the sample program ping.c to verify that everything is connected pr

Page 76 - Pin Group Pin Group Members

i EM1500 User’s ManualRabbitFLEX BL300F User’s ManualPart Number 019-0155 • 070720–D • Printed in U.S.A.©2006 Rabbit • All rights reserved.Rabbit

Page 77 - 6.3.7 LCD

14 www.rabbit.com Getting StartedFigure 2.6 Test Points for Checking Voltage Levels on the PowerCore 3800If you see the message “Could not open seri

Page 78 - 6.3.10 Serial Flash

RabbitFLEX User’s Manual www.rabbit.com 15Problems During and/or at the End of Compilation • A few computers have trouble handling the default 115,200

Page 79 - 6.4 Software Walk-Through

16 www.rabbit.com Getting Started

Page 80

RabbitFLEX User’s Manual www.rabbit.com 17 3. DESIGN IMPLEMENTATION ANDINFORMATIONThis chapter discusses the implementation of the RabbitFLEX™ SBC fea

Page 81

18 www.rabbit.com Design Implementation and Information3.1.2 Board-Specific InformationThe PowerCore module and the board to which it is attached ar

Page 82

RabbitFLEX User’s Manual www.rabbit.com 193.2.2.1 One-Transistor CellsFigure 3.2 shows the complete layout of a one-transistor cell. A one-transistor

Page 83

20 www.rabbit.com Design Implementation and Information3.2.3 Board MapThe board map shown in Figure 3.4 identifies the cell placement for each of th

Page 84 - // Play the tone

RabbitFLEX User’s Manual www.rabbit.com 21Figure 3.5 shows the locations of the digital and analog interface cells corresponding to connectors J1–J5.F

Page 85

22 www.rabbit.com Design Implementation and Information

Page 86

RabbitFLEX User’s Manual www.rabbit.com 23 4. RABBITFLEX BL300F OPTIONSThis chapter discusses the options available for customizing a RabbitFLEX BL300

Page 87

RabbitFLEX User’s Manual www.rabbit.com iTable of ContentsChapter 1: RabbitFLEX BL300F Introduction 11.1 RabbitFLEX BL300F Options...

Page 88

24 www.rabbit.com RabbitFLEX BL300F Options4.2 Overview of Connector and Cell AssociationThe table in this section summarizes the user-configurable c

Page 89

RabbitFLEX User’s Manual www.rabbit.com 254.2.1.1 Connector 1Connectors J1 through J5 all have digital I/O, power routing, ground and +K (external po

Page 90 - 6.5 API Functions

26 www.rabbit.com RabbitFLEX BL300F Options4.2.1.3 Connector 3 and 4The pinout diagram for J4 looks exactly like the one for J3. The difference is t

Page 91 - 6.6.2 Pin Names

RabbitFLEX User’s Manual www.rabbit.com 274.2.1.5 Connector 6J6 differs from J1-J5, in that its pins can only be customized from the global options p

Page 92 - 6.6.3 Digital Inputs

28 www.rabbit.com RabbitFLEX BL300F Options4.3 RabbitFLEX BL300F Option SpecificationsThis section lists all of the RabbitFLEX BL300F options, along

Page 93

RabbitFLEX User’s Manual www.rabbit.com 294.3.2 RS-232You can select one of the following RS-232 channel configurations:• one 3-wire channel, or• two

Page 94 - 6.6.4 Digital Outputs

30 www.rabbit.com RabbitFLEX BL300F Options4.3.3 RS-485You can select an RS-485 communications channel with or without termination or jumpered termi

Page 95

RabbitFLEX User’s Manual www.rabbit.com 314.3.4 RabbitNetRabbitNet is a high-speed synchronous protocol used to connect peripheral cards to a master

Page 96

32 www.rabbit.com RabbitFLEX BL300F Options4.3.6.1 Keypad InputsThe RabbitFLEX Configurator will automatically assign pins from connector J5 as the

Page 97 - 6.6.5 Analog Inputs

RabbitFLEX User’s Manual www.rabbit.com 334.3.6.2 Keypad OutputsThe RabbitFLEX Configurator will automatically assign pins from connector J5 as the k

Page 98

ii www.rabbit.com Table of Contents4.2.1 Connector Pinout Diagram ...

Page 99

34 www.rabbit.com RabbitFLEX BL300F Options4.3.7 External InterruptThe external interrupt can be configured to use J1, pin 7 on the RabbitFLEX BL300

Page 100

RabbitFLEX User’s Manual www.rabbit.com 35The direct output has the advantage of being a push/pull driver. It has the same current capacity as a gen-e

Page 101

36 www.rabbit.com RabbitFLEX BL300F OptionsTable 4-8. Digital Input 1.4 V Threshold CharacteristicsSymbol Parameter Note Min Typical Max UnitVIWWork

Page 102

RabbitFLEX User’s Manual www.rabbit.com 374.3.10.2 Digital Input 2.8 V ThresholdThis section presents the circuit schematic and the characteristics f

Page 103

38 www.rabbit.com RabbitFLEX BL300F Options4.3.10.3 Digital Input 4.4 V ThresholdThis section presents the circuit schematic and the characteristics

Page 104

RabbitFLEX User’s Manual www.rabbit.com 394.3.10.4 Contact InputThis section presents the circuit schematic and the characteristics for the contact i

Page 105 - RETURN VALUE

40 www.rabbit.com RabbitFLEX BL300F Options4.3.10.5 Bidirectional LogicThis section presents the circuit schematic and the characteristics for the b

Page 106 - 6.6.6 Analog Outputs

RabbitFLEX User’s Manual www.rabbit.com 41Table 4-12. Bidirectional Logic CharacteristicsSymbol Parameter Note Min Typical Max UnitVIWWorking Input V

Page 107

42 www.rabbit.com RabbitFLEX BL300F Options4.3.11 Digital OutputsThere are several digital output options on a RabbitFLEX BL300F.They are listed in

Page 108

RabbitFLEX User’s Manual www.rabbit.com 434.3.11.1 Sinking Driver 1 AThis section presents the circuit schematic and the characteristics for the 1 A

Page 109 - 6.6.7 LCD

RabbitFLEX User’s Manual www.rabbit.com iii6.2 RabbitFLEX BL300F Files...

Page 110 - : cursor off

44 www.rabbit.com RabbitFLEX BL300F Options4.3.11.2 Sinking Driver 100 mAThis section presents the circuit schematic and the characteristics for the

Page 111

RabbitFLEX User’s Manual www.rabbit.com 454.3.11.3 Sourcing Driver 400 mAThis section presents the circuit schematic and the characteristics for the

Page 112

46 www.rabbit.com RabbitFLEX BL300F Options4.3.11.4 Sourcing Driver 50 mAThis section presents the circuit schematic and the characteristics for the

Page 113

RabbitFLEX User’s Manual www.rabbit.com 474.3.11.5 Line Driver, 100 Ω, 5 VThis section presents the circuit schematic and the characteristics for the

Page 114

48 www.rabbit.com RabbitFLEX BL300F Options4.3.12 Digital-to-Analog ConvertersThe RabbitFLEX BL300F can have up to two DAC channels. The analog outp

Page 115

RabbitFLEX User’s Manual www.rabbit.com 494.3.12.1 DAC 0-3 VThis section presents the circuit schematic and the characteristics for the 0-3 V DAC. Fi

Page 116

50 www.rabbit.com RabbitFLEX BL300F Options4.3.12.2 DAC 0-10 VThis section presents the circuit schematic and the characteristics for the 0-10 V DAC

Page 117

RabbitFLEX User’s Manual www.rabbit.com 514.3.12.3 SpeakerDAC channel #0 can be configured as an input to a speaker. A pulse width modulated (PWM) si

Page 118

52 www.rabbit.com RabbitFLEX BL300F Options4.3.13 Analog-to-Digital ConvertersThe RabbitFLEX BL300F has a ramp-compare ADC. Up to 16 channels are av

Page 119

RabbitFLEX User’s Manual www.rabbit.com 534.3.13.1 Analog Input 0-3 V This section presents the circuit schematic and the characteristics for the 0-3

Page 120

iv www.rabbit.com Table of Contents

Page 121 - 6.6.8 Keypad

54 www.rabbit.com RabbitFLEX BL300F Options4.3.13.2 Analog Input 0-10 VThis section presents the circuit schematic and the characteristics for the 0

Page 122

RabbitFLEX User’s Manual www.rabbit.com 554.3.13.3 Analog Input 4-20 mAThis section presents the circuit schematic and the characteristics for the 4-

Page 123

56 www.rabbit.com RabbitFLEX BL300F Options4.3.14 Power RoutingYou can bring power supply pins out on any of the pin-configurable connectors (J1-J5)

Page 124

RabbitFLEX User’s Manual www.rabbit.com 57 5. MORE INFORMATION ONRABBITFLEX BL300F OPTIONSThis chapter provides links, references and additional infor

Page 125 - 6.6.9 Speaker

58 www.rabbit.com More Information on RabbitFLEX BL300F 5.2 Serial CommunicationDynamic C provides drivers for RS-232 and RS-485. For a full discussi

Page 126

RabbitFLEX User’s Manual www.rabbit.com 595.4 Digital OutputsThere are several types of options available for digital outputs. There are sinking and s

Page 127

60 www.rabbit.com More Information on RabbitFLEX BL300F Figure 5.2 Water Tower Analogy of Sinking and Sourcing Power5.4.2 Line DriversLine drivers

Page 128

RabbitFLEX User’s Manual www.rabbit.com 615.5 DACsTo produce an analog signal for the DAC channel outputs, the Rabbit generates precisely timed pulses

Page 129

62 www.rabbit.com More Information on RabbitFLEX BL300F 5.6 SpeakerDAC Channel #0 can be configured as an input to a speaker. The audio hardware on t

Page 130

RabbitFLEX User’s Manual www.rabbit.com 63The sampling precision is the number of gradations possible for each sample point. Each time a sample is tak

Page 131

RabbitFLEX User’s Manual www.rabbit.com 1 1. RABBITFLEX BL300F INTRODUCTIONWe all know you cannot fit a square peg into a round hole. But sometimes th

Page 132 - 6.6.10 Serial Communication

64 www.rabbit.com More Information on RabbitFLEX BL300F

Page 133 - , ser485Rx

RabbitFLEX User’s Manual www.rabbit.com 65 6. APPLICATIONS PROGRAMMINGProgramming your customized RabbitFlex board has been made both adaptable and as

Page 134 - , ser485Tx

66 www.rabbit.com Applications Programmingdigout_groups.cDemonstrates software grouping capability. Displays all digital outputs, then prompts for wh

Page 135 - PECIFICATIONS

RabbitFLEX User’s Manual www.rabbit.com 676.2 RabbitFLEX BL300F FilesThere are two files that you must download from the RabbitFLEX Configurator after

Page 136 - Exclusion

68 www.rabbit.com Applications Programmingconnector/pin assignments. The .xml file is more important. It is used when you want to reorder a particu-l

Page 137

RabbitFLEX User’s Manual www.rabbit.com 69If you would like to change your pin software names after you have designed your board, then it is possi-ble

Page 138 - A.2 Conformal Coating

70 www.rabbit.com Applications ProgrammingSome automatically generated pin groups are created in your design-specific library. These groups are liste

Page 139 - APPENDIX B. POWER SUPPLY

RabbitFLEX User’s Manual www.rabbit.com 71Note that the keypad’s software name is always flex_keypad.Next, you should configure the keys on your keypa

Page 140 - 134 www.rabbit.com

72 www.rabbit.com Applications Programming// Number of rows on the displaymy_lcd.num_rows = 2;// Starting address of each row (up to 4 rows)my_lcd.ro

Page 141 - B.4 Power On / Reset State

RabbitFLEX User’s Manual www.rabbit.com 736.4 Software Walk-ThroughIn this section, we will begin with the speaker_tone.c sample program and modify it

Page 142 - 136 www.rabbit.com

2 www.rabbit.com RabbitFLEX BL300F Introduction• KeypadRange of matrix keypad options: m x n, where m+n <=8• LCDWith or without backlight and/or c

Page 143

74 www.rabbit.com Applications Programming// Activate the tone systemflexToneActivate();This function simply activiates the tone driver. Once enabled

Page 144 - RabbitFLEX Board

RabbitFLEX User’s Manual www.rabbit.com 75Each of the changes that are shown below are made to the main() function of speaker_tone.c. Flex_IOPin *swit

Page 145

76 www.rabbit.com Applications ProgrammingThe rest of this section will detail the main changes that have been made to this program. In fact, you sho

Page 146 - 140 www.rabbit.com

RabbitFLEX User’s Manual www.rabbit.com 77while (1) {// Wait for the switch to be releasedwaitfor(flexDigIn(switch_pressed) == 0);// Wait additional 2

Page 147 - D.2 Keypad Template

78 www.rabbit.com Applications Programmingelse if (flexDigIn(&flex_digin35)) {switch_pressed = &flex_digin35;led = &flex_digout36;switchn

Page 148 - Connector

RabbitFLEX User’s Manual www.rabbit.com 79Since we have accepted the switch press and turned on the corresponding LED, then we might as well play the

Page 149 - FLEX CABLE CONTACTS

80 www.rabbit.com Applications Programmingstatic const Flex_IOPin *leds[] = {&flex_digout32,&flex_digout34,&flex_digout36,&flex_digou

Page 150 - 4 × 20 LCD

RabbitFLEX User’s Manual www.rabbit.com 81Next is the main while loop. The entire while loop will be replaced, so here is the code listing for con-ven

Page 151

82 www.rabbit.com Applications ProgrammingWe will now go through each part of this new while loop in detail:while (1) {costate {// Check if a switch

Page 152 - 146 www.rabbit.com

RabbitFLEX User’s Manual www.rabbit.com 83Note that as we iterate through the loop, we keep track of the switch, LED, and switch number that we are on

Page 153

RabbitFLEX User’s Manual www.rabbit.com 31.3 RabbitFLEX Tool KitThe RabbitFLEX Tool Kit contains the software and the extra hardware needed to develop

Page 154 - 148 www.rabbit.com

84 www.rabbit.com Applications Programming6.5 API FunctionsThis section describes the programming interface for the RabbitFLEX BL300F. Table 6-6 lis

Page 155 - Electrical Characteristics

RabbitFLEX User’s Manual www.rabbit.com 856.6.1 Board InitializationbrdInitvoid brdInit(void);DESCRIPTIONCall this function at the beginning of your

Page 156 - 150 www.rabbit.com

86 www.rabbit.com Applications Programming6.6.3 Digital InputsflexDigInint flexDigIn(Flex_IOPin *pin);DESCRIPTIONReads the state of a digital input

Page 157 - SCHEMATICS

RabbitFLEX User’s Manual www.rabbit.com 87flexDigInGroup16int flexDigInGroup16(Flex_IOPin *digin_pins[], unsigned int *result);DESCRIPTIONThis functio

Page 158 - 152 www.rabbit.com

88 www.rabbit.com Applications Programming6.6.4 Digital OutputsflexDigOutint flexDigOut(Flex_IOPin *pin, int state);DESCRIPTIONSets the state of a d

Page 159

RabbitFLEX User’s Manual www.rabbit.com 89flexDigShadowint flexDigShadow(Flex_IOPin *pin);DESCRIPTIONReads the shadow (last value) of the given digita

Page 160 - 154 www.rabbit.com

90 www.rabbit.com Applications ProgrammingflexDigOutGroup16int flexDigOutGroup16(Flex_IOPin *digout_pins[], unsigned int values);DESCRIPTIONThis func

Page 161

RabbitFLEX User’s Manual www.rabbit.com 916.6.5 Analog InputsflexAnaInCalibint flexAnaInCalib(Flex_IOPin *pin, int value1, float volts1, int value2,

Page 162 - 156 www.rabbit.com

92 www.rabbit.com Applications ProgrammingflexAnaInint flexAnaIn( Flex_IOPin *pin );DESCRIPTIONReads the state of the external analog channel. Note t

Page 163 - Mouser Electronics

RabbitFLEX User’s Manual www.rabbit.com 93flexAnaInVoltsfloat flexAnaInVolts(Flex_IOPin *pin);DESCRIPTIONReads the state of the external analog input

Commentaires sur ces manuels

Pas de commentaire