Advertisement

Quick Links

LP130
USER'S MANUAL
2021.07.10
Lucid Technologies
http://www.lucidtechnologies.info
info@lucidtechnologies.info
Copyright © 1996-2021 by Lucid Technologies
All rights reserved.
The information in this manual has been carefully checked and is believed to be accurate.
However, Lucid Technologies makes no warranty for the use of its products and assumes no
responsibility for any errors which may appear in this document. Lucid Technologies reserves the
right to make changes in the products contained in this manual in order to improve design or
performance and to supply the best possible product. Lucid Technologies assumes no liability
arising out of the application or use of any product or circuit described herein; neither does it
convey any license under its patent rights, nor the rights of others.
©
Lucid Technologies
1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the LP130 and is the answer not in the manual?

Questions and answers

Summary of Contents for Lucid Technologies LP130

  • Page 1 The information in this manual has been carefully checked and is believed to be accurate. However, Lucid Technologies makes no warranty for the use of its products and assumes no responsibility for any errors which may appear in this document. Lucid Technologies reserves the right to make changes in the products contained in this manual in order to improve design or performance and to supply the best possible product.
  • Page 2: Table Of Contents

    3.3.4 [T]est static RAM 3.3.5 [C]alibrate Vpp and Vps 4.0 Designing Programming-modules and writing drivers 4.1 Power control 4.2 Programming-modules 4.3 LP130 device driver software 4.3.1 Memory Utilization 4.3.2 Uploading Drivers 4.3.3 Initial Conditions 4.3.4 LP130 software Toolbox Appendix A...
  • Page 3: General Information

    ASCII file transfer. 1.2 Theory of operation The LP130 is an 8-bit microprocessor system with its own RAM, EPROM, and I/O. The LP130 uses a 68HC11 type CPU. Its operating program starts whenever power is applied. All communication with the host system is via a serial port, via either a hardwired RS-232 connection (Appendix B) or wirelessly through the optional HC-06 bluetooth module (Appendix C).
  • Page 4: Hardware Description

    LP130 Users Manual 8 data bits No parity 1 stop bit RS-232 Female, 9-pin, D connector Selectable baud rates: 4800, 9600, 19200, 38400 Bluetooth via HC-06 module 9600 baud only 2.0 Hardware description Page 1 of the schematics (Appendix F) shows the memory and DAC (digital to analog converter).
  • Page 5: Operation

    The BAUD jumper sets the RS-232 baud rate. Available baud rates are, from bottom to top: 4800, 9600, 19200 and 38400. If there is no BAUD jumper the LP130 will default to 9600 baud. The image at the right shows the correct jumper placement for 9600 baud.
  • Page 6: Designing Programming-Modules And Writing Drivers

    3.3.3 [D]isplay system memory This option is included as a debugging aid for those users who write their own driver programs for the LP130. The following submenu will be displayed which allows you to look at any portion of the LP130 memory space.
  • Page 7: Programming-Modules

    LP130 Users Manual the programming-module, PMVcc. PMVcc should be used to power 5V components on the programming-module other than the device being programmed. The maximum drain on PMVcc is 100 milliamps. When PMVcc is off it is floating. Port A, bit 4, on the 68HC11 is the SWVFW signal. When low, SWVFW switches the unregulated full-wave rectified voltage to the programming-module, PMVfw.
  • Page 8: Lp130 Device Driver Software

    2) The addresses of the LP130 software toolbox routines do not match those of the LP120. If the source code for an LP120 driver is updated with the proper 68HC11 registers and toolbox addresses it can be assembled for the LP130. Drivers for the LP130 should use a ‘D13' extension - *.D13.
  • Page 9: Uploading Drivers

    At the end of a successful upload one of two things will happen: 1) If the driver's S9-record has an address of $0000, control will return to the LP130 main menu. From the main menu you can start your driver by selecting the [J]ump to $0100 option, assuming your driver follows the normal conventions.
  • Page 10 Lucid programmers use the 8-bit data types, the S1 and S9: • A header record contains no program information and is ignored by the LP130. • A record containing data and the 2-byte address at which the data is to reside.
  • Page 11 LP130 Users Manual • A termination record for a file of S1-records. Only one S9-record is allowed per file and it must be the last line of the file. The address field for directly executable code may optionally contain the 2-byte address of the instruction to which control is to be passed.
  • Page 12 LP130 Users Manual APPENDIX B RS-232 INTERFACE CONNECTOR The table below shows the most commonly implemented signals and their pin assignments in accordance with RS-232D. Host computers are usually DTE (Data Terminal Equipment) and modems are DCE (Data Communications Equipment). Note that circuits are named from the point of view of the DTE.
  • Page 13 LP130 Users Manual All Lucid Technologies programmers are designed as DCE devices. They use a 9 pin, female, D connector that is directly compatible with 9 pin COM ports found on most IBM compatibles. The pin assignments for this connector are shown below.
  • Page 14 The BT (Bluetooth) jumper should be present and the HC-06 inserted in J2 before power up. When the LP130 sees the BT jumper at power up it defaults to 9600 baud and assigns the name “LP130" to the HC-06. Thus, when you look for Bluetooth connections on your computer, you should see “LP130".
  • Page 15 LP130 Users Manual Appendix D LP130 Programming Module Connector Pin# Pin# PMVFW PMVCC MISO (SPI) MOSI (SPI) P0A0 P0A1 P0A2 P0A3 P0A4 P0A5 P0A6 P0A7 P0B0 P0B1 P0B2 P0B3 P0B4 P0B5 P0B6 P0B7 SCK (SPI) P1A0 P1A1 P1A2 P1A3 P1A4...
  • Page 16 LP130 Users Manual APPENDIX E LP130 PARTS LIST Quan. Reference Part -------------------------------------------------------------------------------------------------- Semiconductors D1,D2 1N5819, 40V Schottky diode 1N5818, 30V Schottky diode 2N2907A, TO-92, PNP 2N3906, TO-92, PNP 2N3904, TO-92, NPN Q4,Q5 TIP30, TO-220, PNP MC68HC11A0P, microcomputer 74HCT573, octal transparent latch...
  • Page 17 LP130 Users Manual R12,R23 3.3k (orange-orange-red-gold) R13,R15 180, 0.5W (brown-gray-brown-gold) (red-violet-orange-gold) 4.7k (yellow-violet-red-gold) 2.7k (red-violet-red-gold) 3.0k (orange-black-red-gold) (brown-black-orange-gold) R40,R41 1.1k (Brown-brown-red-gold) RN1,RN2 10k, SIP-10, pin 1 common RN3,RN4 10k, SIP-8, pin 1 common Sockets DIP-24, 600 mil U2,U6 DIP-20, 300 mil...
  • Page 18 LP130 Users Manual APPENDIX F LP130 ASSEMBLY CHECKLIST Insert and solder the low-profile sockets. Do not put the chips in the sockets. _____ U1 Use two 24-pin DIP sockets for U1 _____ U2 20-pin DIP socket _____ U3 28-pin DIP socket, 0.3 or 0.6 inch wide - depends on memory chip...
  • Page 19 LP130 Users Manual _____ U9 0.1 uFd, 35V, radial, between outer pins of U9 _____ C15 560 pFd, 35V, NPO, radial _____ C16 680 pFd, 35V, NPO, radial _____ C18,C19 100 uFd, 50V radial electrolytic, square pad is + _____ C20-C43 1 uFd, 35V radial, eight capacitors Insert and solder the following semiconductors.
  • Page 20 LP130 Users Manual APPENDIX G LP130 schematics © Lucid Technologies...
  • Page 21 LP130 Users Manual © Lucid Technologies...
  • Page 22 LP130 Users Manual © Lucid Technologies...
  • Page 23 LP130 Users Manual © Lucid Technologies...
  • Page 24 LP130 Users Manual © Lucid Technologies...
  • Page 25 LP130 Users Manual © Lucid Technologies...
  • Page 26 LP130 Users Manual APPENDIX H LP130 circuit board © Lucid Technologies...
  • Page 27 LP130 Users Manual © Lucid Technologies...
  • Page 28 LP130 Users Manual Appendix I Internet Resources Freeware 68HC11 cross-assemblers https://www.mgtek.com/miniide/ https://www.gnu.org/software/m68hc11/ Object file translator and tools https://lucidtechnologies.info/software.htm Tera Term https://en.wikipedia.org/wiki/Tera_Term https://ttssh2.osdn.jp/index.html.en Appendix J © Lucid Technologies...
  • Page 29 LP130 Users Manual LP130 Toolbox definitions Description Syntax SUBROUTINE: [Name.] PRELOAD: [Any data that must be loaded into registers prior to calling will be explained here.] ACTIONS: [The subroutine's actions in the order performed.] REGISTERS: [The state of registers returned by the subroutine.
  • Page 30 LP130 Users Manual SUBROUTINE: ADRMOT PRELOAD: None ACTIONS: Return address pointer to the S-record data. REGISTERS: A=NC, B=NC, X=address of STYPE, Y=NC ERROR FLAG: None NOTES: Data is stored in the following order and format: STYPE RMB 1 *record type, 1 or 9,...
  • Page 31 LP130 Users Manual SUBROUTINE: BCD16 PRELOAD: D=unsigned binary value ACTIONS: Convert 16-bit binary value in D to five BCD nibbles. REGISTERS: A=?, B=NC, X=?, Y=? ERROR FLAG: None NOTES: Use ADRBCD to get the address of the BCD data. SUBROUTINE:...
  • Page 32 LP130 Users Manual SUBROUTINE: DMPNW PRELOAD: Y=first data address, A=number of words to display (N) ACTIONS: Display one line of N words; first as N 4-character HEX values then as N ASCII characters followed by CR/LF. REGISTERS: A=?, B=NC, X=?, Y=?
  • Page 33 A=uppercase ASCII character, B=NC, X=NC, Y=NC ERROR FLAG: None NOTES: None SUBROUTINE: LEDBLK PRELOAD: None ACTIONS: Blink the LED on the LP130 board; 1/4 second on, 1/4 second off. REGISTERS: A=?, B=NC, X=?, Y=NC ERROR FLAG: None NOTES: None SUBROUTINE: LEDOFF PRELOAD:...
  • Page 34 LP130 Users Manual SUBROUTINE: LEDON PRELOAD: None ACTIONS: Turn the LED on the LP130 board on. REGISTERS: A=NC, B=NC, X=NC, Y=NC ERROR FLAG: None NOTES: None SUBROUTINE: MSGOUT PRELOAD: X=starting address of ASCII character string ACTIONS: Transmit ASCII character string via SCI. Special characters: A tilde (~) is transmitted as a carriage-return/line-feed sequence.
  • Page 35 LP130 Users Manual SUBROUTINE: PIAOFF PRELOAD: None ACTIONS: Make all PIA lines outputs, set all PIA outputs to 0 (including CA2 and CB2), return with PIA data registers selected. REGISTERS: A=?, B=NC, X=NC ERROR FLAG: None NOTES: Called when done interfacing with programming-module.
  • Page 36 LP130 Users Manual ERROR FLAG: C=1 if a non-hex ASCII character is entered. NOTES: This allows the user to enter any byte value. SUBROUTINE: RX1HEX PRELOAD: A=ASCII character for most significant hex nibble of byte. ACTIONS: Receive 1 ASCII-hex characters from the host, convert this to a hexadecimal byte with the preloaded value in A as the MS-nibble, return the received byte in B.
  • Page 37 LP130 Users Manual SUBROUTINE: RXWAIT PRELOAD: None ACTIONS: Wait for data coming in via SCI to end. End is defined as 1.0 seconds with no receive activity. REGISTERS: A=?, B=NC, X=0, Y=NC ERROR FLAG: None NOTES: Use this if an error is detected in a long upload that makes the rest of the upload unusable.
  • Page 38 LP130 Users Manual SUBROUTINE: SPRD16 PRELOAD: X=destination address Lower SPI memory chip-select and send read instruction before calling. ACTIONS: Read 16 bytes of data from the SPI memory and store them at X, X+1,,, X+15. REGISTERS: A=?, B=NC, X=?, Y=NC...
  • Page 39 LP130 Users Manual SUBROUTINE: SPWRHD PRELOAD: A=SPI memory instruction, SPI memory address (SPIADR) Lower SPI memory chip-select before calling. ACTIONS: Write SPI memory instruction header (instruction byte and 24-bit address) to selected SPI memory chip. REGISTERS: A=?, B=NC, X=NC, Y=NC...
  • Page 40 LP130 Users Manual If an error is found a specific message will be displayed on the host. The data from the HEX-record is stored in LP130 reserved RAM, see ADRHEX for details. SUBROUTINE: UPMOT PRELOAD: None ACTIONS: Upload a Motorola S-record from the host, confirm the checksum, and return.
  • Page 41 Branch to the LP130 main menu. NOTES: This jump can be used as a debugging aid for uploaded drivers. This jump leaves RAM intact so it can then be examined using the display system memory option from the LP130 main menu. JUMP: RESET PRELOAD:...
  • Page 42 LP130 Users Manual Appendix K LP130 Toolbox equates for driver source files *LP130 TOOLBOX EQUATES - 2020.10.28 ------------------------- RESET $FD80 ;JMP HERE TO TERMINATE DRIVER EXITMM $FD84 ;JMP HERE FOR LP130 MAIN MENU ADRBCD $FD88 ;JSR ADRHEX $FD8C ;JSR ADRMOT $FD90 ;JSR...
  • Page 43 LP130 Users Manual SCITX $FE20 ;JSR SPICLR $FE24 ;JSR SPRD16 $FE28 ;JSR SPRDNB $FE2C ;JSR SPRDMR $FE30 ;JSR SPWR16 $FE34 ;JSR SPWRNB $FE38 ;JSR SPWRHD $FE3C ;JSR TX2ASC $FE40 ;JSR TX4ASC $FE44 ;JSR TX8BIN $FE48 ;JSR UPHEX $FE4C ;JSR UPMOT $FE50 ;JSR...
  • Page 44 LP130 Users Manual Appendix L LP130 driver template * LP130 DRIVER TEMPLATE - 2020.12.06 *68HC11A0 MPUs USED IN EXPANDED MULTIPLEXED MODE. MODA=MODB=1. * BY DEFAULT, CONFIG REGISTER = $0C. THIS MEANS COP DISABLED, * ON-CHIP ROM DISABLED, ON-CHIP EEPROM DISABLED.
  • Page 45 LP130 Users Manual BAUD ; SCI Baud Rate Control SCCR1 ; SCI Control Register 1 SCCR2 ; SCI Control Register 2 SCSR ; SCI Status Register SCDR ; SCI Data Register ADCTL ; A/D Control Register ADR1 ; A/D Result Register 1 ADR2 ;...
  • Page 46 LP130 Users Manual *PORT C * PC0-7 = AD0-7, PINS 31-38 MULTIPLEXED DATA AND LOW ADDRESS *PORT D * PD0 SCI, RX DATA INPUT PULLUP * PD1 SCI, TX DATA OUTPUT PULLUP * PD2 SPI, MASTER-IN-SLAVE-OUT INPUT PULLUP * PD3...
  • Page 47 ;ESCAPE SPACE ;SPACE CHARACTER *SERIAL MEMORY ------------------------------------------------ * THE LP130 HAS PROVISIONS FOR TWO SERIAL MEMORY CHIPS. THE * SOCKETS ARE COMPATIBLE WITH BOTH SERIAL RAM (23LCXXXX) AND * SERIAL EEPROM (25LCXXXX). *SERIAL MEMORY-1 (SMEM1) <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< * SMEM1 CHIP SELECT IS PORTA-6.
  • Page 48 *SEND MESSAGE_01 TO THE HOST *This Jump to SubRoutine line calls the toolbox routine MSGOUT. RESET *This line causes control to jump back to the LP130 firmware. *THE "HELLO WORLD!" MESSAGE *The first line will generate the ASCII characters for the *data between the single-quotes.

Table of Contents