background image

DATAMAN S4 MANUAL

Introduction to S4

1

Introduction to S4

DATAMAN S4 is a battery-powered PROM
programmer for Microsystem Designers.  It
can readily be used for production
programming too.S4 contains 128k, 256k or
512k of RAM which retains data and
configuration even when switched off. The
RAM can be downloaded with data and
manipulated either remotely from a computer
via RS232 interface or directly from S4's
keypad. S4 provides plug-in emulation for
PROMS via a 24/28/32 pin emulator lead. The
development method is that a new program
can tried out by emulation. When it works, a
PROM can be programmed, plugged into the
system and the job is done. Programming
facilities include EPROMS of the 27 series,
such as 2716 or 278000, also FLASH
EPROMS and most EEPROMS, including 28,
52, 55 & 98 series.

Summary of Contents for S4

Page 1: ...an be downloaded with data and manipulated either remotely from a computer via RS232 interface or directly from S4 s keypad S4 provides plug in emulation for PROMS via a 24 28 32 pin emulator lead The development method is that a new program can tried out by emulation When it works a PROM can be programmed plugged into the system and the job is done Programming facilities include EPROMS of the 27 ...

Page 2: ...ronic parts and labour are covered except the batteries which are only covered for the first year To make a claim first telephone us with details of the fault Some problems can be fixed quickly without any need for us to see the product You can fit new batteries yourself for example If we need to see it we will give you a return number then you should send the product back to us directly quoting t...

Page 3: ...iece of conductive foam If there is nothing in the display turn up the contrast by rotating the thumbwheel on the left of the display away from you to its fullest extent If still nothing perhaps the battery is totally discharged Plug the charger in with the RESET button depressed and hold it in for a few seconds When you release it you will see a message DATAMAN S4 BIOS 1 1 128K BYTES RAM NO LIBRA...

Page 4: ...ress ESC then LIB Put your LIBRARY ROM in the socket and press ENTER S4 will load the program contained in the LIBRARY ROM Then it will restart and run the program If the LIBRARY program loads correctly S4 will introduce it and display the version number When the RESET button is pressed S4 returns to low level BIOS MODE in which it will only program LIBRARY PROMS of the 27256 variety It is not int...

Page 5: ...y etc BIOS mode is used only for development of new library programs In BIOS mode S4 will only program a 27256 EPROM of the type used as a LIBRARY ROM This section is written for sake of completeness it is unlikely that anyone not developing new software for S4 will want to use the BIOS mode Whilst the RESET key is down and the charger attached charge is forced into the battery This gives a Jump S...

Page 6: ...ELP ROM The LIB key loads a program into the Transient Program Area from 8000 to FFFF from a ROM in the ZIF socket The LIBRARY ROM must be recognised by the system as a valid library A ROM which does not contain a LIBRARY will not load The BIOS configures S4 to handle a 27256 so the LIBRARY ROM must be a 27256 IPower down automatic Automatic Power down If there is no charger connected S4 goes to s...

Page 7: ...ved but nothing else works It warns you first both audibly and with a message If the voltage goes below 8 volts it turns off immediately without warning S4 cannot do anything useful without power except preserve the memory contents MI BI The only cure is to charge the battery Memory Upgrade to 512K S4 user memory can be upgraded by changing the 1M static RAM chip for a 4M part The only suitable st...

Page 8: ...grade will be cheaper if you can wait for a few months D ISocket ZIF The ZIF Socket The ZIF Zero Insertion Force socket is used to load new library programs into the TPA Transient Program Area as already described The ZIF socket is also used to hold PROMS when programming S4 can use PROMS much the same as a computer uses a disk drive they are a permanent storage medium which contains programs to b...

Page 9: ...ets of each side should be empty IGlossary of terms Terms and Basic Concepts IWYSIWYG IESC message The message ESC in the display means that the ESC key was pressed during or before execution the previous command was not completed or maybe not even started The ZIF means the Zero Insertion Force socket on the front panel IKeypad repeating The Keypad refers to S4 s 45 keys Key repeat is automatic wh...

Page 10: ...ine means the display line which starts with a prompt An operation will be performed if you press ENTER or be aborted if you press ESCape ESCape Commands which are non destructive do not change anything are actioned as soon as you press the key without waiting for ENTER A Digit is always Hexadecimal not Decimal An Address defines one location in memory expressed as 5 digits A Parameter is a set of...

Page 11: ...where in the command line If the parameters have been altered ENTER accepts them as seen but ESCape restores the originals Where there are three parameters in the command line they are in the following order START END DESTINATION Each parameter is five hex digits COMPUTER TEXT R R LOAD 2764 R 00000 01FFF 04000 The START and END addresses normally define the whole PROM They can be edited to limit t...

Page 12: ...s will always be In this case it is not possible to handle the whole PROM in one pass The DEST address may be edited with the F129M a F255D and F129M b F255D keys to divide the PROM into blocks which can be handled separately COMPUTER TEXT BURN R AMD MMI 27C080 R 12 75v TO PIN 1 R 00000 1FFFF 40000 Only one set of START END DEST addresses are stored and shared between those functions which use the...

Page 13: ...ts his system Use of these devices is described in manufacturers literature FUNC Key The FUNC key is used like a shift key to access an extra set of functions When waiting for a function the prompt becomes instead of IBeeper Audible Tones S4 makes a variety of beeping noises A single tone is made on acceptance of a key A double tone low high is a rebuke that a key is not acceptable During the exec...

Page 14: ...uter and see the results on the screen There are differences between Stand alone and Remote operation but each key on S4 s keypad has an equivalent two character serial command S4 always responds to the requesting device keypad commands produce responses in the LCD computer commands produce screen responses S4 will respond to either device from the command prompt no switching of modes is necessary...

Page 15: ...le copying routines can specify the serial device MSDOS uses COM1 or AUX CP M refers to RDR and PUN for example the command to transfer a file to S4 from an IBM type PC is COMPUTER TEXT COPY FILE HEX COM1 The baud rate word length stop bits and parity setting must have been set previously to the correct values The command to do this is COMPUTER TEXT MODE COM1 9600 N 8 1 S4 must be set similarly an...

Page 16: ...s not 64K bytes because a HEX file contains two ASCII characters for every data byte plus addresses checksums and other odds and ends In fact it is more like 26K bytes For small PROMS this is enough It is possible to send the whole 64K as 3 chunks then patch it together with a word processor and take out the two spurious End of File lines A much better solution is to use some kind of COMMS or TERM...

Page 17: ...ll work at speeds up to 115200 baud File Formats S4 sends and receives orthodox computer files Only a programmer with an unusual amount of patience would wish to enter a large quantity of code into S4 by keying it in hexadecimal numbers Microsystems have in the past been developed by hand assembly the translation of microprocessor instructions into machine code mentally without benefit of an assem...

Page 18: ...rs formats such as INTELHEX MOTOROLA S TEKHEX ASCII or BINARY and translates these into actionable object code which is stored in the USER RAM Bulletin Board Dataman runs a 24 hour Bulletin Board Service The BBS contains software updates for Dataman products including S3 S4 and Omni Pro There are also useful utilities for downloading Dataman welcomes all uploads to the system and encourages discus...

Page 19: ... onStop When RETURN is pressed the following question will appear What is your First Name You should then enter your first name and press RETURN BULLET What is you Last Name You should now enter your last name and press RETURN If this is your first time on the system you will be asked BULLET The name name was not found in the user database BULLET Is this name spelt correctly If the name is not cor...

Page 20: ... want to make copies of a master PROM into blank PROMS of the same type you must go through four stages BULLET 1 Configure S4 for the PROM type BULLET 2 Load the MASTER PROM into S4 BULLET 3 Test that the new PROMS are blank BULLET 4 Burn the new PROMS Configuring a PROM BULLET 1 Place the MASTER PROM in the socket with the notch at the top If it has less pins than the socket make sure that it is ...

Page 21: ... PROM with tha data you have just loaded into RAM If it matches you will se ther message SAME BULLET 5 Put a fresh PROM that you want to program into the socket If it has a different part number then you must reconfigure BULLET 6 Press TEST S4 will report whether the PROM can be programmed If the message WILL BURN or BLANK PROM appears then all is well BULLET Otherwise you must erase the PROM FLAS...

Page 22: ...PROM KEY PROM If you get a message on this key which says COMPUTER TEXT R SELECT DEVICE R NO LIBRARY LOADED R Then S4 will not program any PROM but 27256 You should load the library COMPUTER TEXT Fujitsu 2716 R 25 00v TO PIN 21 R 50ms SLOW R Alg 02 Ref 0300 To configure S4 to read and program a PROM correctly 1 If you remember the Ref number of the algorithm enter it The number is shown when you s...

Page 23: ...F255B keys to choose the actual device At a remote terminal use X Y SPACE BACKSPACE You have to know the part number and preferrably the program voltage of the PROM if you are unsure get a data sheet from the manufacturer S4 will apply the voltages shown to the PROM in the socket if they are incorrect the device may be damaged If you really must experiment try algorithms which apply the lowest vol...

Page 24: ...ND addresses The purpose is to check whether EPROMS must be erased with UV light prior to programming Bits are erased all high and may only be programmed from high to low The first location which cannot be programmed is reported If a PROM contains locations which are already programmed but the PROM will accept the new program the message WILL BURN is displayed If the PROM is actually blank it cont...

Page 25: ...es first TEST KEY 25 PROM A warning message gives the PROM type To start the PRETEST press the ENTER key The example given will PRETEST a 2764 addresses 00000 to 01FFF to see whether it will correctly program with the contents of USER RAM addresses 08000 to 09FFF ...

Page 26: ...ea if it did the stack would be overwritten in the process and the program would crash Instead the ROM contains pointers which show which code must be moved Each pointer is prefixed by a 42 byte 42 is used to indicate that there is a block to be copied Why 42 Well any byte could be used and 42 has no real significance except to the software engineer who is a Douglas Adams fan The four bytes follow...

Page 27: ...ype baud rate and handshake have separate terminal commands The SETUP routine sets the FILE TYPE RS232 BAUD RATE and HANDSHAKE in that order Use F129M c F255D and F129M d F255D to see and select options It is possible to ESCape at any point but any changes stand the settings do not revert to original values Remember WYSIWIG What You See Is What You Get If you read something in the display then it ...

Page 28: ...0 1200 2400 4800 9600 14400 28800 or 115200 may be chosen COMPUTER TEXT FILE INTEL R BAUD 9600 R AUTO HIT SPACEBAR R HANDSHAKE NONE The F129M c F255D and F129M d F255D keys scroll through the choices and you may use ESCape or ENTER to complete the set up Auto selection of Baud Rate is possible too At this point if your computer is running a COMMS program in terminal mode and is attached to S4 you ...

Page 29: ... the charger is connected and turned on R The charger normally looks after itself and it needs no assistance S4 is powered by a rechargeable battery of 7 nickel cadmium cells providing 8 4 volts 600ma hr Charging is automatic you do not have to turn the charger on or off The charger turns on automatically when the FUEL GAUGE indicates that battery is less than 25 charged You do not have to switch ...

Page 30: ...harges the battery if the FUEL GAUGE shows less than 75 full The charger will replenish the battery in less than an hour There is a temperature sensor in contact with the battery When it sees a 5 198 C rise the charge current turns off Charging is thus perfectly safe and S4 may be used normally whilst being charged The internal circuitry prevents the batteries overcharging While capacity remains t...

Page 31: ... a 5 198 rise S4 does not permit fast charging of batteries which are outside the 5 198 and 45 198 limits because battery manufacturers do not recommend it The Fuel Gauge Across the top of the display is a bar graph showing S4 s estimation of remaining battery capacity This really is an estimation it is not possible to measure charge in a Nicad by looking at its voltage or by any other means S4 ke...

Page 32: ...n of program data and configuration After R that the Lithium cell takes over LIST 1 Viewing 30ma LIST 3 20 hours of editing R 25 less via RS232 LIST 1 Burning LIST 2 180ma LIST 3 3 hours programming the actual number of PROMS varies widely from about 100 oldest type to 1000 latest type LIST 1 Emulating 100ma LIST 3 6 hours emulating depends on amount of access that the target system makes and the ...

Page 33: ...than a trickle of charge which maintains a fully charged battery all the time ILithium Battery Lithium Backup Battery Nickel Cadmium batteries lose capacity by self discharging at a rate of 200 per year according to the manufacturers That means that a fully charged Nicad today will have no charge at all in 6 months time When S4 turns itself off because the battery voltage is low there is less than...

Page 34: ...gative connections can be either way round because there is a bridge in the charging circuit Avoid emulating and charging from a bench supply at the same time There could be a conflict between system grounds IBattery Defective Defective Battery NICAD manufacturers claim that deep cycling meaning full charges and discharges is good for the battery apparently this discourages physical change the for...

Page 35: ... e charged and discharged quickly The symptoms of a defective battery is that it does not reach normal output voltage Nicad cells usually fail by going short If one of the seven Nicads cells is short the battery will charge to temperature cut off but remain below 9 volts because it only has 6 cells instead of 7 The combination of high temperature and low voltage can be observed in the INFO display...

Page 36: ...opied and the destination is defined by the START and END addresses S4 must be configured for the right type of PROM LOADing memory does not apply program voltages or program pulses to the PROM PROMS of the same size and type have different configurations for programming but they can be read by the same procedure If the only difference is the manufacturer and you intend to copy say 27256 PROMS of ...

Page 37: ... actually programming You need not change configuration just to read the originals A warning message gives the PROM type If the ESCape key is pressed the process is aborted If the ENTER key is pressed the process goes ahead The example given will copy a 2764 in the ZIF addresses 00000 to 01FFF to USER RAM addresses 02000 to 03FFF ...

Page 38: ... version of this function is similar to edit except that it works directly on the device in the ZIF socket For economy of code we have used the edit routine You cannot of course change any of the data Terminal Dump Rom DUMP DEVICE START BYTES This is the terminal equivalent to the keypad function It uses a full screen display to show address and data contents starting ...

Page 39: ...f bytes is set to 0 then the dump will continue until the ESCape key is pressed MI Warning computers can take a long time writing data to screen Unlimited dumps may eventually cause the computer s input buffer to overflow and the display to become fragmented especially if the baud rate is high D ...

Page 40: ...128k 256k or 512k bytes When a microsystem has a bus which is 16 bits or 32 bits wide then it will address more than one PROM in parallel But the assembler produces the code in serial fashion with high bytes and low bytes alternating It is possible that S4 will receive serial code and must put every other byte in a different PROM Splitting the code moves the bytes to a contiguous block of memory w...

Page 41: ...DATAMAN S4 MANUAL SPLIT KEY 41 How memory splitting works Insert picture here ...

Page 42: ...t the first and last 0000 and FFFF Using the c and d keys you can also elect to SHUFFLE 128k 256k or 512k bytes If PROMS are to be loaded into USER RAM and the code sent to a remote computer through the RS232 interface in a 16 or 32 bit system it must be combined so that the bytes are successive This can be achieved by loading the different PROMS to different blocks of memory and shuffling SHUFF S...

Page 43: ...lation Discussion Emulation S4 emulates ROM and RAM and may be used to modify or develop code The emulation lead should be plugged into the target system ROM or RAM socket before issuing the emulate command Pin out configuration of EPROMS is automatic Chip Enable and Output Enable signals are implemented correctly for JEDEC 27 series EPROMS This technique is an enhancement of ROM emulation we call...

Page 44: ...ported MI It is a frequent complaint that S4 will not emulate when the user has loaded say a 2764 at location 0E000 0FFFF because that is where it is addressed in his prototype A PROM does not know where it is in addressing space and neither does S4 when emulating because the decoding is in the target system In this particular case it would be necessary to move the code from 0E000 to 00000 before ...

Page 45: ...rocess works very well 8 When successful the program can be transferred to an EPROM immediately How Memory Emulation works The method used is to assemble the program on a computer and download in one of the standard file formats into the emulator The Memory Emulator will do most things that an Microprocessor Development System can do and most MDSs do not have editors and code manipulators which ar...

Page 46: ...ssing space ROM and RAM output their data on the system bus when their address is selected and the microprocessor s READ line becomes true the READ line should be connected to the OUTPUT ENABLE lines of all chips in the system The microprocessor sees no difference between ROM and RAM when reading During a WRITE cycle the READ line stays false and no memory chip can output data on the bus This prev...

Page 47: ...ROBE Systems designed without regard use more current than they need to There is a period of conflict in every cycle in which both the micro and a memory chip are enabled on the bus together and this causes current surges and voltage spikes Some memory parts require longer access times when recovering from such conflict Access time is also worse if the system does not apply CS prior to OE access t...

Page 48: ...diate socket plugged into the EMULead which has the write pin removed Power Usage when Emulating The time out termination is disabled while emulating but the low battery termination still works Emulation places an extra current drain on the battery the actual current depending on the load driven by the data pins and the amount of time the internal memory is enabled 100 milliamps is typical which i...

Page 49: ...iven right to the 5v and 0v rails Drive current taken from the data outputs should be kept to a minimum MI S4 is impedance matched to normal drive conditions e g direct connections to output buffers Emulation may not work if driven with high impedance lines via series resistors for example Emulating 2716 EPROMs Due to a quirk in S4 s hardware 2716 EPROMs must be emulated at address 00800 rather th...

Page 50: ...ameter line START and END are in RAM DEST is in the PROM COMPARE matches all data in the PROM with the contents of the USER RAM between the START and END addresses Locations which do not match are reported If the PROM matches the block exactly the message SAME is displayed S4 must be configured for the right type of PROM A warning message gives the PROM type If the ESCape key is pressed whilst edi...

Page 51: ...e ZIF socket It performs a checksum on all the locations of a ROM in the ZIF socket The CHECKSUM ROM function allows the user to take the checksum of a ROM device without first loading it into RAM thus avoiding over writing USER MEMORY The PROM TYPE as specified in CONFIG is displayed The CHECKSUM is presented the answer as a eight digit hex number A CHECKSUM provides a signature for identifying a...

Page 52: ...as firmware should be marked with its checksum The checksum of the slaves should be taken and matched against the master IKEY SEEK SEEK KEY SEEK COMPUTER TEXT R R SEEK 00123 14567 R 12 34 X3 A5 XX FF ISearching memory Searches through a block of code from START to END for a sequence of up to six bytes Bytes are pairs of hex characters or wild characters which can have any value Wild characters are...

Page 53: ... data MOVE KEY MOVE COMPUTER TEXT R R MOVE R 00000 01FFF 03000 COMMAND MOVE START END DEST IBlocks Moving Move memory block within USER RAM START and END define the block inclusively Blocks can be moved forwards or backwards Overlapping causes no problem The contents of the original block are left unchanged except where the destination block overlaps IKEY SWAP SWAP KEY SWAP COMPUTER TEXT R R R SWA...

Page 54: ...ovided there was no overlapping IKEY BURN BURN KEY BURN COMPUTER TEXT R BURN 27256 R 21 0v to PIN 1 R 04000 05FFF 04000 COMMAND BURN START END DEST See Glossary for the special ways of editing the parameter line BURN programs a PROM in the ZIF with the contents of the USER RAM between the START and END addresses Chip erase is not applied to EEPROMS if they cannot be completely erased i e if less t...

Page 55: ...programming starts the process is aborted at that point To start the BURN cycle press the ENTER key When the cycle is complete the program jumps to COMPARE for verification The example given will program a 27256 in the ZIF addresses 04000 to 05FFF with the contents of USER RAM addresses 04000 to 05FFF The rest of the PROM is ignored during programming and subsequent testing QUICK KEY QUICK COMPUTE...

Page 56: ...gramming time the compare cycle takes just as long as programming MI However for making a few byte changes in a PROM which usually takes a minute or more to program QUICK saves time IKEY FILL FILL KEY FILL COMPUTER TEXT R R FILL R 00000 01FFF AA COMMAND FILL START END BYTE IBlocks Filling with specific byte Fills each byte of memory with hex value BYTE between hex address START and hex address END...

Page 57: ...ifferent utilities to make best use of the LCD and remote terminal Stand alone Editing S4 uses all of the LCD in the edit routine COMPUTER TEXT ADR 01A00 ABCD EFGH R 4142 4344 4546 4748 R 494A 4B4C 4D4E 4F50 R 5152 5354 5556 5758 The top line shows the cursor address which changes when you press one of the four cursor keys or when you enter data On the right of the top line is the current line in ...

Page 58: ...ore columns than the LCD and will look like this COMMAND 00000 42 43 44 45 46 47 48 49 IRS232 Editing The ADDRESS is followed by the DATA in eight memory locations As usual with terminal editing the SPACE BACKSPACE keys move the cursor through the data Hex keys 0 9 and A F will change the data The ADDRESS can be changed by backspacing into the address field When the ENTER key is pressed the ASCII ...

Page 59: ...P RAM DUMPRAM DUMP START BYTES Dump works only via terminal and is similar to EDIT above It dumps 8 bytes per line in HEX with ASCII equivalents Inputs required are START address and number of bytes up to FFH or 255 If 0 bytes then the dump continues until ESCape is pressed IKEY SEND SEND KEY SEND COMPUTER TEXT R R SEND INTEL R 00000 01FFF COMMAND SEND START END Transmits the block from START to E...

Page 60: ...pe key IKEY RCVE RCVE KEY RCVE COMPUTER TEXT R R RECEIVE ASCII R 00123 04567 S4 receives files in INTEL MOTOROLA TEKHEX ASCII or BINARY format as defined in the SETUP routine You are prompted for START and END addresses in ASCII and BINARY only because these transmissions do not contain any destination for the data If the transmission continues after the specified END address the remainder of the ...

Page 61: ... reported together with the address at which the error was detected which is usually the end of the row in which the error occurred When a file is received correctly S4 displays the last address where code was stored MI Before returning to command mode S4 waits until the data input has been inactive for at least one second This is to run out any extra data to avoiding hanging up the sending comput...

Page 62: ...ROM from the code and defaults present in the TPA area MAKELIB lets you make a LIBRARY ROM with your own preferences incorporated The code in the TPA area is moved into USER RAM from 8000 upwards and certain framing information 42 bytes see LIBRARY added All you have to do after MAKELIB is to configure for a 27256 then program it with USER RAM from 08000 TO 0FFFF ILIBRARY ROM Making your own custo...

Page 63: ...OMPUTER TEXT ADVANCED SETUP R Shutdown Time 1E R High Tone 98 R Low Tone AC R Busy Tone 50 R Max Batt Temp AA R Min Batt Temp 64 R Charge Time 0B R Discharge Time 1C R Deep Discharge 40 R Norm Discharge C0 R To adjust advanced SETUP parameters you will need to convert numbers from decimal to hexadecimal BULLET Shutdown Time 1E 30 minutes The audible tones that S4 makes can be changed in pitch or r...

Page 64: ... change battery contents by one ma hr Smaller values will make the apparent rate of charge or discharge faster Values should be adjusted on test if accuracy of the Fuel Gauge is important BULLET Charge time 0B BULLET Discharge time 1C Deep and Normal Discharge govern the automatic operation of the Battery Charger They are set to 25 and 75 on a cold start R The rule is that if a charger is connecte...

Page 65: ...you to press all the keys in sequence left to right top to bottom It cannot be completed until all the keys have been pressed in turn The DESTRUCTIVE RAM TEST fills USER RAM with a Pseudo Random number sequence and then compares it with the same sequence The original contents are lost FUNC BURN Chip Erase FUNCBURN This command will Chip Erase FLASH PROMS FLASH PROMS can be overprogrammed so it is ...

Page 66: ...ng PROM locations which failed to erase FUNC FILL Pseudo Random Fill FUNCFILL COMPUTER TEXT R R PSEUDO RANDOM FILL R 00000 01000 Fills the memory block with a Pseudo Random Number sequence from START to END inclusive Pseudo random numbers are generated by a computer program They are not true random numbers if they were they would always be different and unpredictable Pseudo random numbers are pred...

Page 67: ...NCEDIT COMPUTER TEXT R R EDIT SYSTEM RAM R 08A00 IEditing System The TPA System memory space can be seen and altered using a FUNC version of EDIT System memory space is where the working program is stored when loaded from a LIBRARY ROM in the Transient Program Area which extends from 8000 to FFFF If the FUNC key is pressed from the command prompt the prompt changes from a to a EDIT then works on s...

Page 68: ... ROM MI COMPUTER TEXT ADR 0E000 DATA MAN R 4441 5441 4D41 4E20 R 53B3 0838 3838 0C06 R 0129 1267 0008 85F9 FUNC RCVE Receive Library FUNCRCVE COMPUTER TEXT R R R RECEIVE LIBRARY Receives a new library ROM into the TPA area This command is useful if you download a new library from our Bulletin Board to your computer When you have sent the file to S4 you can make a new LIBRARY ROM with MAKELIB Your ...

Page 69: ...oice shown on the screen QUIET MODE QUIETMODE R Has no keypad equivalent QUIET MODE turns off the RS232 output There is no response on the computer screen until the command is entered again This might be useful for batch file commands which write directly to COM1 etc BAUD RATE BAUDRATE R SET SERIAL PORT 9600 Has no keypad equivalent Sets the baud rate using the SPACE and BACKSPACE keys to show the...

Page 70: ...ou please BULLET 00000 gives a cold start BULLET 0F000 gives a warm start EXECUTE RS232 IRS232 Discussion Serial Interface s4serial The serial RS232 interface uses an IC made by Motorola part number MC145406 which meets RS232 standards of voltage and current on inputs and outputs MI MI Current can be sourced by the outputs into any load on the RS232 interface but it is unlikely that such current w...

Page 71: ...does not indicate the MI actual D transmission speed You can send one byte per fortnight at any baud rate When a computer has reached its limiting speed for processing the data increasing the baud rate will not make it send or receive any faster the gaps between characters will just get bigger Some systems claim high baud rates but they are slow at receiving data files all the same To prevent the ...

Page 72: ...quests data is usually RTS or DTR and you can probe these with a meter to find which one is at a high level If thwy are both high thwn it is likely that DTR is wired at a positive level and RTS is thw active stop go signal It may be possible to manage without any active handshaking but some computers lock up if they do not see thw correct signals The implementation is as follows at switch on S4 lo...

Page 73: ...to work like that and when entering commands and data by hand it causes no problem However in the rare circumstance that you wish to send S4 commands from a batch file which does not wait for results you must make sure that S4 s RTS signal handshakes with your computer to prevent it sending commands faster than S4 can action them When sending files remember that most computers cannot process data ...

Page 74: ...s Record LIST 1 Position LIST 2 Remarks LIST 1 1 LIST 2 ASCII Colon delimiter LIST 1 2 3 LIST 2 02 Byte count LIST 1 4 7 LIST 2 0000 Address not used LIST 1 8 9 LIST 2 02 Record type LIST 1 10 13 LIST 2 Upper Segment Base Address R Top 16 bits of 20 bit address R Most significant byte first R 2 bytes as 4 HEX characters R USBA defaults to 0 if not sent LIST 1 14 15 LIST 2 Checksum complement of al...

Page 75: ...nificant byte first R 2 bytes or 4 HEX characters R Must be added to USBA to form R 20 bit address LIST 1 8 9 LIST 2 01 Data Record LIST 1 10 N LIST 2 Data bytes in hexadecimal R Each byte is two HEX characters LIST 1 N 1 2 LIST 2 Checksum complement of all bytes except colon linefeed and return R This makes the line add up to zero LIST 1 N 3 4 LIST 2 Carriage return and line feed LIST 2 End of Fi...

Page 76: ... 12 13 LIST 2 Carriage return and line feed MOTOROLA S IFile Formats Motorola Format IMOTOROLA File Format A Motorola Exorciser or S Format file can be examined using a text editor and printed R Each record is a single line of ASCII characters expressing bytes as hexadecimal pairs terminated with Carriage return and Linefeed 0D 0A All records start with an S R The transmission is terminated by ASC...

Page 77: ...ers Most Significant Byte first LIST 1 9 N LIST 2 Data bytes in hexadecimal R each byte is two HEX characters LIST 1 N 1 2 LIST 2 Negation of checksum of bytes R excluding S1 R Makes the line add up to FF LIST 1 N 3 4 LIST 2 Carriage Return Line Feed LIST 2 S2 Data with 3 Byte Address LIST 1 Position Character LIST 1 1 2 LIST 2 S2 LIST 1 3 4 LIST 2 Record length R Number of data bytes plus 4 R 3 f...

Page 78: ...End of File Record LIST 1 Position Character LIST 1 1 2 LIST 2 S8 LIST 1 3 4 LIST 2 04 Record length LIST 1 5 10 LIST 2 3 byte start address usually 000000 LIST 1 11 12 LIST 2 Negation of checksum of bytes R excluding S8 R Makes the line add up to FF LIST 1 13 14 LIST 2 Carriage Return Line Feed S9 End of File Record LIST 1 Position Character LIST 1 1 2 LIST 2 S9 LIST 1 3 4 LIST 2 03 Record length...

Page 79: ... expressing bytes as hexadecimal pairs terminated with Carriage return and Linefeed 0D 0A R The transmission is terminated by ASCII End of File 1A Tek Standard Data Record LIST 1 Position LIST 2 Character LIST 1 1 LIST 2 Slash character LIST 1 2 5 LIST 2 Four HEX characters show two byte Load Address most significant byte first LIST 1 6 7 LIST 2 Two HEX characters show Byte Count how many Data Byt...

Page 80: ...2 Character LIST 1 1 LIST 2 Slash character LIST 1 2 3 LIST 2 Four HEX characters show two byte Start Address most significant byte first LIST 1 6 7 LIST 2 00 Byte count LIST 1 9 10 LIST 2 Two HEX characters show checksum of all previous HEX characters not including LIST 1 11 12 LIST 2 Carriage Return Line Feed Tek Extended Data Record LIST 1 Position LIST 2 Character LIST 1 1 LIST 2 Percentage ch...

Page 81: ... Data bytes each byte is two HEX characters LIST 1 M 1 2 LIST 2 Carriage Return Line Feed LIST 1 Position LIST 2 Character LIST 1 1 LIST 2 Percentage character LIST 1 2 3 LIST 2 Two HEX characters expressing character count in record R not including LIST 1 4 LIST 2 8 for EOF record LIST 1 5 6 LIST 2 Two HEX characters expressing checksum of all HEX characters except LIST 1 7 N LIST 2 Between 2 and...

Page 82: ... checksums After 32 bytes or 64 characters a LINEFEED and CARRIAGE RETURN are sent 0D 0A which enables the transmission to be received by a serial printer ora terminal At the end of the transmission an End of File character 1A is sent ASCII is normally sent and received as an 8 bit transmission The MSB is masked low when receiving placed low when sending When receiving S4 asks for START and END ad...

Page 83: ...t it When receiving a block in BINARY format S4 has no way of knowing when the computer has finished sending You must press ESCape when the transmission is ended MI NOTE Computers will not send a BINARY file through their serial interface using PIP or COPY routines unless you add a suffix COPY needs B PIP needs O Otherwise the transmission is aborted if an end of file 1A character is seen D BINARY...

Page 84: ...DATAMAN S4 MANUAL 84 ...

Reviews: