background image

Summary of Contents for M68705EVM

Page 1: ...M68705EVM AD5 M68705EVM Evaluation Module User s Manual ...

Page 2: ...GENERAL INFORMATION II HARDWARE PREPARATION AND INSTALLATION INSTRUCTIONS OPERATING INSTRUCTIONS II FUNCTIONAL DESCRIPTION II SUPPORT INFORMATION II S RECORD INFORMATION a ...

Page 3: ...a GENERAL INFORMATION El HARDWARE PREPARATION AND INSTALLATION INSTRUCTIONS B OPERATING INSTRUCTIONS II FUNCTIONAL DESCRIPTION II SUPPORT INFORMATION mS RECORD INFORMATION ...

Page 4: ...pport or sustain life Buyer agrees to notify Motorola of any such intended end use whereupon Motorola shall determine availability and suitability of its product or products for the use intended Information contained in this document applies to REVision C M68705EVM Evaluation Modules EVMbug and EXORciser are trademarks of Motorola Inc IBM PC is a registered trademark of International Business Mach...

Page 5: ......

Page 6: ...PREFACE Unless otherwise specified all address references are in hexadecimal throughout this manual An asterisk following the signal name denotes that the signal is true or valid when the signal is low ...

Page 7: ......

Page 8: ...J14 J16 and J19 2 2 Host CTS and DCD Signal Enable Headers J8 and J11 2 5 User Map Select Header J1 O 2 5 Baud Rate Select Headers J12 and J13 2 6 Timer Input Select Header J15 2 7 Clock Input Select Header J17 2 8 Timer Prescaler Select Header J20 2 9 EPROM MCU Programming Select Headers J21 thru J24 2 10 Write Protect Disable Header J25 2 10 INSTALLATION INSTRUCTIONS 2 11 Power Supply EVM Interc...

Page 9: ...er Disassembler ASM 3 1 O Block Fill BF 3 12 Breakpoint Set BR 3 1 3 Copy COPY 3 14 Go G 3 15 Load LOAD 3 1 6 Memory Display MD 3 17 Memory Modify MM 3 18 Remove Breakpoint NOBR 3 19 Proceed P 3 20 Program PROG 3 21 Register Display RD 3 22 Register Modify RM 3 23 Trace T 3 24 Transparent Mode TM 3 25 EPROM MCU ERASING PROCEDURE 3 26 EPROM MCU PROGRAMMING PROCEDURE 3 26 EPROM MCU COPYING PROCEDURE...

Page 10: ...CU and Control Circuits 4 1 Map Switching 4 2 Abort 4 4 Address Decoding 4 4 Monitor and User Memory 4 4 Monitor Map Area 4 6 User Map Area 4 6 Terminal and Host Computer 1 0 Ports 4 6 MCU Extension 1 0 Ports 4 7 EPROM MCU Programmer 4 7 SUPPORT INFORMATION INTRODUCTION 5 1 CONNECTOR SIGNAL DESCRIPTIONS 5 1 PARTS LIST 5 7 DIAGRAMS 5 10 S RECORD INFORMATION A 1 EVALUATION MODULE USER S MANUAL M6870...

Page 11: ...on Diagram 5 11 5 2 EVM Schematic Diagram 7 Sheets 5 13 LIST OF TABLES PAGE TABLE 1 1 EVM Specifications 1 2 1 2 External Equipment Requirements 1 4 3 1 EVM Control Switches 3 2 3 2 EVM Indicators 3 3 3 3 Monitor EVMbug Commands 3 9 5 1 RS 232C Terminal Port Connector J3 Pin Assignments 5 2 5 2 RS 232C Host Port Connector J4 Pin Assignments 5 3 5 3 28 Pin MCU 1 0 Port Connector J9 Pin Assignments ...

Page 12: ... information 1 2 FEATURES EVM features include Economical means of evaluating target systems incorporating M68705 HMOS MCU family devices Monitor debugger firmware One line assembler disassembler Host computer download capability Dual 4K byte memory maps 4K monitor EPROM 4K user pseudo ROM EPROM MCU programmer MCU 28 pin and 40 pin extension 1 0 port s RS 232C terminal and host computer 1 0 ports ...

Page 13: ...ATION MODULE USER S MANUAL 1 2 SPECIFICATIONS 1 MHz bus operation 4 MHz crystal controlled divided by four 4 MHz or smaller divided by four 1 MHz or smaller bus operation 112 bytes 3968 bytes HMOS compatible input output HMOS compatible input only and or analog to digital converter RS 232 compatible RxD and TxD only 25 degrees C 40 to 85 degrees C 0 to 90 non condensing 5 Vdc 1 0 A max 12 Vdc 0 1 ...

Page 14: ...uation purposes Downloading programs via Motorola S records directly from an RS 232C compatible host computer to the EVM is accomplished via either the host or terminal port connector Downloading is accomplished by the use of the monitor commands MCU code may be generated using the resident one line assembler disassembler or may be downloaded to the user program RAM through the host or terminal po...

Page 15: ...PMENT 5 12 12 Vdc power supply VPP power supply Terminal RS 232C compatible Host computer RS 232C compatible Terminal host computer EVM RS 232C cable assembly Target system EVM MCU 1 0 port extension cable assembly Notes 1 Refer to Chapter 2 for details 2 Optional not required for basic operation EVALUATION MODULE USER S MANUAL 1 4 MOTOROLA M68705EVM ...

Page 16: ...mponents prior to target system installation This description will ensure the user that the EVM components are properly configured for target system operation The EVM has been factory tested and is shipped with factory installed jumpers EVM should be inspected prepared for jumper placements prior to target system installation Figure 2 1 illustrates the EVM connector switch indicator and jumper hea...

Page 17: ...f the EVM resident MCU The EVM is shipped with an UV erased MC68705R3 MCU installed in socket U21 and jumper headers J2 J14 J16 and J19 are factory configured as shown below J2 J14 J16 J19 I I I I MC68705R3 U3 3 3 3 3 MC6805R2 RAMSEL NUM 02 TIMER ROMSEL If evaluation of the MC68705R2 device is desired the user must replace the resident MC68705R3 device with the MC6805R2 device and reposition the f...

Page 18: ...PUT D SELECT J12 J13 DD J14 D J18 0 EXT CLOCK INPUT J20 TIMER D PRESCALER SELECT SS M A S T E R RESET J15 D TIMER INPUT SELECT RESIDENT MCU SELECT J16 D RESIDENT MCU SOCKET EPROM MCU PROGRAMMING SELECT J21 J22 J23 U21 40 PIN DIP PROGRAMMER SOCKET Jl J9 J19 D 0 001 xuss_ EPROM MCU 28 PIN DIP PROGRAMMER 1 SOCKET XU57 CR1 CR2 0 0 PROGRAM VERIFY PROGRAMMING SELEC N J24 ____ D OFFL J S4 CRB N OFFL J 40...

Page 19: ...E 3 3 CTS DCD Should the host computer or modem require full handshake capability jumpers are to be repositioned between pins 2 and 3 Refer to the schematic diagrams located in Chapter 5 for CTS and DCD signal wiring information 2 3 3 User Map Select Header J10 Jumper header J1Ois used to select either a 2K byte user map for MC68705P3 evaluation or a 4K byte user map for MC68705R3 U3 evaluation Th...

Page 20: ... 4 5 6 4800 5 6 7 8 2400 7 8 9 10 1200 9 10 11 12 600 11 12 13 14 300 13 14 TERMINAL PORT HOST PORT In the transparent mode which allows direct communications between the terminal and the host the host computer baud rate should be set one increment lower than the terminal e g terminal 2400 baud host 1200 baud If both baud rates are the same occasionally a character may not be received by the termi...

Page 21: ...the MC6805R2 MCU In the gated mode the internal phase 2 02 clock is gated by the signal applied to the MCU timer input In the pulsed mode the timer counts the input pulses applied to the MCU timer input When the pulsed mode is required the fabricated jumper must be repositioned between pins 1 and 2 The MC68705R3 U3 MCU timer is software programmable Both the timer input and prescaler selection cap...

Page 22: ...z clock operation This is accomplished by the installation of a fabricated jumper on pins 2 and 3 as shown below To select an external clock source remove jumper from pins 2 and 3 and reinstall jumper on pins 1 and 2 J17 EXTERNAL EXT 2 I INTERNAL 4 MHz 3 When the external clock source is selected connector J18 2 pin header is used to facilitate interconnection of the external clock source EVALUATI...

Page 23: ...llation of a fabricated jumper on pins 3 and 4 as shown below DIVIDE BY J20 1 1 2 2 3 4 4 5 6 8 7 8 16 9 10 32 11 12 64 13 14 128 15 16 TIMER PRESCALER The MC68705R3 U3 MCU timer is software programmable Both the timer input and prescaler selection capabilities via jumper headers J15 and J20 respectively are bypassed when reconfiguration for either the MC68705R3 U3 MCUs are made via the MCU select...

Page 24: ...PAO PA2 PA1 Jumpers positioned between pins 1 and 2 disconnect the loading effect of the programmer from the MCU 1 0 port PAO PA3 lines when the EPROM MCU programmer is not in use When use of the EPROM MCU programmer is desired fabricated jumpers on headers J21 J24 are to be repositioned between pins 2 and 3 2 3 9 Write Protect Disable Header J25 Jumper header J25 is used to write protect the user...

Page 25: ...nterconnection The EVM requires 5 Vdc 1 0 A 12 Vdc 0 1 A and 12 Vdc 0 1 A for operation The 27 Vdc programming voltage VPP may be supplied by three 9 volt batteries or 27 Vdc 50 mA power supply The user supplied power supply is connected to connector P1 which is a terminal block designed to accept 14 22 AWG wire Interconnection of the power supply wiring to the EVM is shown below EVALUATION MODULE...

Page 26: ... below labeled TERMINAL The other end of the cable assembly is connected to the user supplied terminal For connector pin assignments and signal descriptions of the EVM terminal port connector J3 refer to Chapter 5 NC 1 nm 2 RXD 3 NC 4 CTS 5 DSR 6 SIG GND 7 EVALUATION MODULE USER S MANUAL 2 12 DCD 8 NC 9 NC 10 NC 11 NC 12 NC 13 J3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 TERMINAL 14 15 16 17 1...

Page 27: ...le assembly is connected to the EVM connector J4 shown below labeled HOST The other end of the cable assembly is connected to the user supplied host computer or modem For connector pin assignments and signal descriptions of the EVM host port connector J4 refer to Chapter 5 NC 1 TXD 2 RXD 3 ATS 4 CTS 5 NC 6 SIG GND 7 EVALUATION MODULE USER S MANUAL M68705EVM DCD 8 NC 9 NC 10 NC 11 NC 12 NC 13 J4 0 ...

Page 28: ...IRCUIT ASSEMBLY CORP CA 25 SMD S 2 ITT CANNON DBSP B25S 3 ANSLEY 609 25S 4 WINCHESTER 49 1125S 25 PIN D SUBMINIATURE CONNECTOR 14 2 3 4 5 6 7 8 9 10 11 12 13 15 16 17 18 19 20 21 22 23 24 25 A REDWIRE _ Y Q z NOT CONNECTED CJ a Q Q Q J oC g a a 0 z Q CJ ll5 1 2 3 4 5 6 7 8 10 11 12 j 15 16 17 18 19 20 21 22 23 24 25 25 PIN D SUBll INATURE CONNECTOR FIGURE 2 2 Terminal or Host Computer Cable Assemb...

Page 29: ... below that facilitate the interconnection of the cable assembly for evaluation purposes For connector pin assignments and signal descriptions of the EVM connector J9 refer to Chapter 5 J9 NC 28 1 VSS GND PA 27 2 INT PA6 26 3 NC PAS 2S 4 NC PA4 24 s NC PA3 23 6 NC PA2 22 7 TIMER PA1 21 8 PCO PAO 20 9 PC1 PB 19 10 PC2 PB6 18 11 PC3 PBS 17 12 PBO PB4 16 13 PB1 PB3 1S 14 PB2 28 Pin MCU 1 0 Port Conne...

Page 30: ...EVALUATION MODULE USER S MANUAL 2 16 MOTOROLA M68705EVM ...

Page 31: ... 9 10 11 12 13 14 17 16 15 0 I al 1 11 al Iii al ID Q Q ll Q D ll 17 16 15 12 13 14 14 J PIN15 MODIFIED CONNECTOR PLUG _ __PIN 28 I R I I H G NOTES CABLE LENGTH NOT TO EXCEED 6 INCHES 34 PIN EVM CONNECTOR SOCKET 3M 3414 7034 28 CONDUCTOR FLAT RIBBON CABLE MODIFIED 40 PIN DUAL IN LINE PACKAGE DIP TARGET SYSTEM CONNECTOR PLUG 3M 3508 0000 NA DENOTES NOT APPLICABLE SIGNAL NOT USED ON EVM FIGURE 2 3 2...

Page 32: ...ssembly for evaluation purposes For connector pin assignments and signal descriptions of the EVM connector J1 refer to Chapter 5 J1 PA7 40 1 VSS GND PA6 39 2 NC PAS 38 3 INT PA4 37 4 NC PA3 36 s NC PA2 3S 6 NC PA1 34 7 NC PAO 33 8 TIMER PB7 32 9 PCO PB6 31 10 PC1 PBS 30 11 PC2 PB4 29 12 PC3 PB3 28 13 PC4 PB2 27 14 PCS PB1 26 1S PC6 PBO 2S 16 PC7 PDQ ANO 24 17 PD7 PD1 AN1 23 18 PD6 INT2 PD2 AN2 22 ...

Page 33: ...EVALUATION MODULE USER S MANUAL 2 20 MOTOROLA M68705EVM ...

Page 34: ...I D 0 i ii al al al c D D D D D D D D D 28 27 26 25 24 13 14 15 16 17 BOTTOM VIEW _ PIN21 D D __ PIN40 I R I I H G 18 19 20 l 23 22 21 NOTES I r I z a z a c In c c c c c D D D D D 23 22 21 18 19 20 CABLE LENGTH NOT TO EXCEED 6 INCHES 40 PIN EVM CONNECTOR SOCKET 3M 3414 7000 OR ANSLEY 609 4000M 40 CONDUCTOR FLAT RIBBON CABLE 40 PIN DUAL IN LINE PACKAGE DIP TARGET SYSTEM CONNECTOR PLUG 3M 3508 0000 ...

Page 35: ...M MCU erasing procedure e EPROM MCU programming procedures f Assembly disassembly procedures g Downloading procedures 3 2 SWITCHES AND INDICATORS The EVM contains five switches and four LED indicators that allow the user to control and monitor specific functions Refer to Figure 2 1 for switch and indicator locations Switches S1 S2 and S5 control the reset and abort functions Switches S3 and S4 con...

Page 36: ...ser map assuming proper operation of user code If MCU gets lost in the user map the abort is useless and a master reset must be issued The abort function has no effect when operating in the monitor map On off slide switch applies 12 Vdc and 27 Vdc power to the EPROM MCU programmer circuitry LED indicator CR7 is illuminated when this switch is placed in the ON position On off slide switch applies 5...

Page 37: ...socket XU57 or XU58 is programmed Red LED indicator illuminated when EPROM MCU device installed in socket XU57 or XU58 is programmed and verified Red LED indicator illuminated when PROGRAM switch 83 is placed in the ON position applying 12 Vdc and 27 Vdc to the programmer circuitry Red LED indicator illuminated when 5VOLT switch 84 is placed in the ON position applying 5 Vdc to the EPROM MCU devic...

Page 38: ...nterrupts SWls should be avoided whenever possible due to IRQ SWI EVM timing If a concurrent hardware interrupt and SWI should happen an EVM failure could occur which may stop program execution Activation of the MASTER RESET switch will restore the EVM to proper operation These conditions will statistically occur very seldom No protection is provided to limit user programs to the exact amount of M...

Page 39: ...d reading of EPROM MCU Applying power to the EVM causes a Power On Reset POR to occur This POR condition 3 causes the MCU and user 1 0 port circuitry to be reset and the monitor invoked All user registers are in an unknown state during monitor power up The terminal Cathode Ray Tube CRT displays the following EVMbug HMOSOS X X S 7F P XXXX A XX X XX C E8 111 I where X is a revision of the software o...

Page 40: ...prompt The EVM waits for a command line input from the user terminal When a proper command is entered the operation continues in one of two basic modes If the command causes execution of a user program the monitor may or may not be reentered depending upon the desire of the user For the alternate case the command is executed under the control of the monitor and the system returns to a waiting cond...

Page 41: ...ated by a single space 3 All input numbers are interpreted as hexadecimal A dollar sign may precede any number input but is not required 4 All input commands can be entered either upper or lower case lettering All input commands are converted automatically to upper case lettering except for downloading commands sent to the host computer or when operating in the transparent mode 5 A maximum of 30 c...

Page 42: ...nd NOTE When using the control key with a specialized command such as CTRL X the CTRL key is depressed and held then the X key is depressed Both keys are then released During memory display output to terminal CTRL S will delay the output until another character is entered Command line input examples in this chapter are amplified with the following Underscore entries are user entered on the termina...

Page 43: ...r disassembler interactive Block fill memory with data Breakpoint set Copy EPROM contents to user pseudo ROM Go execute program Load S records from 1 0 port Memory display Memory modify interactive Remove breakpoint Proceed thru breakpoint Program EPROM MCU Register display Register modify interactive Trace Transparent mode NOTE Refer to Appendix A for S record information EVALUATION MODULE USER S...

Page 44: ...r input must have exactly one space between the mnemonic and the operand There must be no space between the operand and the index specification X except in the case of indexed no offset Assembler input must be terminated by a carriage return No comments etc are allowed after the instruction input Examples are as follows a LDA O X b STA 10 X c A S BA d CQMX e CMP 2QQ After each new assembler input ...

Page 45: ...SCRIPTION ASM lQQ 100 9D NOP LOA 55 Immediate mode addressing 100 A6 55 LDA 55 requires fr before operand 102 Cl 00 9D CMP 009D SIA 6Q Direct mode addressing may 102 B7 60 STA 60 have but not necessary 104 9D NOP LDA 0 x Index mode if not offset X 104 E6 00 LDA 00 X will be accepted 106 FB ADD x BRA 1QQ Branch offsets calculated 106 20 F8 BRA 0100 automatically address required as conditional bran...

Page 46: ...ughout a determined user memory range Caution should be used when modifying locations which are internal to the MC6805 MCU device i e port addresses timer registers etc The monitor examines each modified user memory location to insure that valid memory exists EXAMPLES BF 80 100 FF BF 200 200 0 EVALUATION MODULE USER S MANUAL 3 12 DESCRIPTION Fill each byte of memory from 80 through 100 with data p...

Page 47: ...he user may use the SWI instruction in the user program A maximum of five breakpoints may be set After setting the breakpoint the current breakpoint addresses if any are displayed All multiple breakpoints are entered on the same line COMMAND FORMATS BR BR address EXAMPLES BR 324 Brkpts 0324 BR 324 212 100 Brkpts 0324 0212 BR Brkpts 0324 0212 0100 0100 EVALUATION MODULE USER S MANUAL M68705EVM DESC...

Page 48: ...fer to paragraph 3 9 for information pertaining to the implementation of the dump program which enables the monitor to copy EPROM contents into user pseudo ROM The COPY command is now entered via the terminal keyboard to enable the MCU EPROM contents to be copied into the EVM user map The EVMbug prompt is displayed on the terminal CRT upon completion of the copying operation COPY EXAMPLES EVALUATI...

Page 49: ...ram execution continues until a breakpoint is encountered or the EVM ABORT switch S2 is activated pressed or the MASTER RESET switch SS is pressed EXAMPLES G G 100 G Jill Abort S 7F P 0104 A 55 EVALUATION MODULE USER S MANUAL M68705EVM X FF DESCRIPTION Go to user map and begin program execution at current PC address location Go to user map and begin program execution at PC address location 100 Tra...

Page 50: ...pseudo ROM As the EVM monitor processes only valid S record data it is possible for the monitor to hang up during a load operation there is no timeout because the terminal and host computer may be running at different baud rates If an S record starting address points to an invalid memory location the invalid address and the message BAD MEMORY is displayed on the terminal CRT EXAMPLES LOAD T LOAD H...

Page 51: ... greater than address2 the monitor prompt is displayed MP 80 AO NOTE The EVM does not support any type of data flow control on the terminal 1 0 port If the external terminal connected to the EVM cannot support 9600 baud the terminal CRT display may become garbled after one full display of data EXAMPLES 0080 AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA 0090 AA AA AA AA AA AA AA AA AA AA AA AA AA...

Page 52: ...cation and reopen same location Update location and terminate An entry of only RETURN terminates the memory modify interactive operation CTRL X may be used to cancel any input line the monitor remains in this command If an invalid address is specified the invalid address and the message BAD MEMORY is displayed on the terminal CRT EXAMPLES MM 100 OlOO OO AA OlOO AA 0101 11 44A OlOO AA 0101 44 3 3 M...

Page 53: ...emoving the breakpoint the current breakpoint address if any are displayed COMMAND FORMATS NOBR NOBR address EXAMPLES NOBR 200 Brkpts 0321 NOBR 321 80 Brkpts 0420 NQE B Brkpts 0080 0420 EVALUATION MODULE USER S MANUAL M68705EVM DESCRIPTION Removes all current breakpoints Removes breakpoint DESCRIPTION Removes breakpoint located at 200 Removes breakpoints located at 321 and 80 Removes all breakpoin...

Page 54: ...control to the monitor All other breakpoints are ignored during this command This command is ideal for applications where registers must be examined after a given number of passes within a software loop EXAMPLE EVALUATION MODULE USER S MANUAL 3 20 DESCRIPTION Current breakpoint location is passed five times before breakpoint returns control to the monitor MOTOROLA M68705EVM ...

Page 55: ...to entering this command the user must follow the EPROM programming procedure as described in paragraph 3 8 This procedure removes the reset condition applied to the MCU and enables the MCU EPROM to be programmed NOTE Excessive programming the same location will cause data degradation if the location is not erased first PROG EXAMPLES EVALUATION MODULE USER S MANUAL M68705EVM DESCRIPTION Program al...

Page 56: ...A 21 s p A x c EXAMPLE X OO C E8 DESCRIPTION Stack pointer Program counter Accumulator A Index register Condition codes 111 I Condition code register CCR 111 HINZC bits are displayed as follows All CCR bits set logic 1 All CCR bits cleared logic O Specific CCR bit set I Specific CCR bits set H I and Z EVALUATION MODULE USER S MANUAL 3 22 C FF C EO C E8 C F9 lllHINZC 111 111 I lllHI C MOTOROLA M687...

Page 57: ... The following terminators are recognized data RETURN data RETURN data RETURN data RETURN Update register and sequence forward Update register and sequence backward Update register and reopen same location Update register and terminate An entry of only RETURN terminates the register modify interactive mode CTRL X may be used to cancel any input line the monitor remains in this command The stack po...

Page 58: ...should not try to trace an instruction that branches to itself e g BRA Because the monitor places an SWI instruction on the object of the branch the instruction would never be executed However it would look to the user as if the instruction executed The user may enter a G command while the PC points to this type of instruction as long as the instruction is not a breakpoint address The monitor issu...

Page 59: ...aracter printable or non printable The default exit command is CTRL A When the user task is completed the transparent mode is terminated by entering the same exit character EXAMPLES IM RETURN MDOS DIR CTRL A I M X RETURN MDOS IllB X DESCRIPTION Command followed by two carriage returns CTRL A is default exit command MDOS program entered Task complete Enter exit command CTRL A TM command terminated ...

Page 60: ...autions and general warnings limitations notes to prevent damage to the EPROM MCU device being programmed CAUTIONS Do not program non EPROM MCU device locations Damage will occur to the non EPROM MCU device NOTES The EVM must be disconnected from target system equipment when performing EPROM programming Excessive programming in the same location will cause data degradation if the location is not e...

Page 61: ... CR1 will illuminate upon completion of the programming sequence Depending upon the length of the user program CR1 will illuminate from a number of seconds to 3 minutes depending upon the length of the user program Approximately 2 seconds later the VERIFY LED indicator CR2 will illuminate upon completion of the verify sequence The terminal CRT will display the monitor prompt upon completion of the...

Page 62: ...tart location Caution must be used in calculating branch offsets since this dump program executes from EPROM and cannot be debugged by the monitor The dump program shown on the following page is written for an MC68705R3 U3 reset vectors located at FFE FFF If an MC68705P3 is to be copied reset vectors are moved to 7FE 7FF User 1 0 bit PB3 must not be held low by the user application circuitry durin...

Page 63: ...U EQU EQU EQU 00 04 01 05 60 FETCH l PAGE l CO DATA PORT PORT A DIRECTION CONTROL PORT PORT B DIRECTION SELF MODIFYING CODE ADDRESS POINTER RESET VECTOR SELF MODIFYING CODE AT RAM 60 FETCH LDA RTS 0080 START READ LOOP Ll ORG RESET BRSET 3 PORTB USER LDA C6 STA CLR LDA STA INCA FETCH PAGE 80 BYTE STA BYTE l LDA STA LDA STA FF PADR 10 PBDR BCLR 4 PORTB BRCLR 3 PORTB BSR FETCH STA BSET INC BNE INC PO...

Page 64: ...II RESET FETCH RESET VECTOR NO READ PROGRAM YES USER PROGRAM RESET ROUTINE FIGURE 3 1 Dump Program Flow Chart EVALUATION MODULE USER S MANUAL 3 30 MOTOROLA M68705EVM ...

Page 65: ...ng power to the ON position and observe II that LED indicator CR8 is illuminated f Enter COPY command Refer to paragraph 3 6 4 The terminal CRT will display the monitor prompt upon completion of the copying sequence The EPROM contents now reside in user pseudo ROM and can be observed by displaying memory g Press MASTER RESET switch SS h Place switch S4 to the OFF position i Remove programmed EPROM...

Page 66: ...on The new line may assemble to a different number of bytes Iii than the previous one For Branch if High or Same BHS Branch if Carry Clear BCC mnemonics disassembly displays the BCC mnemonic For Branch if Lower BLO Branch if Carry Set BCS mnemonics disassembly displays the BCS mnemonic Branch address offsets are automatically calculated by the assembler thus the address is inputted as the operand ...

Page 67: ... AF 0106 26 FA BNE 0102 0108 DF 00 80 STX 0080 X 0108 20 F6 BRA 0100 OlOA 80 RTI EVALUATION MODULE USER S MANUAL M68705EVM CLRA c LRX I NC A ENE 102 INCX BNE 102 BRA lQQ PROGRAM DESCRIPTION Enter assembler mode Clear inner loop counter Clear outer loop counter Increment inner loop counter Wait for counter overflow Increment outer loop counter Wait for counter overflow Go to program start Exit asse...

Page 68: ... 0106 L 2 0102 4C S 7F P 0102 A 46 A OO INCA A OO X FF X OO X OO X Ol X Ol 0103 26 FD BNE 0102 S 7F P 0103 A Ol EVALUATION MODULE USER S MANUAL 3 34 X Ol ROUTINE DESCRIPTION Register display user machine state C E8 111 I Modify program counter register Set breakpoints Begin execution of program C E8 111 I Proceed 45 times within loop C E8 111 I Remove breakpoint Continue program execution C E8 111...

Page 69: ...OAD command moves data information in S record format see Appendix A from an external host computer to the EVM user pseudo ROM When moving data to the EVM the same data transmitted through the host port is also echoed to the terminal port Stopping a host 1 0 port downloading operation already in progress is accomplished by depressing any alphanumeric key on the terminal keyboard If an incorrect ke...

Page 70: ...49E Sll10300243330302057494C4C204C4F41449C S1110400243430302057494C4C204C4F41449A S1110500243530302057494C4C204C4F414498 Sl110600243530302057494C4C204C4F414496 Sll10700243530302057494C4C204C4F414494 S9030000FC EVALUATION MODULE USER S MANUAL 3 36 DESCRIPTION EXORciser initialized into MDOS via TM command to download S records Exit transparent mode LOAD command entered to download data to EVM throu...

Page 71: ... 1 0 port connector J3 for downloading operations To perform the IBM PC to EVM downloading procedure perform observe the following EXAMPLE C KERMIT IBM PC Kermit MS VX XX Type for help Kermit MS SET BAUD 9600 Kermit MS CONNECT DESCRIPTION IBM PC prompt Enter Kermit program Set IBM PC baud rate Connect IBM PC to EVM Connecting to host type Control C to return to PC RETURN LOAD T CTRL l C Kermit MS ...

Page 72: ...El EVALUATION MODULE USER S MANUAL 3 38 MOTOROLA M68705EVM ...

Page 73: ...execution of user programs Data transfer within the EVM is controlled by the monitor ROM firmware This firmware is controlled from an external RS 232C compatible terminal Figure 4 1 illustrates the EVM block diagram Basically the EVM consists of the following functional circuits a MCU and control b Monitor and user memory c Terminal and host computer 1 0 ports d MCU extension 1 0 ports e EPROM MCU...

Page 74: ... the USER RESET switch S1 is activated pressed the MCU and user 1 0 ports are reset memory maps are switched to the user map and the reset vector is fetched from the user map by the MCU Breakpoints are ignored during this operation Execution of user code continues until a software interrupt SWI is decoded on the data bus during a Load Instruction Register UR cycle SWI occurs when either a breakpoi...

Page 75: ...T AND TIMER A PAO PA7 A PCO PC7 PAO PA3 1 ii JPBO PBJ EPROM MCU PROGRAMMER MCU l MC68705R3 _____A_O_ A_ll____ ii AND MCU 1 0 PORT CONTROL r ii CIRCUITS TERMINAL 1 0 7 L ilL BUS TRANSCEIVER BDO BD7 USER PSEUDO ROM MONITOR RAM ROM FIGURE 4 1 EVM Block Diagram II PORT MC6850 HOST 1 0 PORT MC6850 1 TxD RxD coNTROL TxD RxD coNTROL TERMINAL HOST COMPUTER ...

Page 76: ...ress Decoding Address decoding is accomplished via a 828100 Field Programmable Logic Array FPLA device that provides the required chip select signals for memory and peripheral device circuitry that are memory mapped in the EVM 4 2 2 Monitor and User Memory The EVM operates in either one of two memory maps monitor or user map as shown in IIFigures 4 2 Both memory maps are 4K bytes and are decoded v...

Page 77: ...GISTER PORT B DATA REGISTER PORT c DATA REGISTER PORT D DATA REGISTER PORT A DDR PORT B DDR PORT C DDR RESERVED TIMER DATA REGISTER TIMER CTRL REGISTER MISCELLANEOUS REGISTER PROGRAM CTRL REGISTER RESERVED RESERVED A D CONTROL REGISTER A D RESULT REGISTER USER RAM STACK 2K USER PSEUDO ROM _ MC68705P3 VECTORS 2K USER PSEUDO ROM t MC68705R3 U3 VECTORS Notes 1 User map locations 080 FFF are write pro...

Page 78: ...007 00F are MCU reserved The user RAM stack is resident in memory locations 01 Othrough 07F The stack pointer value is displayed on the terminal CRT when the trace and breakpoint functions are II executed User program space user pseudo ROM 080 FFF is RAM This RAM is write protected during user program execution This feature requires all programs to be ROMable and protects against program errors wh...

Page 79: ...scriptions of the EVM connector J9 refer to Chapter 5 Target system to EVM interconnection for the MC68 7 05RX UX operation is accomplished via EVM connector J1 and a user supplied cable assembly MCU 1 0 port connector J1 is a II 40 pin header that facilitate the interconnection of the cable assembly for evaluation purposes For connector pin assignments and signal descriptions of the EVM connector...

Page 80: ...II EVALUATION MODULE USER S MANUAL 4 8 MOTOROLA M68705EVM ...

Page 81: ...ively Two MCU 1 0 port connectors J1 and J9 are used to interconnect the EVM to the target system equipment Connector J9 is used for 28 pin MCU device evaluation e g MC68 7 05PX Connector J1 is used for 40 pin MCU device evaluation e g MC68 7 05RX UX Connector P1 interconnects an external power supply to the EVM Pin assignments for the above connectors J3 J4 J9 J1 and P1 are identified in Tables 5...

Page 82: ...tatus DSR DATA SET READY An output signal held high used to indicate an on line in service active status SIG GND SIGNAL GROUND This line provides signal ground or common return connection between the EVM and RS 232C compatible terminal This line establishes the common ground reference potential between the EVM and RS 232C compatible terminal circuitry DCD DATA CARRIER DETECT An output signal held ...

Page 83: ...to paragraph 2 3 2 Not connected SIG GND SIGNAL GROUND This line provides signal ground or common return connection between the EVM and RS 232C compatible host computer This line establishes the common ground reference potential between the EVM and RS 232C compatible host computer circuitry DCD DTR DATA CARRIER DETECT An input signal used to indicate an acceptable carrier signal has been detected ...

Page 84: ...input signal that asynchronously applies an MCU interrupt Not connected TIMER Input mode serves as timer clock Output mode reflects contents of DOUT bit of timer status and control register each time TMZ bit has a low to high transition PORT C bits 0 3 General purpose 1 0 lines controlled by software via data direction registers PORT B bits 0 7 General purpose 1 0 lines controlled by software via ...

Page 85: ...d INTERRUPT REQUEST An input signal that asynchronously applies an MCU interrupt Not connected TIMER Input mode serves as timer clock Output mode reflects contents of DOUT bit of timer status and control register each time TMZ bit has a low to high transition PORT C bits 0 3 General purpose 1 0 lines controlled by software via data direction registers PORT D bits 0 7 General purpose input lines or...

Page 86: ... Connector P1 Pin Assignments PIN NUMBER 1 2 3 4 5 6 7 SIGNAL MNEMONIC SIGNAL NAME AND DESCRIPTION 5 V 5 Vdc Power Input voltage 5 Vdc 1 0 A used by the EVM logic circuits GND GROUND 12 V 12 Vdc Power Input voltage 12 Vdc 0 1 A used by the EVM logic circuits GND GROUND 12 V 12 Vdc Power Input voltage 12 Vdc 0 1 A used by the EVM logic circuits GND GROUND 27 V 27 Vdc Power Input voltage 27 Vdc 50 m...

Page 87: ... C34 C54 CR1 CR2 CR7 CR8 CR3 CR5 J1 J2 JS J10 J11 J14 J17 J19 J21 J25 J3 J4 J5 J7 J9 EVALUATION MODULE USER S MANUAL M68705EVM TABLE 5 6 EVM Parts List COMPONENT DESCRIPTION Printed Wiring Board PWB M68705EVM Capacitor electrolytic 22 uF 25 Vdc Capacitor fixed ceramic 0 1 uF 50 Vdc NA Capacitor electrolytic 50 uF 16 Vdc Capacitor 24 pF 50 Vdc Diode light emitting red Rectifier 1N4001 Header double...

Page 88: ...715 01 08 Terminal block 7 position screw contact Electrovert 25 104 0753 Transistor 2N4401 Resistor fixed film 330 ohm 5 1 4 W Resistor network five 39k ohm Allen Bradley 706A393 NA Resistor network five 4 7k ohm Allen Bradley 706A472 Resistor network nine 1Ok ohm Allen Bradley 710A103 Resistor network seven 470 ohm Allen Bradley 708A471 Resistor fixed film 1 5k ohm 5 1 4 W Resistor fixed film 1O...

Page 89: ...n SPOT C K 812S SD9R2BE Switch slide DPDT Switchcraft CS6206L2 l C 74LS08N l C MC68SOP ACIA l C MC1489AL l C 74LS1 ON l C 74LSOON NA I C 74LS244N l C 74LS260N l C 74LS11 N l C MC1488L l C 74LS02N l C 74LS04N l C 74LS374N U20 l C 74LS24SN U21 l C MC68705R3S U22 l C 74LS373N U23 l C 82S103 FPGA address map decoder programmed SEE NOTE U24 l C MC6881 OP monitor stack RAM EVALUATION MODULE USER S MANUA...

Page 90: ...l C 74LS27N l C 74LS393N l C 74LS32N l C 74LS74N l C R6522AP l C MC14024BCP l C 74LS14N Diode zener 22V 1N969B Socket programming low insertion force 28 pin DIP Robinson Nugent TSN 286 HT Socket programming low insertion force 40 pin DIP Robinson Nugent TSN 406 HT Crystal 4 0 MHz Murata Erie E400A Fabricated jumper Aptronics 929955 00 use with jumper headers J2 JS J1O J17 J19 J25 Figure 5 2 is the...

Reviews: