microtan-r tanex-plus manual - · pdf filemicrotan-r tanex-plus manual version 1 : ... u11...

27
www.microtan.UKPC.net Microtan-R Tanex-Plus Manual Version 1 : 21 Sep 16 Page 1

Upload: voquynh

Post on 12-Mar-2018

230 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Microtan-R Tanex-Plus Manual -  · PDF fileMicrotan-R Tanex-Plus Manual Version 1 : ... U11 74LS139 U12 ... In this document,

www.microtan.UKPC.net

Microtan-RTanex-Plus

Manual

Version 1 : 21 Sep 16 Page 1

Page 2: Microtan-R Tanex-Plus Manual -  · PDF fileMicrotan-R Tanex-Plus Manual Version 1 : ... U11 74LS139 U12 ... In this document,

www.microtan.UKPC.net

ContentsSpecification.........................................................................................................................................3Construction.........................................................................................................................................4

PCB Layout......................................................................................................................................4Component List................................................................................................................................4Assembly.........................................................................................................................................5

Installation............................................................................................................................................7Cassette Tape Interface.........................................................................................................................8

Cable assembly................................................................................................................................8Recording Jack Plug connections................................................................................................8Playback Jack Plug connections..................................................................................................85 pin DIN Plug connections........................................................................................................8

Installation.......................................................................................................................................9Initial Set-up (Cassette Tape Recorder)...........................................................................................9Initial Set-up (PC / Laptop)...........................................................................................................10

Memory Management.........................................................................................................................11EPROM Paged Memory................................................................................................................12Random Access Memory...............................................................................................................14X-Bug.............................................................................................................................................15

Translator..................................................................................................................................15Interpreter..................................................................................................................................15Cassette Tape File Handling......................................................................................................16Dumping to Tape.......................................................................................................................16Examining a File.......................................................................................................................16Fetching a File...........................................................................................................................16

Parallel Port Interface.........................................................................................................................17Parallel Printer Interface................................................................................................................18Serial Port Interface.......................................................................................................................20

Serial Printer Interface........................................................................................................................21Serial PC Interface..............................................................................................................................23

Laptop/PC Set-UP..........................................................................................................................23Microtan Set-up.............................................................................................................................23

TTL-TTL Serial Interface...................................................................................................................24Appendix A - Hyper-terminal set up...................................................................................................25

Hyper-terminal Initial settings.......................................................................................................25MT65 Initialisation Process...........................................................................................................25

MT65 Transmit Test Process.....................................................................................................25MT65 Receive Test Process......................................................................................................26

Version 1 : 21 Sep 16 Page 2

Page 3: Microtan-R Tanex-Plus Manual -  · PDF fileMicrotan-R Tanex-Plus Manual Version 1 : ... U11 74LS139 U12 ... In this document,

www.microtan.UKPC.net

Specification

• A single AS6C1008 (128kx8) SRAM chip providing 64K memory ($400-$EFFF

addressable). • 2 x 27512 EPROMs providing 8 pages of 12K EPROM to overlay $C000-$EFFF RAM

memory space. • A single (user-selectable) IO memory location provided for selecting EPROM Memory Page

to overlay $C000-$EFFF memory space or to leave this space as RAM. Default is EPROM Memory Page 0. LED indication of selected memory bank.

• 2 x 16V8 GAL chips used for SRAM addressing and EPROM port addressing/bank

selection. • 2 x 6522 VIAs providing 4 parallel ports (four 2x7 IDC Header connectors)

• UART 6551 providing TTL level RS232 serial IO (14 pin DIL connector). Full 'true' RS232

level serial IO also provided by MAX238 chip (2x5 IDC Header connector) - selection by jumper . (Note: 20mA Loop circuitry not retained)

• Cassette Tape interface using dual LM358 but using Oric Tape interface design. 5 way 180

deg DIN socket connector (same as on Micron Front Panel). • Data buffering using 2 x 74LS244 chips.

• Accepts TANBUS DMAREQ signal and drives TANBUS DMAGNT and ABE signal lines.

Generates TANBUS ROME, RAME and IOE signals.

Version 1 : 21 Sep 16 Page 3

Page 4: Microtan-R Tanex-Plus Manual -  · PDF fileMicrotan-R Tanex-Plus Manual Version 1 : ... U11 74LS139 U12 ... In this document,

www.microtan.UKPC.net

Construction

PCB Layout

Component ListC1 2.2nF C2-4 100nF (3 off) C5-14 1uF 35v (10 off) C15 220pF C16-36 100nF (21 off) C37 33uF 25v Tantulum D1-9 3mm LED (9 off) D10-12 1N4148 (3 off) EC1 DIN41612 2x32 way (a+b) R/A Plug JP1-3 2 way JUMPER (3 off) P1-4 2x7 pin IDC PCB Header (4 off) P5 5 pin 180_DIN PCB Socket P6 14 pin DIL Socket P7 2x5 pin IDC PCB Header Q1 BC547 R1-2 4k7 (2 off) R3 10k R4 1k R5 100k R6-8 1k (3 off) R9-10 22k (2 off) R11 1k R12 10k R13 4k7

Version 1 : 21 Sep 16 Page 4

Page 5: Microtan-R Tanex-Plus Manual -  · PDF fileMicrotan-R Tanex-Plus Manual Version 1 : ... U11 74LS139 U12 ... In this document,

www.microtan.UKPC.net

R14 1k R15 68 RR1 4k7 RR2 470 SW1 DIPS_08 SW2 DIPS_02 TH1-2 PTC FUSE (Polyswitch) 1.1A 30v (2 off) U1 74LS04 U2 74LS138 U3 GAL16V8 U4 74LS682N U5 74LS32 U6 74LS138 U7 GAL16V8 U8 74LS138 U9 74LS175 U10 74LS21 U11 74LS139 U12 74LS30 U13 TMS27C512 U14 TMS27C512 (2nd EPROM option) U15 AS6C1008 U16 74LS00 U17 74LS74 U18 LM358 U19 R6522 U20 R6522 (2nd VIA option) U21 R6551 (Serial option) U22 74LS244 U23 74LS244 U24 2716 U25 74LS157 (Serial option) U26 74HCT4053 (Serial option) U27-28 MAX232 (Serial option) X1 1.8432Mhz Crystal (Serial option)

IC Sockets 8 way 1 off 14 way 7 (inc P6 above) 16 way 9 off 20 way 5 off 24 way 1 off 28 way 3 off 32 way 1 off 40 way 2 off

Assembly

Use the PCB Layout and Components List above to identify the location of the components on the PCB. With the exception of the resistors, ceramic capacitors, crystal, jumpers and poly-switches, all other components need to be orientated correctly. The longer leads on the electrolytic capacitors and LEDs are the positive leads. Square pads on the PCB denote the location of the components' Pin 1 or positive lead as appropriate.Note that C36 lies within the outline of IC socket U21 and so its leads need to be long enough

Version 1 : 21 Sep 16 Page 5

Page 6: Microtan-R Tanex-Plus Manual -  · PDF fileMicrotan-R Tanex-Plus Manual Version 1 : ... U11 74LS139 U12 ... In this document,

www.microtan.UKPC.net

above the PCB to allow the capacitor to be bent over flat against the PCB surface.Some areas of the PCB are densely populated. If using electrolytic capacitors around the sockets for ICs U27 and U28, position all these items in place before soldering.After all components have been soldered, check underside carefully for bridged tracks and IC pins / component leads not soldered.

Version 1 : 21 Sep 16 Page 6

Page 7: Microtan-R Tanex-Plus Manual -  · PDF fileMicrotan-R Tanex-Plus Manual Version 1 : ... U11 74LS139 U12 ... In this document,

www.microtan.UKPC.net

Installation1. Remove MT65-R CPU from system rack

2. Open Links RAM, ROM and I/O on the MT65-R CPU board

3. Re-insert MT55-R CPU into the system rack in the CPU slot

4. On the Tanex-Plus board, ensure Links LK1 and LK3 are open.

5. On the Tanex-Plus board, select the Memory Page Register address using the 10 DIP switches. The addressable range is from $BC00 to $BFFF, ie the whole addressable IO space. Switches in the ON position represent a '0'. Therefore if all the switches are ON, then the Memory Page Register address is $BC00. Avoid selecting the following reserved addresses:$BC00 : BASIC program writes to this location when determining upper user memory limit$BFF0 - $BFFF : MT65 CPU IO$BFC0 - $BFCF : Tanex VIA(1) IO$BFD0 - $BFD3 : Tanex UART IO$BFE0 - $BFEF : Tanex VIA(2) IOIn this document, the Memory Page Register setting of $BE00 is assumed.

6. Insert Tanex-Plus into the system rack in the Tanex slot

7. Switch on power and check +5V, +12v & -12V supply rails.

Version 1 : 21 Sep 16 Page 7

Page 8: Microtan-R Tanex-Plus Manual -  · PDF fileMicrotan-R Tanex-Plus Manual Version 1 : ... U11 74LS139 U12 ... In this document,

www.microtan.UKPC.net

Cassette Tape Interface

Cable assemblyA cable is required to connect the Tanex-Plus to a recording device (eg Cassette Tape recorder / PC). The following materials are required:Approx 1m length of twin screened (stereo) audio cable1 x 5 pin 180 deg DIN plug2 x 3.5mm stereo jack plugs (or alternatives depending on the recording device used)

The connections for the 5 pin socket on the front edge of the Tanex-Plus PCB are as shown in the Figure 1 below:

Fig. 1 – Tanex-Plus Cassette Tape Interface Pin Out (Front view)

Recording Jack Plug connections

Connect the Right channel signal wire (usually red) to both the tip and ring connectors of the Recording Jack Plug. Connect the Right channel screen to the Screen connector of the Jack Plug.

Playback Jack Plug connections

Connect the Left channel signal wire to both the tip and ring connectors of the Playback Jack Plug. Connect the Left channel screen to the Screen connector of the Jack Plug.

5 pin DIN Plug connections

Connect the Right channel signal wire to Pin 5. Connect the Left channel signal wire to Pin 4.Connect both Left and Right screen wires to Pin 2.

Version 1 : 21 Sep 16 Page 8

1 not connected2 earth3 not connected4 playback5 recording

Page 9: Microtan-R Tanex-Plus Manual -  · PDF fileMicrotan-R Tanex-Plus Manual Version 1 : ... U11 74LS139 U12 ... In this document,

www.microtan.UKPC.net

InstallationPlug the 5 pin DIN plug into the Tanex-Plus Cassette Tape Interface socket.Plug the Recording Jack plug into the recording device Microphone socket.Plug the Playback Jack plug into the recording device Headphones socket.Note: it is suggested that only one jack plug is plugged into the recording device at a time during initial set-up. The recording / playback audio levels may be impacted on some recording devices when both plugs are inserted at the same time.

Initial Set-up (Cassette Tape Recorder)Connect audio cable to Tanex-Plus and the Recording Jack Plug to the Microphone input socket of the Recorder.

On the Microtan:Set CUTS speed C <CR>Type command D100,1FF,Test (but do not press <CR> yet)On the Recorder:Insert blank cassette tape, advance it so that there is recording tape against the recording headStart recordingOn the Microtan:Press <CR>. The file transfer will commence. The cursor will be displayed again when the file transfer has been completed.On the Recorder:On completion, stop recording. Rewind tape and press PLAY. The recorded audio should be heard clearly. Adjust Recorder volume control so that the sound is loud but not distorting.Remove recording jack plug and insert playback jack plug into the Headphones socket. Rewind tape to start position. On the Microtan:Examine (verify) the recording using the command E,TEST <CR>On the Recorder:Press PLAY

If the file is received successfully with no errors, the cursor will be displayed. If not, retry with different volume control settings. If successful, repeat above above process, using FAST speed. This is set on the Microtan using the command F <CR>. Note Microtan reverts to the default CUTS speed following a RESET. To confirm the Microtan can successfully read a file from tape, use the command F,TEST<CR>The position of the volume control should be noted for future use.

Version 1 : 21 Sep 16 Page 9

Page 10: Microtan-R Tanex-Plus Manual -  · PDF fileMicrotan-R Tanex-Plus Manual Version 1 : ... U11 74LS139 U12 ... In this document,

www.microtan.UKPC.net

Initial Set-up (PC / Laptop)The same process as for the Cassette Tape Recorder above is used except the recording and playback jack plugs are connected to the PC / Laptop sound card. An application such as Audacity will be required to manage the recordings. The recommended settings are as follows:Mode : MonoSampling Rate : 22050 HzSampling Format : 32-bit FloatingThe sound card Mixer controls will need to be adjusted to set the recording and playback levels.

Version 1 : 21 Sep 16 Page 10

Page 11: Microtan-R Tanex-Plus Manual -  · PDF fileMicrotan-R Tanex-Plus Manual Version 1 : ... U11 74LS139 U12 ... In this document,

www.microtan.UKPC.net

Memory ManagementFigure 2 below shows the memory map for the Microtan-R system.

Fig. 2 – Tanex-Plus Memory Map

The Tanex-Plus board has 46K of Ram available to the user at $400 - $BBFF. One of 8 pages of EPROM memory or a single page of RAM is selectable by the user either manually or under program control to occupy 12k of memory space at $C000 - $EFFF.

XBUG is a 2K EPROM which contains extended monitor commands. This is provided on the Tanex-Plus board at $F000 - $F7FF.

Version 1 : 21 Sep 16 Page 11

Page 12: Microtan-R Tanex-Plus Manual -  · PDF fileMicrotan-R Tanex-Plus Manual Version 1 : ... U11 74LS139 U12 ... In this document,

www.microtan.UKPC.net

EPROM Paged MemoryTwo 27512 EPROMs provide 8 pages of 12K EPROM to overlay $C000-$EFFF system memory space which on a Tangerine Tanex board, is occupied by EPROMs J2, H2, D3 & E2..

Figure 2 below shows how this memory space is organised on the two 27512 EPROMs.

Figure 3 – TANEX-PLUS EPROM Memory Map

Version 1 : 21 Sep 16 Page 12

Page 13: Microtan-R Tanex-Plus Manual -  · PDF fileMicrotan-R Tanex-Plus Manual Version 1 : ... U11 74LS139 U12 ... In this document,

www.microtan.UKPC.net

The Memory Page Register defines which page of EPROM is in use. The address of the register is specified by the user by setting the 10 DIP switches SW1 & SW2 on the Tanex-Plus board. The addressable range is from $BC00 (all switches on) to $BFFF (all switches off). The valid page number range is from 0 to 8. Pages 0 – 7 are the 8 pages located on the two EPROMs. When Page 8 is selected, the overlay area of the system memory ($C000 - $EFFF) is occupied by RAM.

The bank of LEDs on the front edge of the TANEX-PLUS board indicate to the user which Page is in use.

A specific page of EPROM is brought into use by storing the Page Number into the Memory Page Register. This can be performed within a program; for example, to load Page number 2 into the Memory Page Register located at $BE00, use the commands LDA #$2; STA $BE00. Alternatively, the user can store the page number directly by using the TANBUG Monitor command MBE00.

The default page number in the Memory Page Register is 0. So, if for example a user mainly uses the BASIC language, then the BASIC EPROM images should be burned into Page 0 area of EPROM U13. The Microtan-R system would then behave exactly the same as an original Microtanwith the BASIC EPROMs located in the TANEX board. After power-up, the 'BAS' command would take the user straight into the BASIC program.

Version 1 : 21 Sep 16 Page 13

Page 14: Microtan-R Tanex-Plus Manual -  · PDF fileMicrotan-R Tanex-Plus Manual Version 1 : ... U11 74LS139 U12 ... In this document,

www.microtan.UKPC.net

Random Access MemoryThe memory map shown in Figure 2 above shows how memory is allocated and used on the TANEX-PLUS board. All the RAM available to the user on the TANEX-PLUS is provided by the AS6C1008 (128kx8) SRAM chip (U15) which has a maximum 64K capacity. Only $400 - $BBFF is always available. $C000 - $EFFF is available if Page 8 is selected in the Memory Page Register. To copy an EPROM page of memory into RAM at $C000 - $EFFF, use following program:

60 A9C0 LDA #$C0 ;Set up transfer Start Address in locations $13 & $1462 8514 STA $1464 A900 LDA #$066 8513 STA $1368 A200 LDX #$0 ;'Copy from' EPROM Page Number6A A008 LDY #$8 ;'Copy to' EPROM Page Number6C 8E00BC STX $BE00 ;Selected Page Memory Register address6F A113 LDA ($13,X) ;Commence transfer71 8C00BC STY $BE0074 8113 STA ($13,X)76 E613 INC $13 ;Increment transfer address78 DOF2 BNE $6C7A E614 INC $147C C9F0 CMP #$F0 ;End reached?7E DOEC BNE $6C80 4C00FC JMP $FC00 ;Return to TANBUG

Type command G60 <CR> to execute the program.

This program is useful where the user wishes to experiment with changing the code of other programs stored in either of the two EPROMs. There are also some programs (such as DASM) thatare located in memory area $C000-$DFFF but have to reside in RAM as parameters are updated whilst the program is running. This program will enable such a program stored on the EPROM to bere-located into RAM before the program is run.

Random Access Memory may be tested using the program described here.

Version 1 : 21 Sep 16 Page 14

Page 15: Microtan-R Tanex-Plus Manual -  · PDF fileMicrotan-R Tanex-Plus Manual Version 1 : ... U11 74LS139 U12 ... In this document,

www.microtan.UKPC.net

X-BugThe full X-Bug Manual is available here.X-Bug provides additional Monitor commands for the Microtan system; a 6502 Translator & Interpreter and Cassette Tape file handling utilities.

Translator

The Translator allows the user to enter programs in 6502 mnemonic assembly language. To use the Translator, type:T<address><CR> For example: T400<CR> to commence entering code at memory location $400.

The Translator will display the Memory address given in the command, followed by the code storedat that location, followed by the prompt !For each line enter the instruction in the form:<opcode><space><operand> <CR>Examples of legal instructions are provided in the manual.

The user can move up and down the entered program (to amend the code for example) with the use of the <UP KEY> key (upwards) and the <LF> key (downwards). To move the Translator to a new area to enter code type:*=<address><CR>

To exit the Translator, hit the <ESC> key.

Interpreter

The Intrepreter reads machine code stored in memory and displays them as mnemonic instructions and opcodes. To use the Interpreter, type:I<address><CR>

The interpreter will list a full page of code commencing with the memory address location given in the command followed by the prompt !

To exit the Interpreter, hit the <ESC> key.To continue the listing to the next page, hit the <CR> keyTo continue the listing without pausing after each page, hit the <LF> key. To stop the listing, hit the<Break> or <RESET> key.

Version 1 : 21 Sep 16 Page 15

Page 16: Microtan-R Tanex-Plus Manual -  · PDF fileMicrotan-R Tanex-Plus Manual Version 1 : ... U11 74LS139 U12 ... In this document,

www.microtan.UKPC.net

Cassette Tape File Handling

The Microtan uses two baud rates for storing files on cassette tape. CUTS is 300 Baud, FAST is 2400 Baud. The Microtan defaults to the CUTS rate. To change to FAST, type the following Monitor command:F<CR>To return to CUTS rate, type:C<CR>

Dumping to Tape

To dump an area of code to tape, type:D<start address>,<end address>,<filename><CR>The filename may be up to 8 alpha-numeric (plus . and /) characters.

The recording device must be recording before the command is executed.

Examining a File

To confirm the validity of a stored file against the code held in memory, type:E,<filename><CR>Then playback the file from the recording device. If no errors are found after the file has been played back, the User Prompt will reappear with no error messages displayed. The manual providesa list of the possible error messages.

The E,<CR> command can be used to list the files held on a tape. To exit, hit the <RESET> key.

Fetching a File

To load a file into memory, type:F,<filename><CR>Then playback the file from the recording device.

Version 1 : 21 Sep 16 Page 16

Page 17: Microtan-R Tanex-Plus Manual -  · PDF fileMicrotan-R Tanex-Plus Manual Version 1 : ... U11 74LS139 U12 ... In this document,

www.microtan.UKPC.net

Parallel Port InterfaceFour parallel ports are provided by two 6522 Versatile Interface Adapters (VIA). The four 2x7 IDC Header connectors P2, P1, P4 & P3 align with the original Tanex A1, B1, C1 & D1 ports respectively and are labelled as such for ease of use. The data sheet for the 6522 is available here.

Figure 4 below shows the Microtan addresses for the VIA control signals and registers in relation tothe four parallel ports.

Fig. 4 – Tanex-Plus VIA control signals and register addresses

The XBUG cassette tape file handling routines use the T1 timer on VIA U19. Data is read in on its PB7 pin and written on its CB2 pin. These pins are also brought out to Parallel Port A1 and therefore cannot be used for other purposes during cassette tape operations.

Tanbug v2.3/v3.0 and Tugbug contains software to drive a parallel printer using VIA U20 on the Tanex-Plus. Details are provided in the Tanbug v2.3 manual. The parallel printer interface is described in the next section.

Version 1 : 21 Sep 16 Page 17

Register A1 B1 C1 D1

DDRA/B $BFC3 $BFC2 $BFE3 $BFE2

$BFC1 $BFC0 $BFE1 $BFE0

ORA* $BFCF $BFEF

IFR $BFCD $BFED

IER $BFCE $BFEE

PCR $BFCC $BFEC

ACR $BFCB $BFEB

SR $BFCA $BFEA

T1L-H $BFC7 $BFE7

T1L-L $BFC6 $BFE6

T1C-H $BFC5 $BFE5

T1C-L $BFC4 $BFE4

T2C-H $BFC9 $BFE9

T2C-L $BFC8 $BFE8* No handshake

IRA/ORAIRB/ORB

Page 18: Microtan-R Tanex-Plus Manual -  · PDF fileMicrotan-R Tanex-Plus Manual Version 1 : ... U11 74LS139 U12 ... In this document,

www.microtan.UKPC.net

Parallel Printer InterfaceTanbug v2.3/v3.0 and Tugbug have built-in parallel printer routines that use VIA U20. There is oneroutine to initialise the printer and another to output data to it.

Figure 5 below shows the details of the required interface cable connecting Ports C1 and D1 to a Centronics-type printer to make use of these facilities. Note it is only necessary to make up a cable using the Port C1 connections. However with this configuration no printer busy or error conditions will be detected by the monitor.

Fig. 5 – Parallel Printer Cable Connections

When running the monitor or BASIC interpreter, the printer can be toggled on or off by typing Control P.

From within a user program, the printer can be turned on by using the monitor OUTALL subroutine (JSR $F80E) to output the code [DC1] 2. [DC1] is Device Control code 1 and is Hex code 11 (same as Control Q). Thereafter all output transmitted by the OUTALL subroutine is also transmitted to the printer. To turn the printer off, use the OUTALL subroutine to out the code [DC1]3.

Version 1 : 21 Sep 16 Page 18

C1 D1

1 O O 2 1 O O 2

3 O O 4 3 O O 4

5 O O 6 5 O O 6

7 O O 8 7 O O 8

9 O O 10 9 O O 10

11 O O 12 11 O O 12

13 O O 14 13 O O 14

P4 P3

Centronics Pin Function Tanex+ Pin

+5v C1-1+5v C1-2

2 PA0 C1-310 CA1 C1-43 PA1 C1-51 CA2 C1-64 PA2 C1-79 PA7 C1-85 PA3 C1-98 PA6 C1-106 PA4 C1-117 PA5 C1-1219 GND C1-1321 GND C1-1431 PB0 D1-311 PB1 D1-532 PB2 D1-7

Page 19: Microtan-R Tanex-Plus Manual -  · PDF fileMicrotan-R Tanex-Plus Manual Version 1 : ... U11 74LS139 U12 ... In this document,

www.microtan.UKPC.net

Below are the two sub-routines to turn the printer on and off

Turn Printer ON Turn Printer OFF

LDA #$11 LDA #$11JSR OUTALL JSR OUTALLLDA #$2 LDA #$3JSR OUTALL JSR OUTALLRTS RTS

Separately the parallel printer can be initialised using the monitor PRPUP subroutine (JSR $F800). Output can then be directed to the parallel printer without affecting other devices by using the OUTPAR subroutine (JSR $F803).

Some other basic parallel printer routines are provided here for users wishing to use other Tanex-Plus parallel ports.

Version 1 : 21 Sep 16 Page 19

Page 20: Microtan-R Tanex-Plus Manual -  · PDF fileMicrotan-R Tanex-Plus Manual Version 1 : ... U11 74LS139 U12 ... In this document,

www.microtan.UKPC.net

Serial Port InterfaceA serial port is provided by a 6551 Asynchronous Communication Interface Adapter. The datasheetfor the 6522 is available here. A full RS232 interface is provided at socket P7. A TTL-level equivalent interface is provided at socket P6. The one in use is selected by Jumper JP3; open = TTL, closed = RS232.

Tanbug v2.3/v3.0 and Tugbug contains software to drive a serial printer using the ACIA on the Tanex-Plus. Details are provided in the Tanbug v2.3 manual. The serial printer interface is described in the next section. This facility can also be used to transmit an output to a COM port on a PC/Laptop running a Terminal Program. This is described in the subsequent section.

Version 1 : 21 Sep 16 Page 20

Page 21: Microtan-R Tanex-Plus Manual -  · PDF fileMicrotan-R Tanex-Plus Manual Version 1 : ... U11 74LS139 U12 ... In this document,

www.microtan.UKPC.net

Serial Printer InterfaceTanbug v2.3/v3.0 and Tugbug have built-in serial printer routines that use AICA U21. The AICA is initialised with the following settings whenever the Microtan is reset.

Control Register $BFD3 = $93 (110 baud, 8 bits, 2 stop bits, Internal Clock)Command Register $BFD2 = $8B (Parity disabled, No echo, RTS Low, DTR High,

Tx/Rx Interrupts disabled)

This allows connection of a normal 110 baud Teletype printer.

There is also software to output data via the serial port. When running the monitor or BASIC interpreter, the serial printer can be toggled on or off by typing Control V.

From within a user program, the serial printer can be toggled on and off by using the monitor OUTALL subroutine (JSR $F80E) to output the code [DC1] 1.

Output can be directed to the serial printer without affecting other devices by using the monitor OUTSER subroutine (JSR $F806).

Figure 6 below shows the details of the required interface cable connecting the Tanex-Plus RS232 port to a serial printer to make use of these facilities.

Fig. 6 – Serial Printer Cable Connections

Version 1 : 21 Sep 16 Page 21

Tanex-Plus

Printer Function RS232 Port

Printer Drive (V24) TxD 5

Ground GND 9

CTS 6

GND 10

10 O O 9

8 O O 7

6 O O 5

4 O O 3

2 O O 1

P7

O

O

JP3

Page 22: Microtan-R Tanex-Plus Manual -  · PDF fileMicrotan-R Tanex-Plus Manual Version 1 : ... U11 74LS139 U12 ... In this document,

www.microtan.UKPC.net

Version 1 : 21 Sep 16 Page 22

Page 23: Microtan-R Tanex-Plus Manual -  · PDF fileMicrotan-R Tanex-Plus Manual Version 1 : ... U11 74LS139 U12 ... In this document,

www.microtan.UKPC.net

Serial PC InterfaceLinking the Microtan to a Laptop/PC running a terminal program has benefits. It provides an alternative display of the screen with the advantage of having a scroll-back facility. It can be used for editing and formatting an output before printing out from the Laptop/PC rather than directly from the Microtan. It can also be used as a means to transfer files to and from the outside world.

Figure 7 below shows the details of the required interface cable connecting the Tanex-Plus RS232 port to the Laptop/PC RS232 port to make use of this facility.

Fig. 7 – Serial Laptop/PC Cable Connections

Laptop/PC Set-UPA terminal program such as Windows Hyper-terminal is required. This has to be configured to operate with one of the COM ports (usually COM 1 if the Laptop/PC has a dedicated RS232 connector, or a higher port number if using a USB/RS232 adapter).

Instructions for configuring Windows Hyper-terminal for operating with the Microtan are provided at Appendix A.

Microtan Set-upAfter the cable has been connected and the Laptop/PC has been setup, reset the Microtan. Using Monitor ‘M’ command, load $BFD3 with #$1F [19200 Baud, 8 N 1]Press ‘ESC’ and modify $BFD2 with #$0B [DTR/RTS low]

Output directed to the Laptop/PC can be toggled on and off by use of the Control V command. Instructions for conducting file transfers between the Microtan and the Laptop/PC are provided here.

Version 1 : 21 Sep 16 Page 23

12345

6789

O

O

JP3

Function DB9 P7 Function

DTR 4 1 DCD

DTR 4 2 DSR

TxD 3 3 RxD

CTS 8 4 RTS

RxD 2 5 TxD

RTS 7 6 CTS

DCD/DSR 1/6 7 DTR

nc 8

GND 5 9 GND

GND 5 10 GND

10 O O 9

8 O O 7

6 O O 5

4 O O 3

2 O O 1

P7

Page 24: Microtan-R Tanex-Plus Manual -  · PDF fileMicrotan-R Tanex-Plus Manual Version 1 : ... U11 74LS139 U12 ... In this document,

www.microtan.UKPC.net

TTL-TTL Serial Interface

The Tanex-Plus TTL serial interface is useful for linking the Microtan system to another one or any other 1980s system that has this capability. A full hardware control cable can be used as shown in Figure 8. However for a Microtan – Microtan link, a simple 3 wire cable can be used as shown in Figure 9. Note pins 7, 8, 10 & 11 of each connector need to be connected together.

Fig. 8 – Full-control Serial TTL-TTL Cable Connections

Fig. 9 – 3 wire Serial TTL-TTL Cable Connections

Version 1 : 21 Sep 16 Page 24

Tanex Tanex-Plus

TxD 6 4 RxD

DCD 10 5 DTR

DSR 11 5 DTR

RxD 4 6 TxD

GND 7 7 GND

RTS 9 8 CTS

CTS 8 9 RTS

DTR 5 10 DCD

DTR 5 11 DSR

14 +5v

1 O O 14

2 O O 13

3 O O 12

4 O O 11

5 O O 10

6 O O 9

7 O O 8

P6

Tanex Tanex-Plus

TxD 6 4 RxD

RxD 4 6 TxD

GND 7 7 GND

1 O O 14

2 O O 13

3 O O 12

4 O O 11

5 O O 10

6 O O 9

7 O O 8

P6Common Connections

Tanex-Plus

11 DSR

10 DCD

8 CTS

7 GND

Tanex

DSR 11

DCD 10

CTS 8

GND 7

E1

1 O O 14

2 O O 13

3 O O 12

4 O O 11

5 O O 10

6 O O 9

7 O O 8

E1

1 O O 14

2 O O 13

3 O O 12

4 O O 11

5 O O 10

6 O O 9

7 O O 8

Page 25: Microtan-R Tanex-Plus Manual -  · PDF fileMicrotan-R Tanex-Plus Manual Version 1 : ... U11 74LS139 U12 ... In this document,

www.microtan.UKPC.net

A program suitable for transferring a block of code held in memory on one Microtan system to another is provided here

Version 1 : 21 Sep 16 Page 25

Page 26: Microtan-R Tanex-Plus Manual -  · PDF fileMicrotan-R Tanex-Plus Manual Version 1 : ... U11 74LS139 U12 ... In this document,

www.microtan.UKPC.net

Appendix A - Hyper-terminal set upThese are instructions for setting up the Windows terminal program Hyper-terminal to interface with a Microtan with a Tanbug v2.3 monitor.

Hyper-terminal Initial settingsOn creating a new Hyper-terminal connection, choose a name for the connection and select the Laptop/PC COM port it will use (usually COM 1 if the Laptop/PC has a dedicated RS232 connector, or a higher port number if using a USB/RS232 adapter).

Then set the Port settings to 19200 Baud Rate, 8 Data Bits, Parity None, 1 Stop Bit, 'None' Flow Control.

Select 'Properties' from under the 'File' menu option and select the following Hyper-terminal screen options:

• ANSI Terminal Emulation

• Send line ends with line feeds

• Echo typed characters locally

• Append line feeds to incoming line ends

Save the Hyper-terminal settings using the 'Save As' option under the 'File' menu item.

MT65 Initialisation ProcessThere are 5 registers on the ACIA that control and execute serial I/O data transfer.$BFD3 – sets the port settings$BFD2 – controls data transfers$BFD1 – monitors status of registers /data transfers$BFD0(Read) - holds received data$BFD0(Write) – data to be transmitted

Using Monitor ‘M’ command, load $BFD3 with #$1F [19200 Baud, 8 N 1]Press ‘ESC’ and modify $BFD2 with #$0B [DTR/RTS low]

MT65 Transmit Test Process

Continuing from aboveUsing Monitor ‘M’ command, confirm $BFD1 is $10 ie bit 4 is set [$BFD0(Write) is clear]Press ‘ESC’ and modify $BFD0 with #$5A [character ‘Z’]Press 'CR' to send character

Version 1 : 21 Sep 16 Page 26

Page 27: Microtan-R Tanex-Plus Manual -  · PDF fileMicrotan-R Tanex-Plus Manual Version 1 : ... U11 74LS139 U12 ... In this document,

www.microtan.UKPC.net

Confirm on Laptop/PC the character ‘Z’ has been received. Hyper-terminal should have detected the baud rate, parity & stop bit settings and displayed them in the information bar at the bottom of its window. Using Monitor ‘M’ command, confirm $BFD1 is $10 [ie character has been sent and register isclear]

Save the Hyper-terminal settings using the 'Save' option under the 'File' menu item. This preserves the port settings for the next session and avoids Hyper-terminal having to 'auto-detect' them which is not always successful.

MT65 Receive Test Process

On the PC key a character on the Hyper-terminal screenUsing Monitor ‘M’ command, confirm $BFD1 is $18 [ie character has been received]Press 'ESC' and confirm the $BFD0 register contains ascii value of the character keyed on the PCPress ‘LF’ to confirm $BFD1 is $10 [ie character has been read and register is clear]Test complete.

Version 1 : 21 Sep 16 Page 27