Académique Documents
Professionnel Documents
Culture Documents
U s e r s Manual
Release 1.0
Copyright ( C ) 1988
Micromint, Inc.
115 Timberlachen Circle
Suite 200 1
Lake Mary, FL 32746
www.micromint.com
DISCLAIMER
Page 1
RS -232
Console
RS - 232 Auxiliary
Printer Serial
Port Port Port
Processor
I I
C D A
N A D Address
T T D Decoder
L A R
-
8K RAM
OOOOH
8K RAM/EPROM
I I I 2000H
8K RAM/EPROM
4000H
8K RAM/EPROM
6000H
8 K or 16K EPROM
Page 2
COMMANDS OPERATORS
Page 3
2.0 The BCC52x Computer/Controller Board
The BCC52x computer/controller is a single board controller/
development system. The 17 chip c i r c u i t is a compact 4 1 / 2 by 6
1/2 inches ( e x a c t l y the same s i z e as the Micromint TERM-MITE smart
terminal if you want a 2 board complete system). It contains RAM/
EPROM, an EPROM programmer, 3 parallel ports, and 2 serial ports.
There are five main sections to the BCC52x board: p r o c e s s o r ,
address decoding and memory, parallel I / O , serial I / O , and EPROM
programmer.
2.1 Processor
The BCC52x computer/controller board is based on the Intel
8052AH-BASIC chip (or in some cases t h e Micromint 80C52-BASIC
chip). This is a prepragrammed versions of the INTEL 8052AH
microcontroller (block diagrammed in Figure 2.1-1). The processor
contains 8K b y t e s of on-chip ROM, 2 5 6 bytes of RAM, three 16 b i t
counter/timers, 6 interrupts, and 32 1/0 lines. he ROM is a
masked BASIC interpreter and the I / O lines are redefined to
address, data, and control lines.
The processor has a 16 bit address and 8 bit data bus (the 8
least significant address bits (AO-A7) and the data bus (DO-D7)
are multiplexed together similar to the 8085 and 2 8 ) . When the
c h i p is powered up it s i z e s consecutive external memory from O O O O H
to end of memory (or memory failure) by alternately writing 55H
and O O H t o e a c h l o c a t i o n . A minimum of 1K bytes of RAM is
required for BCC52x to function and any RAM must be located
starting at 0000H.
Three control lines, RD ( p i n 171, WR (pin 161, and PSEN ( p i n
29) partition the address space as 64K bytes each of program a n d
data memory. However, user called assembly routines and EPROM
programming are unsupported in data memory. For that r e a s o n , t h e
BCC52x as designed are addressed completely as program memory
(RAM/EPROM mode) both for RAM and I / O . The addressing logic is as
follows:
Page 4
T h e SCCS2x reserves the first 512 bytes of External Data
Memory to implement two "softwarefvstacks. These are the control
stack and the arithmetic s t a c k or Argument Stack. Understanding
how the stacks work is only necessary if t h e user wishes to link
BASIC-52 and 8 0 5 2 Assembly Language routines. The details of how
to link to assembly language are covered in t h e Assembly Language
Linkage section of the MCS BASIC-52 User's Manual.
Page 5
The c o n t r o l stack occupies locations 96 ( 6 0 H ) through 254
(OFEH) in external RAM memory. This memory is used to s t o r e a l l
information associated with loop control (i. e. DO-WHILE,
DO-UNTIL, and FOR-NEXT) and BASIC subroutines (GOSUB). T h e stack
is initialized to 254 ( O F E H ) and "grows down.g1
Page 6
Altogether there is 48K of memory on the board if you use 4
8K RAMS (in I C s 1,3,8,12) and a 16K EPROM in I C l 2 . T h e memory and
1/0 can be further expanded through the bus using BCC series
expansion cards.
A second decoder, IC14, partitions either C800H-CFFFH or
E800H-EFFFH as eight 256 byte 1/0 blocks. Rather than simply using
the available COOOH or EOOOH strobes from IC13 alone which would
occupy a 2000H address space for a single PIA c h i p , I C 1 6 allows
many peripherals to share the remaining address space by using
o n l y a 256 byte address range. This addressing convention is
consistent w i t h other BCC expansion boards and it i s easy to
configure a 6 4 channel A/D or 128 channel power 1/0 system using
this board w i t h a number of peripheral cards.
2 3 Parallel 1/0
The BCCS2x contains an 8 2 5 5 ( 8 2 C 5 5 i n the BCC52C) P I A which
provides three 8 bit software configurable parallel ports. The
three 1/0 p o r t s , labeled A , B, and C and a write only c o n t r o l port
occupy 4 consecutive addresses in one of the 8 jumper selectable
1/0 blocks. With COOOH selected and YO on IC16, the range would be
C800H thru C803H. Using the X B Y ( ) operator in BASIC, data can be
written to and read from this P I A (you are probably more familiar
w i t h PEEK and POKE. PEEK is accomplished with PRINT XBY(OC802H)
and a POKE is XBY(OC802H)=A). The three parallel port's TTL
compatible outputs are connected a l o n g with ground to a 2 6 p i n
Berg-type header.
2 5 EPROM Programmer
RAM
Page 8
When ROM [integer] (cr) is entered BCC52x selects the c u r r e n t
program o u t of EPROM memory. If no integer is typed a f t e r t h e ROM
command ( e ROM (cr)), BCC52C defaults to ROM 1 . Since the
programs are stored sequentially in EPROM the integer following
t h e ROM command selects which program the user wants to run or
l i s t . If you attempt to select a program that does not exist
( i . e . you type in ROM 8 and only 6 programs are stored in the
EPROM) the message Error: Prom Mode will be displayed. The error
is non-destructive and you can retype the correct command.
The BCC52x does not transfer the program from EPROM to RAM
when the ROM Mode is selected and you cannot EDIT a program in
ROM. Attempting to do so will result i n an error message.
The PROG2 command does everything the PROGl command does, but
instead of msigning-onu and entering the command mode, the BCC52x
immediately begins executing the first program stored in the
r e s i d e n t EPROM.
Page 9
By using the PROG2 command it is possible to r u n a program
from a reset condition and never connect the BCC52x to a console.
Saving PROG2 information is equivalent to typing ROM 1 and RUN in
sequence. This is ideal f o r c o n t r o l applications, where it is not
always possible to have a terminal present. Also, this feature
permits the user to w r i t e a special initialization sequence in
BASIC or Assembly Language and generate a custom "sign-on1' message
for specific applications.
Page 10
A f t e r applying power, the BCCS2x:
Page 11
4.1 Variables and Expressions
The range of numbers that can be represented in the BCC52x is:
Page 12
An expression is a logical mathematical expression that
involves Operators (both unary and dyadic), C o n s t a n t s , and
Variables. Expressions can be simple or quite complex, i . e .
12*EXP ( A ) / l o o , H (1)+55, or (SIN(A)* S I N ( A ) +COS ( A ) *COS (A) ) / 2 . A
"stand aloneM variable [var] or constant [const] is also consid-
ered an expression.
Page 13
Finally, PWM is an interesting statement that might be useful
to literally add bells and whistles to your next c o n t r o l
application. PWM stands for Pulse Width Modulation. What it does
is generate a user defined pulse sequence on IC1 p i n 3 .
T h e statement appears as PWM 50,50,100. The f i r s t expression
following PWM is the number of clock cycles the pulse will remain
high. A clock cycle is equal to 1.085 microseconds (11.0592 MHz
Xtal). T h e second expression is the number of clock cycles the
pulse will remain low and the third expression is the total number
of cycles the user wishes to output, All expressions in t h e PWM
statement must be valid integers ( i . e . between 0 and 65535
(OFFFFH) inclusive) and the minimum value f o r the first t w o
expressions is 2 0 .
These are only a f e w of the 103 commands, statements, and
operators in BASIC-52. The INTEL MCS BASIC-52 User's Manual
describes them in detail.
Page 14
5.0 Using the 82C55 Parallel Ports
Three parallel input/output ports are provided on t h e BCC52x
Computer/Controller Board with an 8255 ( 8 3 2 5 5 ) peripheral
interface adapter c h i p ( P I A ) . T h e 2 4 I / O bits and ground are
available on a 2 6 p i n Berg connector between the 8 2 5 5 (or 8 2 C 5 5 )
and the RS-232C connector.
JP2 J P 3
BASE OFFSET PORT A PORT 3 PORT C CONTROL REG.
Page 15
T h e example shows a Base Address of OEOOOH and an Offset
Address of 0800H selected g i v i n g a PORT A address of OE800H.
(OEOOOH + 800H = OE800H)
EOOO
Page 16
Control Word Value Port A Port B Port C
Intel Corporation
3065 B o w e r s Avenue
Santa Clara
California 95051
Page 17
6.0 Pinout8 of Connectors and Jumpers
No Connection --------> 1
14 <-------- No Connection
-------- >
Console I n p u t 2
0 15 <-------- No Connection
Console Output ------- >
0
3
0 16 <-------- No Connection
No Connection --------> 4
0
0 17 <-------- No Connection
Pull Up to + 12 Volts-> 5
0
0 18 <-------- No Connect i o n
Pull Up to + 12 Volts-> 6
0
0 20 <-------- No Connection
P u l l U p to + 12 V d c --> 8
0 21 < -------- No Connection
No Connection --------> 9 0
22 <-------- No Connection
No Connection ------- > 10
23 <-------- No connection
No Connection -------> 11
2 4 <-------- No Connection
No Connection -------> 12
0
25 <-------- No Connection
No Connection ------- > 13 - ,/
Page 18
Serial Printer Connector
(2 X 10 Pin Berg Header -
Top View)
Page 19
(End View -
MM28 Bus Pin Configuration
Edge Card Connector)
Component S i d e n Solder S i d e
1 <------- +5 V o l t s
+ 12 Volts ---------> B 9P 2
3
<------- Ground
<------- NO connection
NO Connection ------> D 9P
T i m e r Zero Input ---> E
-
RD -----------------
Timer One Input ----> H
PSEN ---------------> 3
----
1
DMA Acknowledge 14 <------ Program Enable
Address 10 ---------> X 9P
Page 20
8255 Parallel P o r t Connector ( T O P V i e w )
( 2 X 13 P i n Berg Header)
Page 2 1
56
Locking Tab
- 12 Volts > Ground
+ 12 V o l t s 1L + 5 Volts
Page 22
(1
8 2 5 5 Base
x 3 Pin Berg Header -
Address Selection
TOP View)
EOOO
8 2 5 5 O f f s e t Address Selection
(2 X 8 p i n Berg Header - Top View)
Page 2 3
IC12 Base Address Selection
(1 X 3 Pin Berg Header -
Top View)
S e l e c t i o n of Data or
<= Program Areas e n a b l i n g
IC1, I C 3 and IC8.
Page 2 4
U17 RAM/EPROM ENABLE
(1 X 3 P i n Berg Header Top View)-
I -.- -* I
EPROMS can only be used as EPROMS.
RAMS can be used as either RAMS or EPROMS. When used as RAM,
the total contiguous RAM will be 40K i n s t e a d of
32K. When used as EPROM they will store programs
as if they were an EPROM with the MPROGl commands.
Remember to fill the RAM with OFFH or it will look
like a non-blank EPROM. Unless this RAM is a
battery backed-up RAM (smartwatch) the program will
be lost upon power down.
EMULATE 8031
(1 X 2 P i n Berg Header - Top V i e w )
Unj urnpered f o r
80C52 Operation
Page 25
7.0 Interfacing with other Micromint Boards
Page 26
7.2 BCC52x COMPUTER / CONTROLLER
64K BCC52C
Address Space Address Space
OOOOH
lOOOH
2000H
OOOOH
lOOOH
-1FFFH-
2000H
F
1
<
1st RAM
8052 Processor must have 200H
bytes of RAM at 0000H.
C o n t r o l Stack uses from
OFEH down to 60H.
Argument Stack uses from
1FEH down to 12DH.
3000H 3000H
-3FFFH-
4000H 4000H
5000H
6000H
5000H
-5FFFH
6000~-
F 3rd RAM
7000B
8000H
7000H
-7FFFH-
800OH
F
2
4th RAM
9000H
AOOOH
9000H
-9FFFH-
AOOOH
F 2764
EPROM
OR
- 27128
EPROM
BOOOH BOOOH
-BFFFH-
COOOH
DOOOH
EOOOH
8255
FOOOH Parallel Port
Base Address + Offset Address
FFFFH
Port A Address
Port B Address
Port C Address
Mode Register Address
Page 2 7
7.3 BCCO8 SERIAL EXPANSION
64K
Address Space
OOOOH
1000H
2000H
3000H
4000H
5000H
6000H
7000H
8000H
9000H
AOOOH
BOOOH
COOOH BCC08
Address Space
DOOOH DOOOH
DFFFH-
EOOOH EOOOH
EFFFH-
FOOOH FOOOH
FFFFH FFFFH
4
Page 2 8
7.4 BCC13 ANALOG TO DIGXTAL COMRTER
64K
Address Space
OOOOH
lOOOH
BCC13 BCC13
4000H 16 Possible 8 Possible
Base Addresses O f f s e t Addresses
5000H
6000H
7000H
A0 0 OH-
8000H
9000H BOOOH
AOOOH
COOOH
BOOOH
plus -
COOOH
ElDOOOH-
D800H
DOOOH
EOOOH
El
EOOOH
~ 8 0 0 ~ -
FOOOH-
FOOOH
FFFFH
Address space requirements for the BCC13 is held to a low
100H bytes. The BCC13 is addressable f o r any 1 of 128 locations
between 8000H and OFFFFH. Each BCC13 has 8 - 8 bit channels,
providing 1000 conversions/channel/second. Additional BCC13's c a n
be added to expand the available number of channels.
Page 2 9
7.5 BCCl8 DUAL SERIhL/MODEX PORT BOXRD
64K
T/O Spacc
4000H
5000H
6000H
7000H BCC18
8 Possible
Offset Addresses
8000H
9000H
AOOOH
BCC18
BOOOH 2 Possible
Base Addresses
COOOH
DOOOR
EOOOH
or -plus + QE
FOOOH
i FFFm
Page 3 0
7.6 8CC22 TERMITE SMART TERMINAL
64K
Address Space
OOOOH
lOOOH
2000H
3000H
4000H
5000H
6000H
7000H
9000H
AOOOH
3000H
COOOH
DOOOH
EOOOH
FOOOH
FFFFH
Page 3 1
7.7 ADPSOO PRE-RECORDED SPEECH BOARD
64K
Address Space
l-l
OOOOH
BCC2 3
4000H 8 Possible
O f f s e t Addresses
5000H
6000H
7000H
8000H
9000B
AOOOH
BCC2 3
1 Possible
BOOOH Base Addresses
COOOH
DOOOH
EOOOH
FOOOH
FFFFH 1
The address space requirement f o r the ADPSOO is lOOH bytes
The ADP500 is addressable at 1 of 8 locations between OFOOOH and
OF7FFH. ASCII commands written to the ADPSOO through BASIC or
machine language w i l l playback pre-recorded messages.
Page 3 2
64K
Address Space
OOOOH
BCC25
4OOOH 8 Possible
Offset Addresses
5000H
6000H
7000H
8000H
9000H
AOOOH
BCC25
2 Possible
BOOOH Base Addresses
plus -
COOOH
DOOOH
EOOOH
FOOOH
FOOOH
FFFFH
The address space requirement f o r the BCC25 is 200H bytes
(100H for the output port and 100H for the input port). The BCC25
is addressable to 2 of 16 locations between OFOOOH and OFFFFH.
The BCC25 controls either a 4 x 2 0 or 8 x 40 character LCD and h a s
an input port f o r a parallel encoded keyboard.
Page 3 3
7.9 BCC30 ANALOG TO DIGITAL CONVERTER
64K
Address Space
OOOOH
lOOOH
BCCl3 BCC13
4000H 16 P o s s i b l e 8 possible
Base Addresses O f f s e t Addresses
5000H
6000H
7000H
AOOOH
8000H
9000H
AOOOH
COOOH
BOOOH
plus -
DOOOH-
COOOH
DOOOH EOOOH-
EOOOH
FOOOH-
F800H
FOOOH
FFFFH
Address space requirements for the BCC30 is held to a low
100H bytes. The BCC30 is addressable f o r any 1 of 128 locations
between 8000H and OFFFFH. Each BCC30 has 16 -
12 bit channels,
providing 1000 conversions/second with a resolution of 1.2mV.
Additional BCC30ts can be added to expand t h e available number of
channel s .
Page 3 4
7.10 BCC33 f/O HEHORY EXPANSION
64K BCC3 3
Address Space Address Space
OOOOH
1000H
3000H
4000H
-J I <= 8255 P a r a l l e l Port
5000H
9000H
BCC33 Addressed f o r
AOOOH AOOOH 8000H - Quadrant 3
12K/14K/16K RAM or EPROM
BOOOH 1 -BOOOH-
B800H -1
<= Opt. Cassette/Clock EPROM
DOOOH
BCC33 Addressed f o r
EOOOH EOOOH OCOOOH - Quadrant 4
12K/14K/16K RAM or EPROM
FOOOH
F8OOH <= 8255 Parallel Port
FFFFH
The BCC33 can add 3 parallel ports and 14K of RAM/EPROM space
or 16K of RAM EPROM space to the BCC52C system. The user must
examine the address space available to find a non conflicting area
f o r the BCC33. Only the functions enabled on the BCC33 can
potentially cause address conflicts. This feature allows t h e
BCC53 to require only the amount of system address necessary to
access the enabled functions.
Page 3 5
7.11 BCC4OD C BCC4OR ISOLATED BIT 1/0
64K
Address Space
BCC4 0D/R
8 Possible
O f f s e t Addresses
AOOOH
BCC40D/R
2 Possible
BOOOH B a s e Addresses
plus -
COOOH
I DOOOH I or
EOOOH =
1 FFFFH 1
The address space requirements f o r the BCC40D/R is h e l d to a
low 100H bytes. The BCC40D/R is addressable f o r any 1 of 16
locations between OC800H and OFFFFH. Each BCCQOR controls 8
relays and each BCCIOD controls 8 opto-isolated i n d u s t r y s t a n d a r d
1/0 modules.
Page 36
7.12 BCC53 I/O HEHORY EXPANSION
-3FFFH- 2
-3 F F F H -
4000H 4000H 8K RAM 8K EPROM 4000H
Replaces for Jump
RAM of or Vectors -
5000H BCC52C user Code
-SFFFH- -SFFFH-
6000H 6000H 8K RAM 8K EPROM 6000H
7000H
8000H
-7FFFH-
8000H
F
A
Replaces
RAM of
BCC52C
8K RAM
for
or U t i l i t i e s
user Code
8K EPROM
-
L
-7FFFH
8000~-
9000H
AOOOH
-9FFFH-
AOOOH
F Replaces
EPROM
in Z I F
socket
8K RAM
or user Code
or 8K EPROM
-9FFFH
AOOOH-
BOOOH
user Code
-BFFFH- -BFFFH
COOOH COOOH COOOH-
C8 00H
CFOOH
DOOOH
DFFFH DFFFH
EOOOH EOOOH- EOOOH-
FOOOH
E800H
EFOOh :;zzIL~
f or EPROM
8K
64K
Address Space
OOOOH
1000H
2000H
3000H
BCC55 BCC5 5
4000H 8 Possible 8Possible
Base Addresses Offset Addresses
5000H
6000H
7000H
8000H
9000H
AOOOH
BOOOH
COOOH
DOOOH
EOOOH
FOOOH
Page 3 9
COMMANDS cont.
BLAST - is used to program an EPROM with the contents of a
specified block of memory. May select between t h e normal
programing algorithm or the 1NTELigent programming
algorithm.
MOV - used to move blocks of memory from one location to
another.
FILL - fills a block of memory w i t h a specified byte of d a t a .
VERIFY - does a byte for byte comparison of a l l data stored in two
blocks of memory.
ASH - invokes a resident two-pass assembler that p e r m i t s both
forward and backward referenced labels.
TEDIT - invokes a text editor which allows the creation of new t e x t
f i l e s or the e d i t i n g of t e x t files saved to EPROM.
Page 4 0
IC12 Base Address election
(1 X 3 Pin Berg Header Top View) -
Selection of DATA
Areas Enabling IC12
Page 4 1
BCCS2 (standard) PARTS LIST
Designation Description
IC' 8
IC1 6264 RAM 8K x 8
IC2 74LS373 Octal Latch
I C 3 , I C 8 , IC1 6264 RAM 8K x 8 (optional)
IC4, I C 9 74LS245 Octal Transceiver
ICS 8052AH-BASIC ( o p t . 80C52) Microcontroller
IC6 MC1489 RS2 3 2 Rcvr
IC7 MCl488 RS232 Xmtr
IClO 74LS04 (use 74HCT14 w/80C52)Hex Inverter
ICll DM7407 Hex Buffer
IC13,IC14 74LS138 3-to-8 Decoder
IC15 74LS08 Quad 2 Input AND
ICl6 8255 PIA
IC17 2764/27128 EPROM (Optional)
47K (yel-vio-org)
10K (brn-blk-org)
1K (bm-blk-red)
4.7K ( yel-vio-red)
4.7K S I P (9 Element)
CAPACITORS
28 pin socket
20 pin socket
40 pin socket
14 p i n socket
16 pin socket
2 8 pin ZIF socket
Page 4 2
Designation
CAPACITORS
- 1 MFD Ceramic, 25V
10 MFD Electrolytic, 25V
27 PFD Ceramic, 25V
28 pin socket
20 pin socket
40 pin socket
14 pin socket
16 pin socket
28 p i n Z I F socket
Page 4 3
BCC52C PARTS LIST
Designation Description
- 1 MFD C e r a m i c , 25V
10 MFD Electrolytic, 25V
27 PFD Ceramic, 25V
28 pin socket
20 pin socket
40 pin socket
14 pin socket
16 p i n socket
28 pin ZIF socket
Page 4 4
10.0 BCC52x SILKSCREEN
-f
uRESET
I
0
-W
E
*a
I0 N
B
8
uz
0
MMZBBUS J4
z
Page 45
Theschematic shown here (BCCSZC) is identical f o r all three
versions of t h e BCC52x. The b a s i c difference is t h e type of I C s
used on each version ( i . e . NMOS/CMOS)
P I W
I n I a
Page 4 6
T h e schematic shown here (BCC52C) is identical f o r a l l three
versions of the BCC52x. The b a s i c difference is the type of I C s
used on each version ( i . e . NMOS/CMOS)
m u
I W
I r)
I
Page 4 6