Download Print this page

Advertisement

Quick Links

© LJ Technical Systems
This publication is copyright and no part
of it may be adapted or reproduced in
any material form except with the prior
written permission of LJ Technical Systems.
Issue Number: MP600/C
Written by: LJ Technical Publications Dept.
LJ Technical Systems
MAC III 6502 Microcomputer
User Manual
LJ Technical Systems Ltd.
Francis Way
Bowthorpe Industrial Estate
Norwich. NR5 9JA. England
Telephone: (01603) 748001
Fax: (01603) 746340
MP600/C
LJ Technical Systems Inc.
85, Corporate Drive, Holtsville,
11742-2007, New York, USA.
Telephone: (631) 758 1616
Fax: (631) 758 1788

Advertisement

loading
Need help?

Need help?

Do you have a question about the MAC III 6502 and is the answer not in the manual?

Questions and answers

Summary of Contents for LJ MAC III 6502

  • Page 1 Bowthorpe Industrial Estate 11742-2007, New York, USA. any material form except with the prior Norwich. NR5 9JA. England Telephone: (631) 758 1616 written permission of LJ Technical Systems. Telephone: (01603) 748001 Fax: (631) 758 1788 Issue Number: MP600/C Fax: (01603) 746340...
  • Page 3: Table Of Contents

    MAC III 6502 Microcomputer User Manual Contents Chapter Contents Pages Introduction ..................... 1 - 2 Chapter 1 Hardware Description ..............3 - 4 Chapter 2 Digiac 2000 Connections ............5 - 8 Chapter 3 Digiac 3000 Connections ............9 - 12 Chapter 4 Monitor Functions ..............
  • Page 4 MAC III 6502 Microcomputer Contents User Manual LJ Technical Systems...
  • Page 5: Introduction

    User Manual Introduction Introduction The MAC III 6502 is a complete, working microcomputer system based around the Rockwell 6502 microprocessor. A keypad/display unit may be connected to provide simple memory edit/display and debug functions, plus direct entry of short programs written in machine code.
  • Page 6 MAC III 6502 Microcomputer Introduction User Manual LJ Technical Systems...
  • Page 7: Chapter 1 Hardware Description

    MAC III 6502 Microcomputer Hardware Description User Manual Chapter 1 Chapter 1 Hardware Description This chapter provides a hardware description of the main features of the MAC III board. A functional block diagram is shown on the following page. Microprocessor The MAC III system uses a Rockwell 6502 microprocessor operating at a clock frequency of 1 MHz.
  • Page 8 Hardware Description MAC III 6502 Microcomputer Chapter 1 User Manual Functional Block Diagram for the MAC III board LJ Technical Systems...
  • Page 9: Chapter 2 Digiac 2000 Connections

    MAC III 6502 Microcomputer Digiac 2000 Connections User Manual Chapter 2 Chapter 2 Digiac 2000 Connections When used as part of a Digiac 2000 system, the MAC III Microcomputer board is powered from a DT60 Power Supply unit. A DT25 Keypad/display unit may be connected to the MAC III to allow simple display/editing of memory locations and machine code programming, and the optional DT35 Applications Module provides a range of devices that may be controlled by user programs.
  • Page 10 Digiac 2000 Connections MAC III 6502 Microcomputer Chapter 2 User Manual Connecting Power and Keypad/display to the MAC III board Ensure that the power supply is switched OFF. Connect the DT60 Power Supply to the MAC III board as shown below.
  • Page 11 MAC III 6502 Microcomputer Digiac 2000 Connections User Manual Chapter 2 Connecting the Applications Module Ensure that the DT60 Power Supply unit is switched OFF (the power switch is located at the rear of the unit). Connect the DT60 Power Supply to the Applications Module as shown below. Note that the power supply cable with the 5-way connector is used for this purpose.
  • Page 12 Digiac 2000 Connections MAC III 6502 Microcomputer Chapter 2 User Manual Connecting the MAC III board to a student workstation computer If you are using the Merlin Development System software, then you will need to connect the MAC III board to your student workstation computer using the RS232 cable provided with the software.
  • Page 13: Chapter 3 Digiac 3000 Connections

    MAC III 6502 Microcomputer Digiac 3000 Connections User Manual Chapter 3 Chapter 3 Digiac 3000 Connections When used as part of a Digiac 3000 system, the MAC III Microcomputer board is fitted onto a D3000-8.0 Microprocessor Master Board, which is in turn mounted on one of the following Digiac 3000 base unit options: •...
  • Page 14 Digiac 3000 Connections MAC III 6502 Microcomputer Chapter 3 User Manual Connecting Power and Keypad/display to the MAC III board Ensure that the base unit Module Power Supplies switch is in the OFF position. If your base unit is the D3000 Experiment Platform type, you will find this switch on the base unit front panel.
  • Page 15 MAC III 6502 Microcomputer Digiac 3000 Connections User Manual Chapter 3 Applications Module Power Cable Applications MAC III 6502 Module Microcomputer D3000 8.0 Microprocessor Master Board (mounted on D3000 Base Unit) Connecting the MAC III board to a student workstation computer...
  • Page 16 Digiac 3000 Connections MAC III 6502 Microcomputer Chapter 3 User Manual LJ Technical Systems...
  • Page 17: Chapter 4 Monitor Functions

    MAC III 6502 Microcomputer Monitor Functions User Manual Chapter 4 Chapter 4 Monitor Functions The MAC III Microcomputer is supplied complete with a comprehensive monitor program. As well as initializing the system for operation, reading the keypad and driving the display, the monitor program provides a range of functions for the user.
  • Page 18 Monitor Functions MAC III 6502 Microcomputer Chapter 4 User Manual Keypad Mode When you switch on power in Keypad Mode, the MAC III monitor program will display the following message on the keypad/display unit: This message indicates that the MAC III monitor program is ready to receive commands via the keypad.
  • Page 19 MAC III 6502 Microcomputer Monitor Functions User Manual Chapter 4 Register display/edit facility To make it easier to debug programs, a copy of the 6502 registers may be viewed at any time. Press the R key once. The display will show ‘r.’ followed by the register name (in this case ‘PC’...
  • Page 20 Monitor Functions MAC III 6502 Microcomputer Chapter 4 User Manual Switch to Terminal Mode If RS232 Channel A of the MAC III is connected to a PC, the user can re-enter Terminal Mode from Keypad Mode at any time by pressing the RESET button on the MAC III board. The contents of memory and registers are not affected.
  • Page 21 MAC III 6502 Microcomputer Monitor Functions User Manual Chapter 4 To display a specific number of bytes, add a semicolon followed by the number of bytes to be displayed: m 400;20 [Return] In the above example, the number of bytes displayed will be 20 hex (or 32 in decimal).
  • Page 22 Monitor Functions MAC III 6502 Microcomputer Chapter 4 User Manual Register display facility To make it easier to debug programs, a copy of the 6502 registers may be viewed at any time, by entering the command: r [Return] • On the left side of the resulting display, the names of the 6502 registers (A, X, Y, PC, SP, SR) are shown, together with the contents of each register.
  • Page 23 MAC III 6502 Microcomputer Monitor Functions User Manual Chapter 4 Breakpoint facility The ‘b’ command allows up to 8 separate breakpoints to be inserted into a program. When a breakpoint is encountered during program execution, the program is halted and the internal registers of the CPU are displayed.
  • Page 24 Monitor Functions MAC III 6502 Microcomputer Chapter 4 User Manual Disassembly Disassembly involves reading machine code instructions held in memory, and displaying them in assembly language format. The ‘d’ command performs this function. For example, the command: d 400 [Return] will disassemble the first few instructions of the program starting at address 4400 hex.
  • Page 25 MAC III 6502 Microcomputer Monitor Functions User Manual Chapter 4 Reset Options You may encounter certain situations where the MAC III monitor program does not respond in either Keypad mode or Terminal mode. This could happen if, for example: • You execute a program that performs a ‘continuous loop’.
  • Page 26 Monitor Functions MAC III 6502 Microcomputer Chapter 4 User Manual LJ Technical Systems...
  • Page 27: Chapter 5 Memory Map

    MAC III 6502 Microcomputer Memory Map User Manual Chapter 5 Chapter 5 Memory Map Before a program can be entered into a microcomputer system, it is necessary to know which areas of RAM are available. A memory map shows memory usage in a diagrammatic form.
  • Page 28 Memory Map MAC III 6502 Microcomputer Chapter 5 User Manual The MAC III Memory Map shows, for example, that the monitor EPROM has an address range from C000 to FFFF and that the MAC III RAM occupies addresses from 0000 to 1FFF.
  • Page 29: Appendix 1 Applications Module Programs

    MAC III 6502 Microcomputer Applications Module Programs User Manual Appendix 1 Appendix 1 Applications Module Programs Introduction Programs have been written for the MAC III Microcomputer, to demonstrate each area of the DT35 Applications Module. These programs are provided in the MAC III monitor EPROM.
  • Page 30 Applications Module Programs MAC III 6502 Microcomputer Appendix 1 User Manual AnLoG (analog to digital conversion) This program continually reads the potentiometer output via the ADC and displays the hexadecimal value. Set the ADC switch DOWN to connect the potentiometer to the analog to digital converter.
  • Page 31 MAC III 6502 Microcomputer Applications Module Programs User Manual Appendix 1 dISt (distance measurement) Measures the distance of an object above the board using the ultra-sonic transmitter and receiver. The distance in centimeters is calculated by measuring the time delay between the transmission of an ultrasonic pulse and its reflection being received.
  • Page 32 Applications Module Programs MAC III 6502 Microcomputer Appendix 1 User Manual rPS (motor revolutions per second) Allows the motor speed to be controlled by the potentiometer and displays the current speed in revolutions per second. Set the DAC switch to the UP position and the ADC switch DOWN.
  • Page 33 MAC III 6502 Microcomputer Applications Module Programs User Manual Appendix 1 OPtIC ( optical feedback) This program uses the optical sender and receiver and regulates the light level at the receiver to a preset level. It is analogous to the motor closed-loop speed control routine.
  • Page 34 Applications Module Programs MAC III 6502 Microcomputer Appendix 1 User Manual LJ Technical Systems...
  • Page 35 DECLARATION OF CONFORMITY Manufacturer's name LJ Technical Systems Limited and address: Francis Way Bowthorpe Industrial Estate Norwich Norfolk NR5 9JA United Kingdom declares that the product Product name: DT1 and D3000 8.1 Model number: TA350 conforms to the following Product Specifications:...