RPC-2350 USER'S MANUAL iCopyr ight 2001 - Remote Processing Corporation. Allrights reserved. However, any part of this documentmay be reprodu
SETUP AND OPERATION CHAPTER 22-4Figure 2-2 Power connector detailFigure 2-3 Power and jumper location detailGround is connected to “GND”“+ 5V” can be
CHAPTER 2 SETUP AND OPERATION2-5UPLOADING AND DOWNLOADINGPROGRAMSDownloading program s means transferring them fromyour computer to RAM on the RPC -23
SETUP AND OPERATION CHAPTER 22-6Uploading programs is simply a process of receiving anASCII file. You or your program simply needs to send"LIST&
CHAPTER 2 SETUP AND OPERATION2-7You can wr ite a program in lower case characters. CAMBASIC translates them to upper case.Some program mers put &quo
SETUP AND OPERATION CHAPTER 22-8stops giving line numbers when two < CR> 's arereceived.3. U se labels after GO TO and G OSUB statements. D
CHAPTER 2 SETUP AND OPERATION2-9WHERE TO GO FROM HEREIf you w ant to do th is Go tochapterSave a program 3Autorun a program 3Know m ore abo ut serial
CHAPTER 3 SAVING AND LINKING PROGRAMS3-1Figure 3-1 Flash location and jumpersCHAPTER SYNOPSIS Saving programs to Flash Retrieving programs from F la
SAVING AND LINKING PROGRAMS CHAPTER 33-2Where ‘program’ is 0 or 1 for 128K Flash or 0 to 7 for512K Flash installed. “SA VE” and “ SAVE 0" ar e
CHAPTER 3 SAVING AND LINKING PROGRAMS3-3SAVING DATA TO FLASH EPROMAdditional data, such as strings and constants, can besaved to U3 using a variation
SAVING AND LINKING PROGRAMS CHAPTER 33-4..7000 IF A = 0 THEN 7100..7100 EXIT CLEAR7110 LOAD 1 RUNThe above example shows how to link to anotherprogra
TABLE OF CONTENTS iiOVERVIEW CHAPTER 1MANUAL ORGANIZATION ...1MANUAL CONVENTIONS ...1Symbols and Terminology ...2DEM
CHAPTER 4 SERIAL PORTS4-1Figure 4-1 Serial port connector locationCHAPTER SYNOPSISSERIAL PORTS CHAPTER 4 Overview of RPC-2350 serial capabilities
SERIAL PORTS CHAPTER 44-2Comm unication flow controlThere are two methods to control transmission:Hardware and software. Both are discussed below.Whe
CHAPTER 4 SERIAL PORTS4-3Figure 4-2RS-485 operates in one of two modes: 2 wire and 4wire. ( An extr a wire is actually neede d as signal reference.
SERIAL PORTS CHAPTER 44-4Figure 4-4 Data packetaddress, com mand, data, and a checksum. See figure 4-4. The packet is received by all devices, and
CHAPTER 4 SERIAL PORTS4-5is empty.In this mode, you have access to the full 256 bytes. If you don' t read the buffer an d the buffer fills, al
SERIAL PORTS CHAPTER 44-6The table below is the pin out for SPI port J11.Pin No. Description1 Clock output to device2 Serial data to external device3
CHAPTER 4 SERIAL PORTS4-7SERIAL CABLE PIN OUTThe following is the pin out between the IDC connectorfor the RPC-2350 and the DB-9 connector to the PC o
CHAPTER 5 DATA MEMORY5-1Figure 5-1 Memory locationCHAPTER SYNOPSIS Battery backup description Where and how to store variables Saving and retrievi
DATA MEMORY CHAPTER 55-2Figure 5-2 2350 system memory mapFigure 5-3 Flash memory mapProgram s and CAMBASIC variables reside in segment0, between addre
CHAPTER 5 DATA MEMORY5-3A CAM BASIC program number and Flash segmentwhen using SAVE are related by the following formula:SAVE segment = program + 8Ke
RPC-2350 USER'S MANUAL iiiCALENDAR/CLO CK CHAPTER 7SETTING DATE AND TIME ...8YEAR 2000 AND BEYOND ...8CLOCK INTERRUPT
DATA MEMORY CHAPTER 55-4structure it is 28.Next, assign variable names to the offsets in memorydata begins.Name Pointing to ValueDSET Date string 0TSE
CHAPTER 5 DATA MEMORY5-5several things happen. Data saved at line 1000 isoverwritten by the data in line 2000, even thoughdifferent write addresses
DATA MEMORY CHAPTER 55-6default values (from the program) should be used, sinceit is uncertain if the first or second set is corrupted. Both data set
CHAPTER 5 DATA MEMORY5-7Line 2000 calls the program listed below . It toggles J2line 13.IN A,(2)LD B,AAND 0FEHOUT (2),ALD A,BOR 1OUT (2),ARETEXAMPLE
CHAPTER 6 DIGITAL LINES6-1Figure 6-1 Digital I/O connectorsCHAPTER SYNOPSIS Overview of the digital lines How to program Using high current port
DIGITAL LINES CHAPTER 66-2Figure 6-2 Inductive load protectionJ3, port A is shared with the LCD character display portJ6. If you are using J6, then t
CHAPTER 6 DIGITAL LINES6-3Figure 6-3 IDC pin out viewed from toplines. The MPS-XX series boards accept OPTO-22 G4series or Grayhill G5 modules. See
DIGITAL LINES CHAPTER 66-4Conne ctor pin ou t - J2J2Pin #82C55Port/bitDescription OptoChannel19 A/0 821 A/1 923 A/2 1025 A/3 1124 A/4 1222 A/5 1320 A/
CHAPTER 6 DIGITAL LINES6-5COMMANDSThe following table lists CAMBASIC commands usedfor digital I/O.Command FunctionBIT Function returns status of bit a
DIGITAL LINES CHAPTER 66-6J2Pin #82C55Port/ bitOptoChannelDescription/ use Associated CAMBASIC variable,function, or task number19 A/O ExampleStar
TABLE OF CONTENTS ivPOWER & EXPANSION PORT CHAPTER 16POWER INPUT ...1POWER OUTPUT ...1Heat sinking ...
CHAPTER 6 DIGITAL LINES6-7J3Pin #82C55Port/ BitOther use for line OptoChannelWhat line is used for Associated CAMBASIC variable,function, or task numb
CALENDAR/CLOCK CHAPTER 77-8CHAPTER SYNOPSIS Initializing and using the RTC Y2K and Y2.4K issues Using clock interr upts DESCRIPTIONCALENDAR/CLOCK
CHAPTER 7 CALENDAR/CLOCK7-9Figure 7-1 RTC interrupt jumper W10Use the following table to set clock interrupt periods. “Value” is written to I/O por
CHAPTER 8 ANALOG I/O8-1Figure 8-1 Analog connectors and jumpersCHAPTER SYNOPSIS Brief description of analog input capabilities Acquiring analog data
ANALOG I/O CHAPTER 88-2Initializing InputsThe RPC-2350 can have up to eight single-ended inputs,four differential, or a mixture of single ended anddif
CHAPTER 8 ANALOG I/O8-3The input range is -2.5V to + 2.5V. The result from anAIN function is 0 for -2.500V, 2048 for 0. 000V, and4095 for + 2.4998V.
ANALOG I/O CHAPTER 88-4divided 5 by 4095 to obtain K.K = 5/4095K = .001221Your program could look something like:1000 C = .001221 * AIN(N)Example 2:
CHAPTER 8 ANALOG I/O8-5Figure 8-2 CalibrationFigure 8-3 Analog output IC’s, jumper, and connectorFigure 8-4 Jumper W12 detailANALOG OUTPUTTwo option
ANALOG I/O CHAPTER 88-6and can be either 0 or 1. channel 0 is on pin 17 and1 is on pin 19.value is the value to output from 0 to 4095.Use the follow
CHAPTER 8 ANALOG I/O8-7Figure 8-5 Current loop IC’s & connectorCurrent loop powerThe cur rent output IC' s requir e at least 12V DC toopera
CHAPTER 1 OVERVIEW1-1CHAPTER SYNOPSISOVERVIEW CHAPTER 1 Brief description of the RPC-2350 and RPC-2350G How this manual is organized How to get
CHAPTER 9 KEYPAD PORT9-1Figure 9-1 J5 keypad connector locationCHAPTER SYNOPSIS Operating information Multiple use noteDESCRIPTIONKEYPAD PORT CHAP
KEYPAD PORT CHAPTER 99-2The following example sets up CAMBASIC to scan a 16position keypad. P orts A and B are set fo r outputs(presumably to drive th
CHAPTER 10 DISPLAY PORT10-1Figure 10-1 LCD character connector and contrast adjustCHAPTER SYNOPSIS Differences between RPC-2350 and RPC -2350G Prog
DISPLAY PORTS CHAPTER 1010-2It is possible to write a LCD character driver in Basic. This routine will be slow and take up some space.DISPLAY CONNECTO
CHAPTER 11 SOUND/TIMER OUTPUT11-1Figure 11-1 Sound/pulse output connectorFigure 10-2 Speaker interfaceCHAPTER SYNOPSIS Uses and limitations of sound/
CHAPTER 12 WATCHDOG TIMER12-1Figure 11-1 Watchdog timer jumperCHAPTER SYNOPSIS Uses for a watchdog timer Cautions using watchdogDESCRIPTIONWATCHDOG
CHAPTER 13 INTERRUPTS13-1Figure 13-1 J10 and INT 1 locationCHAPTER SYNOPSIS Discusses types of interrupts Interrupt prior ityDESCRIPTIONINTERRUPT S
INTERRUPTS CHAPTER 1313-2jumper s from W7 if using external interrupts. IN T1 istied to a 10K ohm pull up resistor.The O N ITR n GO SUB line/label t
CHAPTER 14 MULTI-MODE COUNTER14-3Figure 14-1 Counter and jumper locationCHAPTER SYNOPSIS Brief description of the counter High voltage input and lev
MULTI-MODE COUNTER CHAPTER 1414-4Figure 14-2 W7 and W9 jumper detailHIGH VOLTAGE INPUTConnector J10, pin 10 can accept a ±15V signal. Asshipped from
OVERVIEW CHAPTER 11-2Information appearing on your screen is shown in adifferent type.Example:CAM BASIC (tm) V1.4© 1985-94 Octagon Systems Corporatio
CHAPTER 14 MULTI-MODE COUNTER14-5inputs to count130 on tick 0,1 gosub 1000140 c = 1 :'initialize loop counter200 bit 0,0,0210 bit 0,0,1 :'ri
MULTI-MODE COUNTER CHAPTER 1414-6Signal levels are all TTL logic (0 to 5V).The following signals at J10 are used to measur e pulsewidths:J10 pin Descr
CHAPTER 15 GRAPHIC DISPLAY PORT15-1Figure 15-1 LCD and EL connector locationCHAPTER SYNOPSISGRAPHIC DISPLAY PORT CHAP TER 15 General displ
GRAPHIC DISPLAY PORT CHAPTER 1515-2POKE SYS(15),0,0 :'Slow- no sparkleThere is an unfor tunate par adox beca use of this. Sparkleis most notice
CHAPTER 15 GRAPHIC DISPLAY PORT15-3Figure 15-2 Jumper W3 detaillighted pixel (or block) on one layer can obliterateanother.This CAM BASIC can display
GRAPHIC DISPLAY PORT CHAPTER 1515-4largest font is 32 pixels wide by 48 tall.Small characters are pr inted on its own plane. Thus,small text can be
CHAPTER 15 GRAPHIC DISPLAY PORT15-5Scroll up time may be an important factor. It takesabout 65 mS to move all 1160 characters of the text upone line.
GRAPHIC DISPLAY PORT CHAPTER 1515-6Figure 15-3LOAD AND SAVE SCREENSTwo com mands load and save screen graphics.DISPLAY LOAD (x1,y1),(x2,y2),seg,addres
CHAPTER 15 GRAPHIC DISPLAY PORT15-7graphics. When saving to Flash, you m ust round UP the amountstored to the next Flash sector size. A 128K flash
GRAPHIC DISPLAY PORT CHAPTER 1515-8command. The command byte value is &59.3.3.1.2 FCFC1 and FC 0 set the character cursor flash rate.3.3.1.3 FPS
CHAPTER 2 SETUP AND OPERATION2-1CHAPTER SYNOPSISSETUP AND OPERATION CHAPTER 2 Running the RPC-2350 for the first time How to run und er D OS and
CHAPTER 15 GRAPHIC DISPLAY PORT15-9PRINT AND DISPLAY TIMESExecution times for a command (not character) shownbelow.Command Time (inmilli-Sec)Condition
GRAPHIC DISPLAY PORT CHAPTER 1515-10CABLE PIN OUTSThe following tables are cable pin outs for LCD and ELdisplays. J9 is the 20 pin display connector
CHAPTER 15 GRAPHIC DISPLAY PORT15-11COMMANDSThe following commands are used with the graphicsdisplay:Command DescriptionCLEAR DISPLAY Clear graphics a
GRAPHIC DISPLAY PORT CHAPTER 1515-12Command DescriptionDISPLAYF(x1, y1),(x2, y2)Fill area bounded by(x1,y1) to (x2,y2)DISPLAYF,C(x1,y1),(x2, y2)Clear
CHAPTER 16 POWER & EXPANSION PORT16-1Figure 16-1 Power, Expansion, and jumper locationsCHAPTER SYNOPSISPOWER & EXPAN SION PO RT CH APTE
POWER AND EXPANSION PORT CHAPTER 1616-2Figure 16-2 Power connector detailPOWER OUTPUTThere are several pow er outputs available from bothRPC-2350 and
CHAPTER 16 POWER & EXPANSION PORT16-3Expansion port connector pin out is listed below.P1 pin # Description1 Data 02 Expansion port address select3
CHAPTER 17 RESOURCES17-1CHAPTER SYNOPSISRESOURCES CHAPTER 17 List sources of accessory com ponentsThe RPC-2350 can be used in a number of app
RESOURCES CHAPTER 1717-2Opto-22 G4 modules are available from AlliedElectronics.Grayhill G5 modules are available from D igi-key.Isolated RS-485 and
TECHNICAL INFORMATION18-1ELECTRICALTECHNICAL INF ORMATION CHAPTER 18CPUZ8S180, 18. 432 MHZ clockELECTRICALMemoryCAMBASIC, 32K ROM (U1). Mapped pe
SETUP AND OPERATION CHAPTER 22-2Requirements for uploading and downloading programsare discussed. A " Where to go from here" sectiondirects
TECHNICAL INFORMATION18-2EnvironmentalTemperature range: -20°C to 70°C. Temperature cango slightly higher if air flows across board.Humidity: 0% to 9
TECHNICAL INFORMATION18-3JUMPER DESCRIPTIONSA * after a jumper position indicates factory default andis jumpered.Jumper DescriptionW1[2-3]* Watchdog t
TECHNICAL INFORMATION18-4CONNECTOR DESCRIPTIONThe following table provides a brief function descriptionfor each connector and the chapter number where
TECHNICAL INFORMATION18-5RPC-2350 board outline and mounting hole locationsBOARD OUTLINE
CHAPTER 2 SETUP AND OPERATION2-3board. All programm ing and initial communicationbetween the RPC-2350 and outside world is donethrough RS-232.The ter
Commentaires sur ces manuels