GTEK 2010B Operator's Manual

Page 1
Model 2010B Intel 8052AH Basic SBC
Operat or’s Manual
Copy r ight 1986, 1988
GT EK, Inc. All Rights Reserved,
Worldwide
Second Printing
April 1, 1988
Part # 01–000–282
Page 2
Chapter 1
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1 Hardware Overview . . . . . . . . . . . . . . . . . . . 1
1.2 Hardware Specifications . . . . . . . . . . . . . . . .1
1.3 Software Overview . . . . . . . . . . . . . . . . . . .2
1.4 Software Specifications . . . . . . . . . . . . . . . .2
1.5 Firmware Overview . . . . . . . . . . . . . . . . . . .3
1.6 Firmware Specifications . . . . . . . . . . . . . . . . 3
Chapter 2
Getting Started . . . . . . . . . . . . . . . . . . . . . . . . .5
2.1 Unpacking . . . . . . . . . . . . . . . . . . . . . . .5
2.2 Installation . . . . . . . . . . . . . . . . . . . . . . .5
2.2.1 Quick Start . . . . . . . . . . . . . . . . . . . . 5
2.2.2 Normal Installation . . . . . . . . . . . . . . . . 6
Chapter 3
New Commands and Additions . . . . . . . . . . . . . . . . . 9
3.1 New Commands . . . . . . . . . . . . . . . . . . . .9
3.1.1 AUTOEXn . . . . . . . . . . . . . . . . . . . . 9
3.1.2 DIR . . . . . . . . . . . . . . . . . . . . . . . 10
3.1.3 EGETn . . . . . . . . . . . . . . . . . . . . . 10
3.1.4 EPUTn . . . . . . . . . . . . . . . . . . . . . 11
3.1.5 ERASEn . . . . . . . . . . . . . . . . . . . . 11
3.1.6 INn . . . . . . . . . . . . . . . . . . . . . . . 12
3.1.7 LOADn . . . . . . . . . . . . . . . . . . . . . 12
3.1.8 OUTn . . . . . . . . . . . . . . . . . . . . . . 13
3.1.9 SAVEn . . . . . . . . . . . . . . . . . . . . . 13
3.1.A TKO . . . . . . . . . . . . . . . . . . . . . . . 13
3.2 Differences In V1.1 Intel Basic Commands . . . . . 14
3.2.1 Differences Caused by Ram Refresh . . . . . 14
3.2. 2 New Value s f or Basic Constants . . . . . . . . 14
3.2.3 Sign on message . . . . . . . . . . . . . . . . 14
3.2.4 EE/Eprom Code Memory . . . . . . . . . . . 14
3.2.5 Unusable Intel Basic V1.1 Commands . . . . 15
3.2.6 Intel V1.1 Ba sic Commands Used Differently . 15
Table of Contents
Page i
Page 3
Chapter 4
Communications Software . . . . . . . . . . . . . . . . . . 19
4.1 B51 Installation . . . . . . . . . . . . . . . . . . . . 19
4.2 Using B51 . . . . . . . . . . . . . . . . . . . . . . . 19
4.3 Using Mke.bat . . . . . . . . . . . . . . . . . . . . 21
Chapter 5
2010B RS–232 Interface . . . . . . . . . . . . . . . . . . . 23
Appendix A
2010B Board Connector Pinouts . . . . . . . . . . . . . . . 25
Expansion Bus 34 Pin Connector On 2010 Board . . . . 25
40 Pin Connector On 2010 Board . . . . . . . . . . . . 26
Appendix B
Jumpers Used on the 2010B Board . . . . . . . . . . . . . 31
Appendix C
Example Basic Program
Table of Contents
Page ii
Page 4
Chapter 1
Introduction
1.1 Hardware Overview
The GTE K Model 2010 single board computer is intended to be the
best single board computer to use for control applications ever made.
The 2010 has 40 pr ogr ammabl e I/O lines . Eac h I/O lin e may be progra mme d for e it he r in put or output w ith out r ega rd t o its pos it ion on the connector. Eight of those 40 are POR T 1 of the processor . The other 32 are on 2 Z80 PIO chips.
In addition to those 40 I/O lines, are lines to be used to expand the functions o f the 2010 board . AD0-AD7, ALE, RD, WR, PSEN, A8- A15, ROM, CMM, VDD, P1.5, P1.6, P1.7, Vcc, Vdd, DTR and GROUND are brought to a 34 pin expansion bus (see appendix A). This makes expans ion to more memory or boards, like a D/A A /D con verte r or more I/O, easily attached. With proper design, the board could just piggy back on top of the 2010.
The 2010 has a built in 5 volt regulated power supply. It needs to be connected to a s ingle ended pow er supply capable of at least 9 v olts at 500 milliamps to b e adequately powered. If you attach exp ansion boards to it, you must use an adequate power supply. The RS-232 uses a MAX-232 chip to obtain the + — 12 volts for the RS-232 supply.
With the proper power supply, you can supply approximately an other 250 to 500 milliamps to peripherals. You must provide for ade qua te cooli ng of the re gul a tor, howe v e r . T h e r egu la tor i s ca pabl e of delive r ing up to 1 amp provided pr oper heat s inking is prov ided.
1.2 Hardware Specifications
PHYSICAL SIZE:
3.55 x 6.90 x .6 inches
90.17 x 175.26 x 15.24 mm
WEIGHT: 6 ounces (170 grams)
Chapter 1 Model 2010B
Page 1
Page 5
POWER REQUIREMENTS:
9 V olts AT 500 milliamps
Direct I/O Lines Programmable a s Inpu t or Output:
40
Indirect I/O Lines T hrough Expansion Bus:
C000-FFFFH, and 0000-7FFFH if the EEprom is not used.
PROCESSORS:
8031 at 11 MHz (standard)
(Optional) 8751, 8751H, 87C51 at 11 MHz
8032 at 11 MHz
8052AH BASIC
(Also see your processor specification sheet)
1.3 Software Overview
Much of the software for the 2010 is strictly communications software. That is, you could use other programs to communicate with the 2010, but our software will recognize upload, download and other commands and handle them a ccordingly.
Most of the commands are handled by the 2010 directly, rather than on your computer . This allows it to run in the same way on virtually any computer or terminal.
The software used to handle comm unic ations is called B51.COM. A progr am called PINSTALL is pr ovided to install it for the Baud Rate or COM port you are using. The software used to handle upload/download from t he BAS IC opti on is called B51 .COM. U se B 51 to save/load your basic programs either in an ASCII format for imme­diat e use w ith an EEpro m, o r i n a to keni zed f orm at so t hat yo u c an dedicate the contr oller with a BA SIC program in an Eprom.
1.4 Software Specifications
Althoug h t h e 2010 is c apabl e o f com m u n icatin g at Baud Rates of fro m 300 to 57,600 Bau d, B51 co mmunic ates at 9600 Baud . Com­mands are available to save or load an ASCII BASIC program, and save a tokenized BASIC program to execute from a burned Eprom.
Model 2010B Chapter 1
Page 2
Page 6
1.5 Firmware Overview
Much of the versatility of the model 2010 board comes from being able t o refr esh ram th ro ug h an in terr up t ser vic e ro uti ne every 2 mi l­liseconds. The built in monitor firmware takes care of this in conjunction with the P AL. Y ou are not aware of this going on except that you cannot make exclusiv e use of th e timer taking care of th i s function.
Much of the fi rmwa re mon itor is ti e d into th e PA L fu nctiona l ity. This means that if you write code to go into the Eprom or EEprom, then you must also include the monitor code. If you don’t you may lose function of t he ram ref resh and o f cou rse all o f the bui lt- in c omm ands and RS-232 communications. When using the B51 program to save token iz e d bas ic to be put in to an E prom, you s hou ld us e t he MK E . BAT program to put the monitor and other things into the correct location in the Eprom.
1.6 Firmware Specifications
The firm war e inc l ud ed wit h the 8052AH BASIC c hi p t akes c ar e of the Ram Refresh and new commands added to 8052AH BASIC. Refer to the memory map. Locations 0-1FFFH in code memory are reserved for 8052AH BASIC. 2000H Through 7FFFH is reserved fo r BASIC and the firmware monitor. When using a 2864 or 2764 (8K memory device), it i s inser ted at loc atio ns 2000H t hro ugh 3FFFH. When usi ng a 16K devi ce, it is in serted at 2000H t hrou gh 5FFFH. When using a 32K device, it is inserted at 2000H through 7FFFH. Note that you lose 8K to the 8052AH BASIC monitor rom.
—Notes—
Chapter 1 Model 2010B
Page 3
Page 7
—Notes—
Model 2010B Chapter 1
Page 4
Page 8
Chapter 2
Getting Started
2.1 Unpacking
When unpacking the model 2010 board, be sure to watch for items such as j umpers, d isks, cables, and instructions and/or errata sheets while you are unpacking. Many phone calls have been made in the past, bec ause in th e hast e of unp acking and get ting to the m ain boar d, materia l th a t w a s th ough t to be packi n g m a te r i a l w a s pr ote cti n g a dis k or ins tr uc t io n m anu als. These mat eri als sh o uld b e p lai nly mar ked as "instructions" or "disk", but some people don’t take the time to read it and discard it. If you think yo u are missing anything from your or der, please be sure to go back through the packing material to make sure tha t it was not acci dentally discarded.
2.2 Installation
The 2010 board (depending on the options ordered) generally comes set up to plug in and run. Yours should be set up with the Basic monitor on a 2864. Jumpers will be s et for this installation with no other option ju m pers.
2.2.1 Quick Start
To begin communicating immediately with the board follow these instructio ns:
1—Plug i n RS–232 cab le t o c o mp u ter and 2010 b o ar d . (o r mak e
cable from instructions in appendix D).
2—P lug wall trans f ormer into board.
3—Plug wall transformer into 120 Volt outlet.
4—Run B51 (B51 is an optional program) communications pro-
gram.
5—Issue commands.
Remember that if you don’t have the B51 communications program that you will have to set the communications parameters first on your comp uter to communicate with the board. The 2010 is set up to be a
Chapter 2 Model 2010B
Page 5
Page 9
DCE device. This means that on an IBM PC or AT type computer (that has a D TE port) the cable will run straight through.
2.2.2 Normal Installation
After u npac kin g th e 2010, set it up fo r yo ur use. Nor mally, it w ill already be installed to use with the 8052AH BASIC. However, you may install the board in this manner:
1—If you didn’t get a cable from us, make an RS-232 cable like this:
a) The c able requir ed is a st raight thro ugh c able. Pin 2 on the
computer hooks to pin 2 on the 2010. Hook up pins 1, 2, 3, 4, 5, 6,
7, and 20. 8052AH BASIC does not require hardware handshaking,
so you could just use pins 2, 3 and 7 for a cable.
b) The comp ut er end of the cable will require a female connector,
while the 2010 end requires a male connector.
2- Hook the RS– 232 cable to the 2010 and the computer.
3- Chec k t he j u mp er s fo r o per at io n. A no rm al fi rst ti me o p erat io n
will already have the jumpers in the correct location, however check
the jumpers as follows:
JB5
—1 is /EA of the processor pulled high by a 2K RP (for internal
progra m m emory).
—2 is G r ound (for external pr ogr am me m or y acces s)
Default: leave this jumper open for use with 8052AH BASIC. Ground
it to use the 8052AH as an 8032.
JB6
—1 is Vcc. (used for 2764/27128 /pgm pin.)
—2 is pin 27 of t h e program memory socket (common).
—3 is A14 of the Address Bus
—4 is /WR from th e processor
Default: 4–2 for 2864. Hook 1–2 for 2764,27128. Hook 4–2 for 28256
to allo w / WR to pr og ram EEpro m. H oo k 3–2 fo r 27256, 27512 to
allow A14 on pin 27 (A14).
Model 2010B Chapter 2
Page 6
Page 10
JB7
—1 is Vcc. (used for 2764/27128/27256 Vpp pin.)
—2 is pin 1 of the program memor y socket ( com mon)
—3 is A15 of the Address Bus
—4 is A14 of the Address Bus
Default: 4–2 for 2864. Hook 1–2 for Vcc to Vpp of 2764,27128,27256. Hook 4–2 for 28256 to allow A14 onto pin 1 (A14). Hook 3–2 for 27512 to allow A15 onto pin 1 (A15).
Memory (Usable size) JB5 JB6 JB7 Type:
2764/A 8K Eprom 1–2 2–1 2–1 ML
2764/A 8K Eprom none 2–1 2–1 BASIC
2864 8K EEprom 1–2 2–4 2–1 ML
2864 8K EEprom none 2–4 2–1 BASIC
27128/A 16K Eprom 1–2 2–1 2–1 ML
27128/A 16K Eprom none 2–1 2–1 BASIC
27256 32K Eprom 1–2 2–3 2–1 ML
27256 24K Eprom none 2–3 2–1 BASIC
28256 32K EEprom 1–2 2–4 2–4 ML
28256 24K EEprom none 2–4 2–4 BASIC
27512 32K Eprom 1–2 2–3 2–3 ML
27512 24K Eprom none 2–3 2–3 BASIC
JB5 controls external access of program code fetches. If it is jumpered /EA is grounded, forcing the processor to fetch code exter­nally fr om t he Ep r o m . If you have a 8751 o r 87C51 y o u sh o u l d l eave pin 1 a nd 2 of JB 5 ope n (n one) to fetch code in ter nal ly fr om the Epr om.
JB6 controls where pin 27 of the program memory socket (Eprom or EEprom) connects. Pi n 2 7 connects to pin 2 of the jumper block. If pin 2 is jumpered to pin 1 (Vcc) then that pin is held at Vcc for a 2764. To pin 3 will connect line A14 to pin 27 for a 27256. To pin 4 will connect /WR to pin 27 for for /WE for 8K EEproms, Xicor X2864A for example.
JB7 contr ols whe r e pi n 1 of the progr am me mory s ocke t ( E prom or EEprom) connects. Pin 1 of the program memory socket connects t o pin 2 of th e jumper b lock. If pin 2 is j umpered to pin 1 (Vcc) then t hat pin is held at Vcc for a 2764. To pin 3 will connect line A15 to pin 1 for
27512. To pi n 4 will co nnect line A14 to pin 1 for a Xicor X28256 for examp l e.
Chapter 2 Model 2010B
Page 7
Page 11
4—If you are usin g the Wall Transformer, pl ug it int o the miniature pho ne j ac k j ust t o t he sid e of the DB- 25 co nnec to r. If you are usin g anot her exter nal p o wer su pp ly, th e be su re th at yo u d o n’t exc eed 9 Volts input . If you do, ma k e sur e that the extra power diss ipation from the 7805 is taken care of. A 12 volt power supply may require additional heat sinking or forced air cooling of the heat sink of the 7805 regulator.
On the Miniature phone jack connector the tip is + and the ring is —. There is a diod e in ser ies wit h the l ine go ing to t he reg ulat or to prevent reverse current flow, so if the board does not operate, check for power reve rsal.
If yo u ar e su p plyi ng a reg ul at ed + 5 volts fro m an ex t er n al pow er supply, unsolder and remove the 7805 regulator from the board. Hook the + 5 volts to either the expansion connector or the hole where the output pin of the 7805 was, and the ground to either the expansion plug or the middle leg hole of the 7805.
—Notes—
Model 2010B Chapter 2
Page 8
Page 12
Chapter 3
New Commands and Additions
3.1 NEW COMMANDS
All th ese com mands c an be exec uted ei ther fro m an exec uting basic program or from the immediate mode. Some commands are better executed from the immediate mode, such as for the baud rate.
In the prog rams shown below, a command that you are to type in from the command prompter is shown in bold. A "enter" is shown as < cr> . A > R EM is s im pl y a comm e n t tha t doe s n ot have to be ty pe d.
3.1.1 AUTOEXn
Special command t o perfor m an automatic command on boot up.
AUTOEX0
Causes an auto baud–rate seek on pow er up. You must
strike a space bar to lock onto the baud rate. (default)
AUTOEX1
Saves the current baud rate. No space will have to be
struck before any execution begins.
AUTOEX2
When executed will cause 8052AH BASIC to boot to the READY prompter instead of loading and executing program 0. (default)
AUTOEX3
When executed will cause 8052AH BASIC to lo ad and exec u t e p r o gram n u m b er 0, i f there i s o n e saved by t h at n am e. If there isn’t one, then it will return to the READY prompt.
AUTOEX4
When executed will c ause 8052AH BASIC to use our SLOW EEprom program routine to be used for certain types of EEproms that program slowly when using the SAVE and ERASE commands.
AUTOEX5
When executed will c ause 8052AH BASIC to use our FAST EEprom program routine to be used with certain types of EEproms t hat ca n be programme d fast . (defaul t )
Onc e any of the abo ve com mand s are used, they b ecom e per­man ent in the EEprom. To change them , simply issue the opposite command. Eg. if you have used AUTOEX1, to change it use AUTOEX0.
Chapter 3 Model 2010B
Page 9
Page 13
EXAMPLES: Program in PROGRAM 0 that you want to execute on power up with no user intervention:
> AUTOEX1 > REM Store curre nt Ba ud R ate: Els e your pr ogr am > REM won’t execute without striking a space bar > RE M Really ne cess ary if you don’t have a > REM terminal hooked to the 2010!!! > AUTOEX3 > REM Tell 8052AH Basic to Execute program 0 on > REM power up.
3.1.2 DIR
When th e
DIR
co m man d i s u sed , a li st of t he p ro g r ams av ailab l e
store d on the E Eprom, a long w ith the si ze i s pri nte d to the con sol e. EXAMPLES: > DIR< cr>
4 size 389 2 size 185 0 size 1084 1 size 988 >_
Note: The order in which you saved the programs is how they will appear on screen. There may be up to 254 files if you had room for them on the EEprom.
3.1.3 EGETn EGET
Is a command that PUSHes an 8052AH BASIC 6 byte floating point n umbe r fr om st ora ge in the E E pr om on to the a rgu me nt st ack. You can retrieve up to 32 numbers in this fashion (0-31). The num bers are s tored in EEpro m (o r Epro m) fro m 2740H thr oug h 27FFH (192 b y tes ). Yo u c an c reat e a f ile ex t ernal ly o n d i sk t o b e stored on the Eprom so that you can EGETn those numbers after power has been off or f or r e-boots.
Model 2010B Chapter 3
Page 10
Page 14
EXAMPLES of EGET: > PUSH 32: EPUT 0 : EGET 0: POP A: ? A< cr> 32 READY >_
3.1.4 EPUTn EPUTn
Is a command that POPs an 8052AH BASIC 6 byte floating point number from the argument stack and programs the EEprom in the storage area (2740H- 27FFH). The number may then be obtai ned by an EGE Tn and a POP command.
EXAMPLES: > PUSH 123.45678: EPUT0: EGET0: POP A: ? A< cr>
123.45678 READY >_ > REM now that number is in permanent > REM storage (until it’s changed) > REM in the EEprom at location 0 of the EGETs.
3.1.5 ER ASEn ERASEn
is a command that will ER ASE a program from the EEprom program storage area. It is the opposite of SAVEn. The 2010 will remove the program by rewriting the entire EEprom program storage area so that there are no gaps after the program is removed from storage. The range of n is 0–254 (0–FEh).
Examples: > DIR< cr>
4 size 389 2 size 185 0 size 1084 1 size 988 READY > erase0< cr> READY > dir< cr> 4 size 389
Chapter 3 Model 2010B
Page 11
Page 15
2 size 185 1 size 988
3.1.6 INn INn
is a command that will input 8 bits of data and PUS H it onto the arg ument s tack from the 4 ports on the Z 80- PIO ’s. The vali d num­bers for the ports are 4, 5, 6 and 7. U4 Port A is what we call port 4, U4 Po rt B is what we call port 5, U3 Port A is port 6 and U3 port B is por t 7. (See Appendix A for pinout)
Examples: > IN4: POPA: ? A: IN4,5,6,7: POP A,B,C,D< cr>
255 READY > PRINT A,B,C,D< cr> 255 255 255 255 READY >_
3.1.7 LOADn LOADn
is a command that will cause f ile number n to be loaded to current Ram memory. A NEW is automatically done before the LO AD , so files will not "merge" in memory . The range of n is 0 to 254. If LOADn is executed on a program line, another program is L OADed and run. You could chain programs together like this. All variables are lost during t his process, but you can use
EPUTn, EGETn, LD@
and ST @
commands to save your variables. Examples: > LOAD9< cr>
READY > REM Loads file 9 from EEprom to Ram. > RUN: REM Run it.
Model 2010B Chapter 3
Page 12
Page 16
3.1.8 OUTn OUTn
is a command that will output 8 bits of data (to port numbers 4, 5, 6, or 7) to the Z80-PIO’s, that was POPped from the argument stack.
Examples: > C= 29: PUSH 22,25,32,C: OUT 4,5,6,7< cr>
> REM Port 4 pins contain data 29, Port 5 pins contain data 32 > REM Port 6 pins contain data 25, Port 7 pins contain data 22. > IN 4,5,6,7: POP PORT7,PORT6,PORT5,PORT4< cr> READY > PRINT PORT4,PORT5,PORT6,PORT7< cr> 29 32 25 22 READY > REM PORT4 etc in the above line are just variables we used. > REM Remember that PORT1 is a Basic Keyword!
3.1.9 SA VEn SAV En
is a command that will save the program that is currently in Ram to t he EEprom in file number n. The range of n can be from 0–254. If th ere i s c ur ren tl y a p ro g ram res id in g i n t hat file n um b er, then an error message will be issue d. If there is not enough memory to save that file, then a n e rror messa ge will be iss ued.
Example: > SAVE3< cr>
3.1.A TK O TKO
is a command that will cause each byte of the program in memory to be output to the console in an ASCII-HEX form. One binary byte becomes 2 ASCII bytes. Thi s comman d is used by the program B51 to capture the program in Tokenized form to be put on an Epro m usin g an ex ternal Eprom Prog ram mer suc h as the GTEK mo d el 9000. This c o mm and sh o uld no t b e issued fr o m th e console. It should be used from the "Enter Command Line" com­mand within B51.
Example: > ^F
Chapter 3 Model 2010B
Page 13
Page 17
Enter Command Line — > filename [TKO< cr>
3.2 Differences In V 1 .1 Intel Basic Commands
3.2.1 Differences Ca used by Ram Refresh
Ra m refresh is handled in a top priority mode every 2 millise conds during the
TIMER1
interrupt. This will cause all calculations for the
BAUD , PWM
, every command that uses
TIMER1
, to be 79 machine
cycles longer . S ee the specific commands affected for differences.
3.2.2 Values for Basic Constants
MTOP = E000H XTAL = 11,000,000 Hz. TCON = 118 T2CON = 52 TMOD = 16
3.2.3 Sign on message:
GTEK, INC. Model 2010 Basic 51 V ersion 1.1 b >_
3.2.4 EE /Eprom Code Memory from 2000H through:
2864 EEprom through 3FFFH (8K). 2764 Eprom through 3FFFH (8K). 27128 Eprom through 5FFFH (16K). 27256 Eprom through 7FFFH (24K). 28256 EEprom through 7FFFH (24K).
In relation to the above, SAVE and ERASE will not work with Eprom for co de memory. LOAD will load the program from Eprom to ram to run.
Model 2010B Chapter 3
Page 14
Page 18
3.2.5 Unusable Intel Basic V1.1 Commands
These co mmands are still there, but use of them may c ause you problems because Eprom [EEprom] is at 2000H instead of 8000H.
RAM
—Hardware dependent. Use
LOAD
to load progra m into Ram
to
LIS T
, etc., instead.
ROM
—Hardware dependent. Use
LOAD
to loa d progr a m i n to Ra m
to
LIS T
, etc., instead.
XFER
—Hardware dependent. Use the
LOAD
command.
PR OG, PROG1, PROG2, P ROG3, PROG4, P ROG5, PR OG6, FPR OG, FPROG2, FPROG3, FPROG4, FPROG5, FPROG6—
Hardware de-
pendent. Use SAVE and ERASE instead.
UI0, UI1, UO0, UO1
—Do not use, hardware dependent.
RROM
—Hardware dependent. Use
LOAD
and
RUN
.
PGM
—Hardware dependent. Do not use.
3.2.6 Intel V1.1 Basic Commands Used Differently
a) The
BAUD
co mmand m ust b e mod ified . Use the foll owi ng fo r-
mulae to calculate the Baud R ate for
List#
and
Print#
:
79 is number of machine cycles for refresh. 12/XTAL is period for 1 machine cycle= about 1.090909 uS. ABN is Actual Baud Number . BR is the baud rate of the device to be output to:
or ABN = 1 / ((1/baud) - (79*(12/XTAL))
Use the 2010 to calculate it for you: > 10 BR= 1200: REM FOR 1200 BAUD DEV ICE<cr> > 20 ABN= 1/((1/BR)-(79*(12/XTAL)): ? ABN< cr> > RUN< cr>
ABN=
1
1
BR
79 x 12
XTAL
()
Chapter 3 Model 2010B
Page 15
Page 19
1338 READY > BAUD 1338< cr> : RE M LIST DEVICE T O 1200 BA UD
Y ou should not use baud rates lower than 600 Baud, because since the same timer for Ra m R e fresh is used for baud rate running at 300 baud (about 3.3 millise conds), that is longer than the time between refresh cycles. The ram could probably withstand the rate, but a marginal Ram chip might not make it much longer than the 2 millisecond rate specified for that c hip. See Page 28 in t he
Intel
8052AH BASIC
manual. The
Intel 8052AH Basic manual
is an
optional purch ase. b) Do not use
CALL (0-127)
unless you are using an Eprom greater
than 8K and have provided the proper vectors. use
Call [i nteger]
instead. Page 29 of
8052AH BASIC
manual.
c) T h e
PWM
statement (Page 62 of
8052AH BAS IC
manual) will run differently, due to the Ram Refresh having higher priority. The minimum valid numb er usable for the numb er of c lo c k c yc les the wave will re main high or low is still 25, but since a R am R efresh C ycle will occ ur for every transition, you must figure that there are ap­proximately 79 additional machine cycles added to the number of ma chine cycles yo u use for the
PWM
statement.
PWM 100,100,1000
wou l d g en er at e 1000 c y c l es of a squar e wave that h as a perio d of ( 100m c + 79m c)* 2 * 1.0909us = 390uS on P1.2 (2560 HZ). It i s not possible to obtain the sam e frequ ency as on page 62 because the number that you would use for mc would be Machine Cycles = (217us/(2*1.0909us)) - 79 = 20, which is too low to use in the PWM statement since 25 is the minimum. Referring to the program on page 173, use the one following instead:
10 PRINT"1= FREQUENCY FOR PWM" 11 PRINT"2= RELOAD FOR FR EQUENCY" 12 PRINT"3= QUIT -", 14 INPUT A 20 IF A= 1 THEN GOSUB 30 : A= 0 22 IF A= 2 THEN GOSUB 110 : A= 0 23 IF A= 3 THEN END 24 GOTO 10 30 T= 12/XTA L
Model 2010B Chapter 3
Page 16
Page 20
40 C= 79 50 INPUT "ENTER REL OAD OR 0 TO RETURN - ",B 60 IF B= 0 THEN RETURN 70 A= 1/((B+ C)*T*2) 80 PRINT "FREQUENCY IS", 90 PRINT USING(#####.###),A : PRINT 100 GOTO 50 110 T= 12/XTA L 120 C= 79 130 INPUT "ENTER FREQ. OR 0 TO RETURN - ",A 140 IF A= 0 THEN RETUR N 150 B= ((1/A)-(C*T*2))/(T*2) 155 PRINT "REL OAD VALUE IS ", 156 D= INT(B): D= B-INT(B): IF D.5 THEN 160 157 B= B+ 1 160 PRINT USING(####),B : PRINT 170 GOTO 130
The lowest reload value you may use is 25 (as per the
8052AH BAS IC
manu al) . The larg est yo u sho uld at tem p t to use is 835 d ue t o the Ram Refresh Rate.
d)
PCON, RCAP2, T2CON, TCON, TMOD
Probably should not be used at al l, o r w ith extr eme cau tio n. I f yo u mo d ify or assig n any variab les t o t hese r egis ters, yo u mi ght d amag e the Ram Refresh ISR and / or the Serial Communications.
e)
TIMER0 (RTC- CLOCK1), TIMER1 (Ram, PWM, LIST# ), TIMER2
(S erial Baud R ate Gen erat ion), Proba bl y should not be used at all or wit h ext rem e caut io n. If yo u m od ify or as sign any var iabl es to these registers, y ou may damage the Ram Refresh I SR and/or the Seria l C ommunications.
—Notes—
Chapter 3 Model 2010B
Page 17
Page 21
—Notes—
Model 2010B Chapter 3
Page 18
Page 22
Chapter 4
Co mmunications Software
4.1 B51 Installation
On your disk you have B51.COM and PINSTALL.COM. Run
PINSTALL to ins tall B51 for the COM p ort and 9600 baud. The 2010B should be set so that it will begin communication right awa y. If you don’t immediately get the prompter when you run B51, type a space bar first! This will cause the 2010B to lo ck o nt o the b au d rate. Rememb er th at you ha ve to be se ndi ng a t the n ew baud r a te a n d re – boot the 2010B to res et the bau d rate with a space .
When you use B51 with your 2010, remember that if you have been
usin g it at ano th er Baud Rate and have do ne an AUTOEX1 at som e other Baud Rate than 9600, you will not be able to communicate with the 2010 until you change it to 9600 with the other program. If you are set with AUTOEX0 (auto baud seek) then you won’t have any problem communicating.
4.2 Using B51
Mos t of the tim e B 5 1 is a si mple commu ni cati on progra m, un til you
execute a CONT R OL– F. At that time it will ask you to enter a command:
> ^F Enter Command —> filename /option/option< cr> Options for saving are /S and /T. A /S is used for saving the
"filena me" a s a n a scii file. A /T (which must always be use d with /S) will sav e the " fil en ame " in a token ize d forma t. If you us e the /S/T option the filen am e m us t alw ay s b e a f il en am e b y th e n am e o f TFn wher e n is 0 through 9.
An ASCII save (/S) will create a filename.B51 file on your disk. A
tokenized save (/S/T) will create a filename.TKO file on your disk. You don’t have to specify any extension with your filename.
The reaso n you mu st use TFn for a filename wi th th e to keniz ed
format is that there is a BATCH file on your d isk called MKE.BAT. MKE.B A T will take tokenized files and combine them with the operating
Chapter 4 Model 2010B
Page 19
Page 23
system and other system files into a file called BURNME in a binary format. This is so that you can install them in an Eprom using an E prom Programmer such as GTEK’s Model 9000, to be used on the 2010.
Example: To load an ascii basic file with extension of .B51 >^F Enter Command —> test< cr> The above command will look for a file called test.B5 1 on your disk
and then issue a
NEW
command to the 2010. It will then send the as cii file to the 2010 one line at a time, waiting for the prompter to come back before sending any more characters at the end of a line. It is possible that if you "saved" the file before with lines that were full (79 characters), you will not be able to get the file back into the 2010. It will cause the 2010 to begin beeping with each character that is sent, and not accept any more charact ers. If that is the case, you will have to edit the line with a word processor before you can send it back, to eliminate ALL spaces on the line. This is the typical cause of the problem if you have previously "saved" the file in the ascii format. If you wrote it with a word processor, you have exceded the line limit and should break the line into two lines.
Example: To save program in ram to disk in ascii format > ^F Enter Command —> test /s< cr> The above will lo ok for a file called test.B51 on the disk. If it do es
not exist, then it will cause the current program in the 2010 to be
LIS T
ed
to the disk in a file called test.B51.
Ex ample: To save program to disk in tok enized for m at >^F Enter Command —> tf 0 /s/t< cr>
The above will look for a file called TF0.TKO on the disk. If it does not exist, then it will c ause the current pr ogram to be sent to t he d isk in a "tokenized" format. You will see ascii-hex numbers being listed to the screen du ring the process. You cannot get the TF0.TKO fil e back into the 2010 without burning the file into an Eprom. Of course it does not d estr oy the pr og ram that is cu rren tly in the 2010 du ring t he /s/ t process.
Model 2010B Chapter 4
Page 20
Page 24
4.3 USING MKE.BAT
After the TF0.TKO file is on the disk, if you would like to install that progra m i nt o an E prom t o ru n a s a de dica t e d progr a m (before y ou /s / t yo u shou ld have d one an AUTOEX1), you may issu e the MKE.BAT command from the DOS system prompt. The line is too long to print as 1 line, but here is MKE.BA T:
copy b9035v2.bin/b+ puts.bin/b+ xb96.bin/b+ %1.tko/b+
%2.tko/b+ %3.tko/b+ %4.tko/b+ 5.tko/b+ %6.tko/b+ %7.tko/b+
%8.tko/b+ %9.tko/b+ eofchar.bin/b burnme/b
Ex ample: To sen d data for eprom t o GTEK programmer
C> MKE TF0 TF1 TF2< cr>
The above will take the 3 tokenized basic files called TF 0 , TF1 a nd TF2 and add th em to th e system info rm ati on fo r t he Epr om and p ut them in a file called burnme. The above MKE file with the specified parameters as executed by the batch file becomes:
copy b9035v2.bin/b+ puts.bin/b+ xb96.bin/b+ TF0.tko/b+
T F1.tko/b+ TF2.tko/ b+ eofch ar.bin/b burnm e/b
The burnme fi le is a bi nary fi le that then m ay be used to create an Eprom with those 3 basic files on it. If you have AUTOEX3 in force then the file you named TF0 will become the program that begins running on a B OOT (appl y ing powe r or reset).
On a GTEK Model 9000 programmer this BURNME file may be sent directly to the Eprom. On the other model GTEK programmers (7128, 7228, 7956), you must first run the program GHEX on the BURNME file if you are not using the program PGMX7 (or PGMX), since it is a Binary file and it should be an Intel Hex file instea d for those models running PGX or oth e r pr ogram. O n ot her progra m me r s you s hou l d f oll ow their procedu r es f or burnin g a binary fi le in t o an Eprom.
When you in s tall t he Eprom into the 2010 in place of t he EEpro m, REMEMBER TO SET THE JUMPERS IN THE RIGHT POSITION! If you don’t then som e u nexpected thin gs mi gh t h a ppe n , li ke it don’t wor k a t all!
—Notes—
Chapter 4 Model 2010B
Page 21
Page 25
—Notes—
Model 2010B Chapter 4
Page 22
Page 26
Chapter 5
2010B RS–232 Interface
The model 2010B has a DB25S connector configured as Data Communications E quipment (DCE).
The meanings of the pins used on the 2010 DB25S connector is
as follows:
Pin# Direction Function
1—(EG) < —> Equipment Ground. Not hooked up.
2—(TXD) < — T r ansmit D ata. Data i n put to processor.
3—(RXD) —> Receive Data. Data output f r om
processor. 4—(RTS ) < — Re ques t To Send. Not hooked up. 5—(CTS) —> Clear T o Send. 2010B and Intel Basic
does not use this pin. 6—(DSR) —> Data Set Ready. Always at + 12 volts
when power is applied to the 2010B.
Intel Basic and B51 does not use this
pin. 7—(SG) < —> Signal Ground. 8—(CD) —> Carrier Detect. Not hooked up. 20–(DTR) < — Data Terminal Ready. Not used by Intel
Basic or 2010B.
Chapter 5 Model 2010B
Page 23
Page 27
2010 (Male DCE) to IBM PC/XT /AT DB25 (female DTE)
Gtek par t number RSFDCE
2010 . . . . . . . .Pin # Pin # . . . . . . . . IBM
EG (nc) . . . . . . . . . 1 1 Cable She ild . EG
TXD (i) . . . . . . . . . . 2 2 . . . . . . . . (o) TXD
RXD (o) . . . . . . . . . 3 3 . . . . . . . . .(i) RXD
RTS (nc) . . . . . . . . 4 4 . . . (o) R TS (opt.)
CT S (o) . . . . . . . . . 5 5 . . . . (i) CTS (opt.)
DSR/CD (nc) . . . .6/8 6/8 (i) DSR/CD (opt.)
SG (i/o) . . . . . . . . . 7 7 . . . . . . . . (i/o) SG
DT R (i) . . . . . . . . . 20 20 . . (o) DTR (opt.)
AT DB9 (male) to 2010 DB25 (female) 2010 (DCE) . . .Pin # Pin # AT (DTE 9 pin)
EG . . . . . . . . . . . . . 1
TXD (i) . . . . . . . . . . 2 3 . . . . . . . . (o) TXD
RXD (o) . . . . . . . . . 3 2 . . . . . . . . .(i) RXD
RTS . . . . . . . . . . . . 4 7 . . . (o) RTS (opt.)
CT S . . . . . . . . . . . . 5 8 . . . . (i) CT S (opt.)
DSR/CD . . . . . . . .6/8 6/1(i) DSR /C D (opt.)
SG . . . . . . . . . . . . . 7 5 . . . . . . . . (i/o) SG
DT R . . . . . . . . . . . 20 4 . . . (o) DTR (opt.)
—Notes—
Model 2010B Chapter 5
Page 24
Page 28
Appendix A
2010B Board Connector Pinouts
(note: refer to data sheets for processor, etc. as needed)
Expansion Bus 34 P in Connector On 2010 Board:
AD0 . . . . . . . . . . . . 1 34 . . . . . . . . . . AD1
AD2 . . . . . . . . . . . . 2 33 . . . . . . . . . . RA8
NC . . . . . . . . . . . . . 3 32 . . . . . . . . . . AD3
NC . . . . . . . . . . . . . 4 31 . . . . . . . . . . AD4
NC . . . . . . . . . . . . . 5 30 . . . . . . . . . . AD5
NC . . . . . . . . . . . . . 6 29 . . . . . . . . . . AD6
VC C . . . . . . . . . . . . 7 28 . . . . . . . . . . AD7
VC C . . . . . . . . . . . . 8 27 . . . . . . . . . . .A1 0
NC . . . . . . . . . . . . . 9 26 . . . . . . . . . . ALE
A15 . . . . . . . . . . . 10 25 . . . . . . . —PSEN
GND . . . . . . . . . . 11 24 . . . . . . . .—RO M
GND . . . . . . . . . . 12 23 . . . . . . . . . . .A1 4
—CMM . . . . . . . . 13 22 . . . . . . . . . . .A13
—WR . . . . . . . . . . 14 21 . . . . . . . . . . .A1 2
A9 . . . . . . . . . . . . 15 20 . . . . . . . . . —RD
A11 . . . . . . . . . . . 16 19 . . . . . . . . . . . .A8
VD D . . . . . . . . . . . 17 18 . . . . . . . . . . V D D
Notes: The followi ng not es refer mostl y to a 2010M. They ar e her e for
refe rence only. AD0-AD8 are pins 39-32 of the processor. A8-A15 are pins 21-28 of the processor. NC means No Connection – this is for prototyping. —CMM is a line from the processor port 3.4 (pin 14) that goes
low for external Reads and Writes to the I/O Map instead of the Ram.
Appendix A Model 2010B
Page 25
Page 29
—ROM is a line from the processor port 3.5 (pin 15) that goes low and causes PSENs to go only to the Ram.
ALE, PSEN, —RD, —WR all come from the processor. (30, 29, 17, 16)
VCC is regulated + 5 volts DC from the on-board 7805 regulator . VDD is unregulated + 9 volts DC from D2 and C21. GND is the system ground. RA8 is a signal output from the PAL for 256Kb R ams.
40 PIN CONNECTOR ON 2010 BOARD
P ort # I/Oaddr Pin # Pin # I/Oaddr Port # Port1 P1.6 01 40 P1.7 Port 1 on U2 8031
P1.4 02 39 P1.5 P1.2 03 38 P1.3 P1.0 04 37 P1.1
Port7 bit 6 05 36 bit 7 on U3 this is port B
bit 4 0635bit 5 bit 2 0734bit 3 bit 0 0833bit 1
Port6 bit 6 09 32 bit 7 on U3 Z80–PIO this
bit 4 1031bit 5 is Port A bit 2 1130bit 3 bit 0 1229bit 1
Port 5 bit 6 13 28 bit 7 on U4 Z80–PIO this
bit 4 14 27 bit 5 is port B bit 2 1526bit 3 bit 0 1625bit 1
Port4 bit 6 17 24 bit 7 on U4 Z80–PIO this
bit 4 18 23 bit 5 is port A bit 2 1922bit 3 bit 0 2021bit 1
On the 2010B, using the INn commands and the OUTn commands
you ca n ge t to t he a bove " ports " i n col umn 1. A comm an d of I N4 w oul d
Model 2010B Appendix A
Page 26
Page 30
refer to Port 4 (Z80–PIO U4 Port A, bits 0–7). All the bits are pulled high by a resistor pull–up pack, and the port will have a va lue of 255 (0FFh) when read with nothing hooked to it (when first booted). If bit 7 was sho r t ed t o gr ound t h e data would r ead as 127 ( 07Fh) w hen r ead . An OUT4 would cause the data from the argument stack to be output to Port 4.
When th e 2010B d o es a Basi c "OUTn" in st r ucti o n , t he output p i ns
of the Z80–PIO are not set to output as referred to in the Z80–PIO data sheet unless the bit datum is 0. They are always set as inputs if the bit datum is 1. The resistor packs pull the pins to Vcc instead of the bits being "set" to output a 1 on t h e port. This avoids con t ention problem s where you might be mixing inputs and outputs on the same Z80–PIO port.
This mean s that if you are driving a transist or base with one of t he
bits, fo r example, wh en you "read" the por t wit h a Basic "INn" instruc­tion, that bit will read as a 0 because the ma ximum voltage that will be on that tran sistor base is only going to be .6 volts , which i s a TT L low. Of course if you were to o utp ut a 0 to that b it, you wo uld cause the transistor (NPN) to turn off. Outputting a 1 to that bit would cause the transistor to turn on again since the base is pulled up to Vcc through a 2.2K resistor. If you have to have a different bias level, you should use either a darlington type transistor or cascade them.
When th e 2010B po wer s o n, all o f th e Z80–PIO po r t b i ts will b e 1
because they are all programmed for "read" on boot. None will be 0 unless you have done an "OUTn" instruction with that bit set low.
After you have don e an "OUTn" ins truction and you read that port,
you are NOT reading the output pin of a particular bit if it was set to 0. Yo u are reading the output latch instead. Other bits that were set to 1 are still set as inputs and you are still actually reading the output PIN and not the latch.
In the cas e of PO R T 1, which is a n 8 bit port th at come s dir ectl y from
the 8052AH chip , t h e b i t s ar e h andled as t h ey w er e com i ng fro m t h e proces sor nor mall y. If you output a 1 on a bi t on thi s port, you a re dr ivin g the bit high also, ev en though it also has a resistor pull–up pack .
Appendix A Model 2010B
Page 27
Page 31
Examples: ’Read I/O after an OUTn instruction
PUSH 85 ’Bit pattern 01010101 (bits 7–0) OUT 7 ’output pattern to port IN 7 ’P OP data f r om por t to argument s t ack POP A ’get data from argument stack. (01010101) ? A ’prints 85 unless bit 6,4,2 or 0 were pulled low.
’Bits that are 0 in this case were read from the output LATCH. ’Bits that are 1 in this case were read from the output PINS.
’Outpu t t ing an d Inputti ng data from Ports 4– 7 an d PORT1.
PUSH 39 ’push argument onto stack OUT 4 ’output data to PORT 4 (Z80–PIO U4 P ort A ,
’which is pins 17–24 on P1 connector . see table ’The OUT also fixes the argument stack
A= 10: B= 20: C= 30: D= 40: E= 50 PUSH A,B,C,D ’Push arguments onto stack (LIFO) OUT 4,5,6,7 ’Output arguments to ports 4, 5, 6, 7 PORT1= E ’output to PORT1
’PORT1= 50, Port 4= D, 5= C, 6= B, 7= A
IN 4,5,6,7 ’Push data from ports 4, 5, 6, 7. The data
’is "Pushed" onto the argument stack
E= PORT1 ’"Read" PORT1 data POP A,B,C,D ’Pop data f r om stack ( LIFO)
’A= Port 4, B= 5, C= 6, D= 7
? A,B,C,D,E ’prints 10 20 30 40 50. Note the order is not
’reversed, because of the "Last In First Out" ’nature of the stack.
On a 2010M (machine Language board), and a 2010B, P1.0 – P1.7 is PORT1 on the 8031 U2. On a 2010M, P80.0 – P80.7 refers to the Z80–PIO U3 Port A data bits. The 80 refers to the memory map ad­dress 80xxH where you can address the A data port. The control port would be 8 1xxH. The 8 2 refers to the m emory map address 82xxH where you can address the B data port. Control is 83xxH. The .7 in P80.7 refers to the bit number 7 in that data port. PA0.7 – P A 0.0 is the Z80–PIO U4 port A. P A 2.7 – PA2.0 refers to the Z80–PIO U4 port B. P139 – P132 corresponds to P1.7 through P1.0 on U2. P131 – P124 corresponds to U3 port B bits 7–0. P123–P116 corresponds to U3
Model 2010B Appendix A
Page 28
Page 32
port A bits 7–0. P115–P108 correspond to U4 port B bits 7–0. P107– P100 correspond to U4 port A bits 7–0.
Jumper blocks JB1 – JB4 allow you to ground certain pins of the 40 pin site ( P2) :
JB1—12 JB2—21 JB3—40 JB4—NC (for prot ot y ping)
—NOTES —
Appendix A Model 2010B
Page 29
Page 33
—NOTES—
Model 2010B Appendix A
Page 30
Page 34
Appendix B
Jumpers Used on the 2010B Board
jumper pin # function JB1 1 pin 12 of P1
2 ground
JB2 1 pin 21 of P1
2 ground
JB3 1 Pin 40 of P1
2 ground
JB4 1 nc (for prototyping)
2 ground
JB5 1 U2 pin 31 —EA. ground for ext. access.
2 ground
JB6 1 Vcc
2 U1 pin 27 —PGM, —WE or A14. 3 U2 pin 27 (A14) 4 U2 pin 16 (—WR)
JB7 1 Vcc
2 U1 pin 1 Vpp or A14 or A15. 3 U2 pin 28 (A15) 4 U2 pin 27 (A14)
Default jumpers for the 2010B are: JB1, JB2, JB3, JB4, JB5 no
jumper. JB6 pins 2–1 for write protected 2864. (jumper 4–2 for writes to EEprom before you use SAVE, ERASE, EPUTn, etc.) JB7 pins 2–1.
—Notes—
Appendix B Model 2010B
Page 31
Page 35
—Notes—
P1 40 pin I/O connector
20
34
4030
10
JB1
21 1 2
JB2
JB3
2 1
JB5
LED
2 1
JB4
P2 34 pin
Expansion Interface connector
1
26
1
8
1718
4
31
2
JB7
JB6
1
2
3
4
JB6 with 2864 2–1 write protected 4–2 enabled writes
JB7 with 2864
2–1
For 8052AH
no connection
Model 2010M Appendix B
Page 32
Page 36
Appendix C
Example Ascii Basic Program
T hi s i s an e x e rci s e i n w r iti n g a basi c progra m th a t ca n be sa v e d on the EEprom and/or saved to the disk. We will go from writing the program to saving it on the EEprom and then saving it on the disk. Follow the steps in order. Commands or data that you will have to type yourself will be in bold. A < cr> means to strike the "enter" key. A < sp> mea ns to strike the space bar. Comments will be between two left and right arrows (also called "greater than" and "less than" signs).
1—Communicate with the 2010B with B51 from the DOS prompter:
C> B51< cr> < sp> < in case you are us ing auto baud rate det.>
—L og on mes sage—
>_
Type in t he f ol low i ng pr ogra m f rom t he RE A DY prom pt. hi t cr a t t he end of each line.>
2—You can now list the program.
> list< cr>
5 Rem This program may have run when you first powered up
your 2010B
10 PRINT:PRINT: PRINT: PRINT: PRINT: PRINT: PRINT: PRINT:
PRINT: PRINT: PRINT
20 PRINT "THIS IS THE AUTO BOOT FEATURE OF THE
2010.":PRINT
30 PRINT "THE JUMPERS ON THIS BOARD HAVE BEEN SET
SO THAT NO"
40 PRINT"WRITES CAN BE DONE TO THE EEPROM. TO WRITE
5 Rem This program may have run when you first powered up your 2010B 10 PRINT:PRINT: PRINT: PRINT: PRINT: PRINT: PRINT: PRINT: PRINT: PRINT: PRINT 20 PRINT "THIS IS THE AUTO BOOT FEATURE OF THE 2010.":PRINT 30 PRINT "THE JUMPERS ON THIS BOARD HAVE BEEN SET SO THAT NO" 40 PRINT"WRITES CAN BE DONE TO THE EEPROM. TO WRITE TO THE EEPROM," 50 PRINT "YOU MUST MOVE THE JUMPER ON JB6 FROM VCC (2-1) TO" 60 PRINT "TO /WR (2-4)." 70 PRINT: PRINT: PRINT :PRINT: PRINT
Appendix C Model 2010B
Page 33
Page 37
TO THE EEPROM,"
50 PRINT "YOU MUST MOVE THE JUMPER ON JB6 FROM VCC
(2-1 ) TO"
60 PRINT "TO /WR (2-4)."
70 PRINT: PRINT: PRINT :PRINT: PRINT
READY
>_
To save th i s progra m y ou just ty ped into ram onto t he EEprom ,
first ma ke sure that you have moved the jumper (2–4) a nd type:
> SAVE 0< cr>
> dir< cr>
0 size 1089
READY
>_
Your program is now saved on the EE prom in file # 0. If you then
type:
> autoexec3< cr>
READY
>_
This will cause the program you just entered to automatically
begin running when you apply power to the 2010. To save your
program to an ascii file on your disk (using B51), type:
> ^F
Enter Command Line — > BOOTMSG /s< cr>
READY
>_
This will cause B51 to
list
the pr ogr am in r am to a disk f ile by t he
name of
BOOTMSG.B51
. You can then load the program by
typing:
> ^F
Enter Command Line — > BOOTMSG< cr>
READY
>_
The above causes B51 to look on the disk for a file by the name
of
BOOTMSG.B51
and if found will issue a
NEW
command to the 2010B and "enter" the data in the 2010B as if you had typed it from the keyboard. When done, control is returned to the com-
Model 2010B Appendix C
Page 34
Page 38
mand prompter of the 2010B. If you would like to "load" a pro­gram from the EEprom type:
> load 0< cr> READY > run< cr>
The above has the following effect:
—Notes—
THIS IS THE AUTO BOOT FEATURE OF THE 2010 THE JUMPERS ON THE BOARD HAVE BEEN SET SO THAT NO WRITES CA N BE DONE TO THE EEPROM. TO WR ITE TO THE EEPR OM, YOU MUST MOVE THE JUMPER ON JB6 FROM VCC (2–1) TO TO /WR (2–4).
Appendix C Model 2010B
Page 35
Page 39
—Notes—
Model 2010B Appendix C
Page 36
Page 40
—Notes—
Appendix C Model 2010B
Page 37
Page 41
—Notes—
Model 2010B Appendix C
Page 38
Page 42
—Notes—
Appendix C Model 2010B
Page 39
Page 43
—Notes—
Model 2010B Appendix C
Page 40
Loading...