You can begin to program immediately. Run the sample programs supplied with the card. Begin scanning a keypad, opto module, control a motor,
read a voltage, or do calculations as desired right away. In less than 5 minutes you can begin programming.Large Program Capacity
You can use two flash EPROM sizes with the RPC-320; 32K is standard.
It stores approximately 800 lines of BASIC code. 512K byte flash EPROM is available. Maximum program running size at any one time is about 60K, or about 1500 lines of code, using 128K or larger RAM.
Additional programs can be loaded to replace an existing one during run time. Using a 512K byte flash, approximately 12,000 lines (or 200 pages) of code can be stored.
EPROMs can also store program constants,
text messages, recipes, etc. This information can be read by the BASIC during run time. RPBASIC has two commands to facilitate data transfer. "BSAVE" transfers binary information from RAM and saves
it to EPROM. "BLOAD" loads binary information from EPROM and transfers it to RAM.
32K of code is saved to on card flash. 64K can be installed using an external programmer.
C Programming Support
Writing in C substantially speeds up program execution. Drivers for the keypad, LCD display, analog input, counter input, digital I/O, serial ports, and memory are available in C and assembly
language. Use the RP-10 card for development. Drivers are supplied with the RP-10 card.
On-Card EPROM Programmer
RPBASIC's "SAVE" command stores your program in nonvolatile EPROM for
autorun on power-up. Up to eight programs can be saved using a 512K byte EPROM. Erasing is done electrically and does not require a UV erasure or a 12V programming supply.
The EPROM has an internal locking
mechanism to prevent accidental writing. Thus, programs are protected against random modification.
Autorun on Power-Up
On power-up and reset, RPBASIC checks the autorun jumper. If set, the system will
load the first program into RAM and run it.
External Interrupt is Optically Isolated
RPBASIC supports an external or internal interrupt using the "ON INT" command. An external interrupt is fed into
an opto coupler or a nonisolated TTL input. This interrupt is used to "wake up" the system in low power stand-by mode. This line can also be used as an isolated input.
24 Bit Multimode Counter
The multimode counter is programmable to read a quadrature output or a 20 MHz signal input. It can be programmed to interrupt when a specific count is reached. RPBASIC reads and writes to the counter using the
"COUNT" and "LINEB" commands. The LSI 7166 multimode chip is programmable as an up/down, binary, BCD, divide-by-n, or a X1, X2, or X4 quadrature counter.
Inputs include 'A' and 'B' quadrature, load,
reset, enable, and count. Functions are programmable in software. The counter can interrupt the processor when counting produces a borrow or carry. An external circuit is necessary to interrupt in quadrature mode.
Real Time Clock
An optional DS1216DM or DS1216D512 calendar/clock module is supported via "DATE" and "TIME" commands. Time stamp data, set control schedules, etc. The 24 hour clock
has a resolution of 0.01 seconds. The calendar/clock lithium battery keeps time for five years.
Technical Information
Processor:
80C320 (8031 compatible, from Dallas Semiconductor),
operating at 22.11184 MHz.
Memory:
RPBASIC is in a 32K ROM. Address 7000H to 7FFFH is available for custom programs. Space from 7000H to FFFFH available if 27C512 EPROM used.
C programs
are stored to a 32K flash EPROM during development. 64K EPROM can be used with an external programmer.
Program and data is 32K RAM standard, 128K and 512K optional. Battery backup for 32K and 128K RAM is
DS1213D. Use DS1213DM for 512K.
RAM, flash, and other I/O occupy data space on 8051. A bank switching scheme accesses devices.
Digital I/O:
The RPC-320 has 33 digital I/O lines divided
into 3 groups; 8 are from screw terminals, 24 are from a 26 pin connector at J1, and 1 is high current output only from a screw terminal. Specifications below are for digital lines except high current. Digital I/O are
TTL compatible. An 82C55 is used.
Drive current 2.5 mA min. per line, sink or source.
Output Voltage:
Low: 0.45V max. at 2.5 mA, 1V max. at 15 mA for opto rack.
High: 2.4V min., sink or source at 2.5 mA.
High Current Output:
8 of the 24 lines sink up to 500 mA at 50V. When all 8 lines are ON, max. is 80 mA/line. Output is disabled by
substituting a dip shunt jumper for the driver IC. This allows lines to be used as inputs.
One line switches from 2 amperes to ground through a 'zero' ohm FET.
Keypad Input:
10 lines accept a
16-24 position matrix keypad. Scanning, debounce, and 8 key buffering performed in RPBASIC.
Display Port:
Digital and power lines used to control LCD character and graphics displays. Displays supported
in RPBASIC. -21V required for graphic display.
Serial Ports:
Two RS-232D serial ports. All have RxD, TxD, and control lines. COM 1 configurable for RS-232 or RS-422/485. Termination
network for RS-485 available. Baud rates programmable from 300 to 38.4K. Data fixed at 8 bits, no parity, 1 stop.
Watchdog Timer, Reset:
Watchdog timer resets card for 100 mS min. when enabled.
Time between resets programmable for 0.4 or 2.5 seconds.
Analog Input:
Resolution: 12 Bits
Accuracy: 11 Bits (+/- 2 counts)
Range: 0-5V, +/- 2.5V
Input imped: 100K
Modes: Single-ended or differential
Overvoltage: +/-12V min.
Overvoltage reduced in IDLE 2 mode.
Multimode Counter:
Range: 24 bits
Max. freq: 20 MHz
Inputs: Quadrature X1, X2, or X4, single ended. TTL level compatible
Type: LSI/CSI LS7166
Interrupts: Carry or borrow. External circuit needed to interrupt in quadrature mode.
Power Requirements:
+5V, +/-5% at 100 mA max. operating. RS-232 voltages generated on
card. IDLE 1 mode reduces card current to 20 mA max. Tick timer and serial ports are active. IDLE 2 mode reduces card current to 1 mA. Currents are no-load.
Operating Temperature Range
-20C to +70C
Mechanical:
Size: 4.6" X 7.0"
Mounting: 0.125" holes, 0.25" from edges
Options
#1084 BASIC-52 software manual
#1343 DS1216DM calendar/clock with battery backup
#1041 VTC-9F serial cable