Professional Documents
Culture Documents
coin
(VMC-8501/8502/8503/8503A)
MICROPROCESSOR TRAINING
CUM'DEVELOPMENTKIT
BASED ON8085
Table of Contents
Table of Contents
Chapter-7 SYSTEM EXPANDABILITY
ON BOARD EXPANSION 72
DETAILS OF CONNECTIONS 73
SlGNALSATCONNECTORCi(BUS) 73
SIGNALS AT CONNECTOR C2(TIMER) 74
SIGNALS AT POWER SUPPLY CONNECTOR 74
SIGNALS AT CONNECTOR C6(8155) 74
SIGNALS AT CONNECTOR C4(8255) 75
SIGNALS AT CONNECTOR C5(RS232C) 75
APPENDIX-A
INTERRUPTS IN 8085 KIT
APPENDIX-B
INSTRUCTION SET OF 8085
APPENDIX-C
assembler & DISASSEMBLER OF 8085 34
APPENDIX-D
SYNTAX OF8085 ASSEMBLER & DISASSEMBLER gg
MAINTENANCETIPSFORVMC-850X 90
REFERENCES IZIZZ".90
block DIAGRAM FOR VMC-8501
block DIAGRAM FOR VMC-8502 ."".1.".^" 92
***
Table ofContents
VMC-850X User's Manual
Chapter-1
SYSTEM INTRODUCTION
GENERAL DESCRIPTION
The VMC-850X communicates with the outside world through a key board
having 28 keys and seven segment hexadecimal display.The kit also hasthe
capability ofinteracting with CRT Terminal and IBM PC compatible computer
system through the serial interface provided on the board.
VMC-850X provides8K/32K bytes of RAM and 8K bytes of EPROM.The total
on board memory can be very easily expanded to64K bytesin an appropriate
combination of RAM and ROM.The monitor is incorporated from 0000-1FFF
and the necessary 8K bytes of RAM has an address of 2000-3FFF.
The Input/Outputstructure of VMC-8501 provides24 programmable I/O lines
using 8255. It has got 16 bit programmable Timer/Counterfor generating any
type ofcounting etc.The Input/Outputstructure of VMC-8502issame as VMC-
8501 and it has additional feature of 22 I/O lines and a 14 bit Timer/Counter
facility using 8155.
System Introduction
VMC-850X User's Manual
System Introductiorf
VMC-850X User's Manual
System Introduction
VMC-850X User's Manual
ll^
Chapter-2
HARDWARE DESCRIPTION
GENERAL
8279,8255&8253and VMC>8502
are8279,8255,8253&8155.Thefunctional role otallthesechipsisgivenbelow:
8279(Keyboard & Display Gnntrollpr)
ft253(Prograrntnable InternalTimer)
This chip is a programmable interval Timer/Counter and can be used for the
oeneration of accurate time delays under software control. Various other
functions that can be implemented with this chip are programm^Ie rate
nenerator Even Counter,Binary rate Multiplier,RealTime Clocketc.Thischip
has oot three in dependent 16 bit counters each having a count rate of up to
2KHz.The first Timer/Counter (i.e. Counter 0)is being used for Single Step
ooeration However,itsconnectionarealsobroughtatconnectorspaceC4.For
sinqle step operation CLKO signal of Counter0is getting aclockfrequency of
1 535 MHz The counter 1 is used to generate clock for 8251. Counter 1 &
Counter 2 are free for the user. Clock for the CLK1, CLK2 is to be given
externally.
8251iUSARIl ysed as a
Hardware
VMC-850X User's Manual
Chapter-3
rnMMAND DESCRIPTION
KFYBQARD nPfiCRIPTION
VMC-850Xhas28keysandsix-sevens2mentd^spl^^^^^
below:
SHIFT
DEL
INS
DATA DATA
REL
EXMEM
MEMC
string
NEXT
PRE
|rpYP^^RD DETAILS
. Reset the system.
.Hardwarelnterruptviakeyboard,RST75.
VCT INT
.Provides a second level command to all keys.
.To execute the program.
ExamlneMemoryiallowsusertoexamineany
the contents of different regis
EXMEM location and modify any -
.Prevlousisusedasanlntermediateterm
^1 \
7 Command Description
VMC-850X User's Manual
TABLE-1
0 0 0000 0
1 1 0001 1
.2 2 0010 D
C
3 3 0011
4 4 3
0100
5 5 0101
H
6 6 0110 S
7 7 0111 6
1
8 8 1000 1
9 9 1001 8
A 10 1010 S
B 11 1011 8
0 12 1100 b
#
C
D 13 1101
d
E 14 1110 c
c
F 15 1111 F
LISTQFCQMMANDS
1. RESET
2. EXAMINE/MODIFYREGISTER
3. EXAMINE/MODIFYMEMORY
Command Description
VMC-850X User's Manual
4. GO
5. SINGLEINSTRUCTION
6. BLOCK MOVE
7. DELETE
8. INSERT
9. RELOCATE
10. FILL
11. STRING
12. MEMORY COMPARE
13. INSERTDATA
14. DELETE DATA
nOMMAND DESCRIPTION
RESET
This key initializes the VMC-850X Kit and displays UP85'on the display A
on the left mostend of display indicates that the system is expecting a valid
command.
pyAMINE/MODIFY REGISTER(EXREQ)
This command is used to examine/modify any Internal register of the CPU If
one wants to examine the contents of all the registers, one can start from'a-
Reg.and examine all the registers by pressing next key Wherea<? if cnml
specificrdgistersistobeexamined,thenthekeyforthatregistercanbe6ntered
directly. The contents of any register can be changed.
Exercise
Command Description
VMO850X User's Manual
SHIFT REG
2 3
E 2
NEXT
0 2
6 A
NEXT
OnpresslnoSHIFTajdREGk^^^^
add'E.d/ap/ayad,or C.^0RapMa.oroloo.aama
^Mrydataar^tokentorexompleonly.
EXAMINgMOBlFY^^ . ,
^
This command is used to e^mrn contents of any memory location and
modify the contents of the RAMa
1 Command Description
be displayed in the data field. Same way if one wants to examine the content
of previouslocation just press PRE key and the address in the address field will
be decremented by one and its contents will be displayed in the data field.
EMEM
1 •
2 0 0 0
NEXT 2 0 0 0 1 A
2 0 0 0 A F
2 0 0 1 0 2
0Q 2 0 0 1 C 3
0 2 0 0 2 5 0
2 0 0 2 0 0
12 Command Description
1
VMC-850X User's Manual
NEXT 2 0 0 3
2 0 0 3
N0a 2 0 0 4
RESET - u P
GO
This command is used to execute the program in full clock speed.On pressing
this key,the program counter contents are displayed in the address field with
the data in the data field. A dot in the address field Indicates that the address
can be changed, if so desired. Enter the starting address of the program.On
entering this address,the data field gets blanked out. Press Terminate(.)key.
The CPU willstart executing the program and E will be displayed In the address
field.
Exercise
GO
Command Description 13
VMC-850X User's Manual VMC-850X User's Manual
SINGLEINSTRUCTIONS(Sn The first command is executed i.e. A Register has been loaded wi _
examine the content of A Register. For this we will have to ter
This command is used to execute the program instruction by instruction. On command here.
pressing SI,the program counter content is displayed on the address field and
its data in the datafield. Ifone wantsto modify the address,one can do that.After
entering the address, press NEXT, the contents of the entered address Is
displayed.On pressing NEXT,one instruction will be executed and the address
of the next instruction will be displayed with its data in the data field. Each time SHIFT REG
Address Data Mnemonic Comments To run the program further press SHIFT and St.
2000 3E 22 MVI A,22 Move 22 in a Register
2002 47 MOV A,B Move the Contents of B (!ii^ SHIFT
NEXT
This command allows the user >0 ,ws key a dot Is dismayed
location to another ^ _ startim address of the blocks be m
at the end of address field. Enter t^ the end address ot the
14
and press NEXT. Again a dot is displayed, no
Descriptiion Command Description
VMC-850X User's Manual
VMC-850X User's Manual
Exercise
block and press NEXT. Again a dot is displayed. Now enter the destination
address and press Terminate (.) key. A is displayed in the display. Take thethe
program for flashingisdisplayedforO.5
'SUPERB' in example 9 of Chapter-6. In this
program word'SUPERB* Sec.,thedisplay isclearedfor
Exercise
0.5Sec.and the logic is repeated.In this program,iftheclear routine isdeleted,
the word'SUPERB'will remain permanently displayed.
BlockMove theprogram lyingfrom2000to2003(intheearlierexercise)to2100.
Enterthis program from 2000to2029using Examine/Modify memorycommand
and delete the data from 201E to 2026.
B.M.
•
SHIFT DEL 7 F D F
•
Verlfythattheprogramhasmovedto2100usingexamlnememorycommand 2 0 0 0 2 0 0 0
DELETE(DEU
NEXT 5 F B F
Thiscommandallowstheusertodeleteoneormoreinstr.,oti« x t
NEXT
1) Starting address of the user program. •
SHIFT INS
Verify that the program from 201E to 2026 has been NEXT
1 E
0 1 E 0
1) Starting address of the program.
2) End address of the program.
3) Address from where the bytes are to be entered NEXT
Exercise
1J
Since
CM 9 bytes have to be entered.
0 0 NEXT NEXT
1 1 NEXT
address
Enter thewhereyou
bytes youwish
wantto toenterthebyteswiSJ''® ^i" disolav h,.
insert using nSt k^^'1?^^^^®'"fhedatafilH NEXT
entered, a. B c NEXT
- Will be displayed c D NEXT
new command.
awill be displayed.
Descrinth
iption Command Description 19
VMC-850X User's Manual VMC-850X User's Manual
Verify thatthe bytes have been inserted and execute the program from 2000to NEXT
This command allows the user to relocate program written for some memory
area,to some other memory area.The information required to be entered are:
1. Starting address ofthe program.
2. End address ofthe program. Now verify that2129 has got21. Execute the program from 2100 and notethat
3. Destination address where the program hasto be relocated. the'SUPERB will be flashing on the display.
The relocate command can be best understood with the earlier example of FILL
flashing'SUPERB.This program is writtenfor2000 memory area.Sothatjump
instruction for looping at the end is with reference to 2000 only Suppose you Thiscommand allowsthe userto fill a memory area(RAM)with aconstant.The
wantthis program to be executablefor2100area,then this can not be done by following information is required to be entered.
Block Move because when we Block Movethe programfrom 2000-2029to2100,
the contents of2127onwards will be 2127- C3,2128-06,2129-20.Where as 1) Starting address of the memory area from where the data should be
in order to execute this program from 2100,the content of 2129should be 21. stored.
This can be done using Relocate command. 2) End address of the memory area till were the data should be stored.
3) The constant with which the data should be done l.e. 22.
On pressing SHIFTand RELocate,adotisdisplayed in the addressfield Enter
thestartingaddressoftheprogrami.e.2000andpressNE^AS
again. Now erter the end address of the program i.e.
exercise
A9ainadot,sdisplayed.NowertGrthedestinationaddressi.eilOol^pr«^ Fill the RAM area from 2000 to 2050 with 22.
Press SHIFT and FILL.A dot will be displayed at the end ofthe address field.
Enterthe starting address and press NEXT.Again adotwill be displayed.Now
SHIFT REL
enterthe end address and press NEXT.The presentcontents of end address
will be displayed. Enterthe content and press (.).
2 0
c
NEXT
SHIFT FILL
addresses at which CALL OUTPUT instruction is lying.
2 0
Press shift and string key. Some address is displayed. Enter the starting
address of your program and press NEXT.A dot is displayed atthe end ofthe
addressfield. Now entertheend address ofthe program and press NEXT.Ado
NEXT
Is displayed again. Enter the address where the first byte ofthe string lies ahd
press NEXT.Again a dotis displayed.Now enterthe addressesatwhich the as
2 0 byte ofthe string has been stored and press Terminate(.)key.Thesystem w
display the first address(within the specified program)at which the string le •
Press NEXTto see the nextaddress.This way using NEXT key youcans
NEXT
the address at which the string of Data is lying. A is display^'
addresses(at which the string or Data is lying) have been display
05 is just some random data which was lying at 2000. Press'2' key twice and
press Terminate(.) key. Note: Ifyou don/tknow thefirstandlastaddresses where be
the string can be stored in another area and these adares
given. In this example the string is firststored at2100.
0
SHIFT STTIQ 2 0 0
3CC
Verify that 22 is filled from 2000 to 2050. .\_D| some random address is displayed:
STRING
2!
Comma„<(Oe«„p„„„ 5
Description
VMC-850X User's Manual VMC-850X User's Manual
field. Enter the starting address of the first block and press NEXT.Again a dot
2 0 0 B
is displayed. Enter the end address of the first block and press NEXT.A dot is
displayed. Now enter the starting address of the second block and press
Terminate {.)key.
first string address is displayed.
NEXT 2 0 1 5 c— ^
SHIFT MEMO
•
NEXT -
2 0 0 0 2 0 0 0
in the above ®x3f"P'e notethetwoaddressatwhich'Call Outpuf islying.These
address will be and 2015.Verify by Examine memory command that CD NEXT
DO 05 IS lying at 200B and 2015 onwards. •
2
MEMORYCOMPAREnwiFMri 2 0 0 9 0 0
NEXT
•
Press SHIFT and Memory Compare.A dot is displayed This command allows the user to insert one or more instructions in the user's
at the end of address
Command Description 25
Command Description
VMC-850X User's Manual VMC-850X User's Manual
' f- c w
program without automatic modification ofthe memory referenced instructions. 2 0 1 E 2 0 1 E
This following information is required to be entered. c
5) Data.
Since 9 bytes have to be entered,
Exercise f
E
Insert the bytes again, which are deleted in the above exercise of flashing NEXT
2 0 1
Now enter the end address of the program and press NEXT
at the end of the address field. Enter thradH^'^l^S.^ displayed
entered and press NEXT. A dor"s dispfaye^Sain^ nSw ent® 1 1 NEXT 0 0 NEXT NEXT
INS
DATA
disturbed.So we directly press NEXT. ^ aaaress are not Verify thatthe bytes have display. It is
NEXT
difference from INSERT(INS).
Our last address is also 2020,so we just press NEXT
DELETE(DELI command the
This command is exactly
relocation is not done after dele i 9
S>^
Descrii
iption
Command Description
VMC-850X User's Manual
VMC-850X User's Manual
NEXT
^
r *
E 2 0 1 E
4) Address of the location till where the bytes are to be deleted. 2 0 1
Exercise NEXT
•
0 2 6 2 0 2 6
2
programtheword'SUPERB'isdisplavedforn ^
0.5Sec.and thelogicis repeated In this proaram ifth f
.Haword^UPERB^willreLnpe^XTpC -
Verify that the program from 201E to 2026 has been deleted. Execute the
program.See that the word'SUPERB'will not be displayed permanently.It is
due to the modification has not done at the corresponding routine.This is the
aUPERBTSI.gSfdTttedM^^^^^ ^®'®t® the clear routine do the
following:
differencefromDELETE(DEL.)
29
Command Description Command Description
VMC-850X User's Manual ^ VMC-850X User's Manual
Chapter-4 ,^EDURE
HROCEDliRF OF
OF INTERFACIN_G
INTFRFACING BbI
hyper TERMINAL FACILITY OF WIN 95/98MiM^
ON BOARD INTERFAr.F
1. SWITCH ON PC AS WELL AS KIT.CONNECT RS-232 CAJLE
(OPTIONAU CRT CONNECTOR (C5)OF KIT TO PC COM PORT
2. IN CASE OF WITHOUT BUILT IN
ONBOARD RS-232-CINTERFAnF
properly +5.+i2,-i2 andgnd
To enhance the capabilities of VMC-850X, onboard interfaces for RS-232C for inbuilt power supply no NEED TO CONNECT
have been
CRT provided.
terminal canThe
beCRT terminal provides
connected RS-232-C
to VMG-850X interface
throuqh the and so a
standard SUPPLIES. aPPLICATIO'^
interfaces. The RS-232-C interface is provided through SID & SOD linea of enable hyper TERMINAL FROM
8085 microprocessor. (START/PROGRAMS/ACCESSORIES/COMM
D
SI. Interface
TERMINAL) d
Jumper Setting
No. at Connector 05 at J2 CLICK ON HYPERTRM ICON AND GIVE ANY NAM
PARAMETERS)AND CLICK OK.
1. RS-232-Cwith
SID/SOD lines CHOOSE DIRECT TO C0M1 OR COM2 AND CLI n
)r
PaI^ BITS
rgr TERMINAL INTERFACF none -11
1) Connect CRT cable to the terminal.
2) Switch ON the power supply. Press 8 ^^ONTROL
00 ON MENU BAR NONE
SELECT FILE—PprOPERTIF^
reset key and then
key of the Kit. press SCTI irx
SETUP .
^^011 SENDING: "lineHlay jay ^
^qRCF incoming-."
The kit is now ready to interact with the terminal at tha ha.
the terminal. set earlier CHARACTER D^LA
''^BCII RECEVING: enable
^PTER pressing
Board Interface '
Interface
VMC-850X User's Manual VMC-850X User's Manual
The NEXT command In the key board mode can be executed by space(SP),
5. after that press SHIFT+$ key of PC KEYBOARD THE AD acomma(,)and acarriage return(CR).Similarly$sign Is equlvalentto a EXEC
DRESS AND DATA FIELD WILL APPEAR ON HYPER TERMINAL SCREEN. key0In the keyboard mode.Thecodeforeach key as It Is pressed on theSIOD
GO IN MENU BAR SELECT TRANSFER—CAPATURE TEXT Isjustechoed back to the SIOD before monitortakes any action.CR Is echoed
— STOP—FILE—SAVE. as CR and line feed(LF).Semicolon (;)Is a delimiter character used in ENTER
command only. A space or a carriage return can also be used as a delimiter.
above"^^ given path as The SIOD works on hexadecimal nos. all the Information Is to be entered In
nOWNLOADING PROCEDURP pg to hexadecimalform.TheSIOD will promptaonthe outputting deviceforany error
condition. The error conditions are similar to the key board error conditions. A
betvSand for communication carriage return, a line feed and the prompt character Is given out and a new
2.
command can be entered now.
S SELECT TRANSFER-
CLIGK ON XXX.TXT FILE AND OPEN IT.
AFTER SOME SECOND " " WILL APPpad aoaik. I i^TOFCOMMANDS
ENTER KEY OF PC KEYBOARD, IT INDIES 1. L List a memory block
SUCCESSFULLY LOAD IN KIT MEMCDRY XXX.TXT FILE IS 2. M Examine/Modify Memory
3. E Enter a memory block
4. R Examine/Modify Register
5. S Single Step
6. G Go
7. B Block Move
8. I. Insert
9. D Delete
10. N Insert Data
33
Serial I/O Device Commands
On Board Interface
VMC-SSOX User's Manual
11. O Delete Data
12. F Fill
13.
14.
H
J
Relocate
Memory Compare
[ User's Manual
15. K String Address. (Data)
The following pages explain these commands in detail. 1.
COMMAND DESCRIPTION
"■"ypeM. followed by the hexador- .
2.
LISTA MEMORY BLOCK o°n,e„,s o, the |oc„-
$
3.
Format:
Register Identifier Register
E address data, data $
E Register E
1. Type E followed by the starting address of the memory block to be F Flag byte
entered,followed by a colon (:). I Interrupt Mask
2. Each byte followed by a comma as it is entered from the SIOD is H Register H
deposited in the consecutive location in the memory. L Register L
S Stack Point MSB & LSB
3.
a frethSl^J"^ Proceeding parameter is taken as P Program Counter MSB & LSB
location stanlng from
4. A $terminates the command.
SINGLEINSTRUCTIONS
Example
This command allows to execute the program one instruction at a time.
E 2000:3E, 11,11,08,FC$.
Format
The memory contents asstored are shown below:
S (Starting Address), $
2000 3E,11,11,08, FC.
1 Pressing ofSkey will listthe PCand first byte ofthe program.In case one
EXAMINE/MODIFY RFftiQTFR want to modify it, one has to enter the new address and then press
comma.The new address will be entered and pressing ofcomma again
Display & modification of CPU '«flister
reai<stor IS
ic accomplished
m will execute on instruction. The new PC and the next instruction will be
via R command. listed.In this way onecan executethe program in single instruction mode.
O
R (Register identifier $
1 Example
.Thecontents may
contents,just enter a comma.Thp rn modify the The following program is to be executed in single instruction mode:
printed.Theregisteridentifiersforvariou<frPM
I register
^registers are will be
given below: Address Go Code Instruction
ss
I/O Device Commands
^n'al i/Q Commands