LIAQUAT UNIVERSITY OF MEDICAL HEALTH & SCIENCES JAMSHORO
INSTITUTE OF BIO MEDICAL TECHNOLOGY
BS IN BIO-MEDICAL Engineering (5th Term 3rd Year) _________ Batch
LAB. EXPERIMENT # 05
Name: __________________________________ Roll No. _______________ Score: _____________ Signature of Teacher: __________________ Date:___________
FAMILIARIZATION TO THE MICAMASTER MAT-980 MICROPROCESSOR APPLICATIONS TRAINER AND ITS FEATURES
PERAFORMANCE OBJECTIVE:
Upon successful completion of this experiment, the student will be able to: Familiar with the interconnectivity of microprocessor and other different components of MAT-980. Use of different function keys of keypad of MAT-980.
The power supply requirement of the MAT980 with no connected equipment is +5V0.25V D.C at 400mA Before switch on your trainer please get it checked by the your teacher.
DISCUSSION:
The MAT980 is a microprocessor trainer system based on a Z80 processor. It is of open board construction. It is intended for teaching: Machine code programming Control of external devices Test and fault diagnosis, using the facility provided for introducing artificial hardware faults.
FEATURES OF MICMASTER MAT-980 MICROPROCESSOR APPLICATION TRAINER:
Z80 Microprocessor, 8-bit data bus, 16-bit address bus. Monitor ROM 8K, expandable to 16k. 8K RAM expandable to 24k on board. Bus expansion socket. Two RS232 V24 serial codes: Normal RS232 e.g for printer Cassette port reconfigurable 4MHz clock. Keypad with 20 hexadecimal and function keys Protection by 1A fuse and reverse-voltage diode. Power requirement: external +5V 1A. Feedback Mica connecter parallel I/O port Address & decoding circuit.
FACILITIES PROVIDED BY MAT-980:
Single stepping through the execution of a program for debugging purposes. Two break points can be set at which execution ceases and monitor regains control. Saving and loading programs to and from a cassette recorder. Communication with external devices through a serial port. Communication with external devices through a parallel port. This facility enables the user to extend the use of trainer to include development of programs using Z80 Assembly or other languages. Provision is made for simple creation by users of artificial hardware faults, for training in fault diagnosis.
KEYPAD OF MAT-980:
The keypad of trainer provides a function that used by the users for entering a program and performs different operation through it. The following figure shows keypad layout.
KEY PAD LAYOUT
F E D C MOVE FILL REG MEM HALT 8 9 A B + BRKP SST GO 4 5 6 7 - LIST SAVE VRFY LOAD 0 1 2 3 VDU STx SRx ENTER
USERS FUNCTIONS OF MAT980:
The keypad consists on twenty keys. Most of the keys are marked with dual operations, hexadecimal numbers and Functions. Sixteen of them are marked 0 F and some of the keys are marked with only one function. The keypad has following key functions. KEYS FUNCTIONS 0 F These hex keys are for entering hexadecimal numbers.
PROCEDURE:
1. Connect MAT980 trainer to feedback power supply 01-100 with +5V. 2. Use HALT key to set the trainer in programming mode. 3. Press MOVE key, set starting and ending address of the block to be moved and starting address where block to moved. 4. Use HALT key to exit from MOVE function. 5. Press FILL key, set starting and ending address of the memory block which is filled by the same data and set data for the memory block. 6. Use HALT key to exit from FILL function. 7. Press REG key, view all registers of MAT980 microprocessor. 8. Use HALT key to exit from REG function. ENTER This key is used to terminate an entry from the keypad and also used for saving the entry. HALT This key is used to exit from any routine called from the monitor. It causes a jump back to the monitors main program. - & + These keys are usually used to step backwards and forwards through memory locations or registers. MOVE This allows a block of data to be moved, or copied, from one area of memory to another. FILL This allows each memory location in specified block of memory to be filled with a hex numbers. REG This allows the Z-80 registers to be displayed and modified. MEM This allows memory contents to be displayed and modified. It can be thus used for entering programs. BRKP This allows two separate break points to be set (or cleared) in a users program SST This allows the user to single-step through his program, i.e to execute one instruction at a time. Between each instruction and the next, the user can display or modify both memory and resistor contents. GO This allows the execution of a user-written program, or of a monitor subroutine directly.. LIST This allows a specified memory block to be dumped to a serial printer. SAVE This allows a user to save the contents of a specified memory block to cassette. VRFY This, like Load, reads data from the cassette, but the data which is read is simply compared with the contents of memory. LOAD This allows the user to load a memory block back from cassette. VDU This function allows the user to choose between 9600 or 1200 baud on serial file transfers. STx This allows a specified memory block to be sent. In INTEL hexadecimal file format, to an external device, such as a computer, via the serial port. SRx This allows a file, the INTEL hexadecimal file format, to be received from an external device via the serial port and placed into memory. 9. Press MEM key, set starting address of program and press ENTER key to view the contents/data at this memory location. 10. Use HALT key to exit from MEM function.
TEST RESULTS:
(i) Use MOVE function key and analyze the result by providing following addresses to MOVE format.
4800 (start address) 4809 (end address) 4820 (start address of new memory location)
(ii) Fill the following table by executing the FILL function key for the following fill format.
4200 (start address ) 420A (end address) CD (data)
1. Clean your equipment/material and workbenches before you leave. 2. Return all equipment and material to their proper storage area. 3. Submit your answer to questions, together with your data, calculation and results before the next laboratory.