Silicon ChipDriving An LCD From The Parallel Port - December 2000 SILICON CHIP
  1. Outer Front Cover
  2. Contents
  3. Publisher's Letter: Australia can do well in the new economy
  4. Feature: Home Networking For Shared Internet Access by Greg Swain
  5. Project: Build A Bright-White LED Torch by John Clarke
  6. Review: Agilent 54622D Mixed Signal Oscilloscope by Leo Simpson
  7. Project: 2-Channel Guitar Preamplifier, Pt.2: Digital Reverb by John Clarke
  8. Project: Driving An LCD From The Parallel Port by Peter Crowcroft & Frank Crivelli
  9. Serviceman's Log: History, Symptoms & oberservations by The TV Serviceman
  10. Order Form
  11. Project: A Morse Clock - Look Mum, No Hands! by Leon Williams
  12. Project: Protoboards: The Easy Way Into Electronics, Pt.4 by Leo Simpson
  13. Vintage Radio: The AWA 467MA: an ideal first restoration by Rodney Champness
  14. Product Showcase
  15. Notes & Errata
  16. Book Store
  17. Feature: Index to Volume 13: January-December 2000
  18. Market Centre
  19. Advertising Index
  20. Outer Back Cover

This is only a preview of the December 2000 issue of Silicon Chip.

You can view 33 of the 96 pages in the full issue, including the advertisments.

For full access, purchase the issue for $10.00 or subscribe for access to the latest issues.

Items relevant to "Build A Bright-White LED Torch":
  • Bright White LED Torch PCB pattern (PDF download) [11112001] (Free)
Items relevant to "2-Channel Guitar Preamplifier, Pt.2: Digital Reverb":
  • 2-Channel Guitar Preamplifier PCB patterns (PDF download) [01111001/2] (Free)
  • Digital Reverb PCB pattern (PDF download) [01112001] (Free)
  • 2-Channel Guitar Preamplifier panel artwork (PDF download) (Free)
Articles in this series:
  • 2-Channel Guitar Preamplifier (November 2000)
  • 2-Channel Guitar Preamplifier (November 2000)
  • 2-Channel Guitar Preamplifier, Pt.2: Digital Reverb (December 2000)
  • 2-Channel Guitar Preamplifier, Pt.2: Digital Reverb (December 2000)
  • Digital Reverb - The Missing Pages (January 2001)
  • Digital Reverb - The Missing Pages (January 2001)
  • 2-Channel Guitar Preamplifier, Pt.3 (January 2001)
  • 2-Channel Guitar Preamplifier, Pt.3 (January 2001)
Items relevant to "Driving An LCD From The Parallel Port":
  • DOS software for the PC Parallel Port LCD and Thermometer (Free)
  • PC Parallel Port LCD and Thermometer PCB pattern (PDF download) [K134] (Free)
Items relevant to "A Morse Clock - Look Mum, No Hands!":
  • PIC16F84(A)-04/P programmed for the Morse Clock [MORSECLK.HEX] (Programmed Microcontroller, AUD $10.00)
  • PIC16F84 firmware and source code for the Morse Clock [MORSECLK.HEX] (Software, Free)
  • Morse Clock PCB pattern (PDF download) (Free)
  • Morse Clock panel artwork (PDF download) (Free)
Articles in this series:
  • Protoboards: The Easy Way Into Electronics, Pt.1 (September 2000)
  • Protoboards: The Easy Way Into Electronics, Pt.1 (September 2000)
  • Protoboards: The Easy Way Into Electronics, Pt.2 (October 2000)
  • Protoboards: The Easy Way Into Electronics, Pt.2 (October 2000)
  • Protoboards: The Easy Way Into Electronics, Pt.3 (November 2000)
  • Protoboards: The Easy Way Into Electronics, Pt.3 (November 2000)
  • Protoboards: The Easy Way Into Electronics, Pt.4 (December 2000)
  • Protoboards: The Easy Way Into Electronics, Pt.4 (December 2000)

Purchase a printed copy of this issue for $10.00.

abc LCD PC LPT ON Via PORT Liquid Crystal Displays are used everywhere these days. But how do they work? We’ll show you how to drive an LCD from your PC keyboard. Then we show how to use the LCD to display and program a temperature/thermostat chip. It’s a great project for beginners, especially if you want to understand more about your computer. By Peter Crowcroft and Frank Crivelli Y ou’ll find LCDs, or liquid crystal displays, in a huge variety of appliances, consumer electronics and so on. Usually driven by a microcontroller, they’ve become very popular over recent years for information transfer and instructions and (usually!) make complicated equipment easier to operate. But how do you get the message you want onto the LCD screen? It’s not difficult, as this simple project shows. Circuit description The circuit (Fig.1) is quite straight­ forward. In fact, most of the “work” is undertaken by the large integrated circuit hidden under the black blob on the rear of the LCD module PC board. All we have to do is provide that module with the appropriate ASCII codes and these come from your com­ puter’s LPT1, or parallel, port. The project could have been as sim­ ple as that but we’ve gone one step fur­ ther and added a temperature control chip, the DS1620, which we can use to make a simple but effective thermo­ stat/thermometer in conjunction with the LCD module. The remainder of the circuitry is mainly power supply – and even that is very simple. Power is supplied from a 12V DC plugpack, with diode D2 protecting against reverse polarity on the DC input jack (centre pin is positive). Due to the low current requirements of the kit, only a small (TO-92 pack) 5V regulator is required. Resistors R2 and R3 hold the DS1620 CLK and RST inputs low when the kit is disconnected from the PC. This allows the chip to work in “stand-alone” mode. Resistor R1 and diode D1 convert the separate data input and output lines from the PC to the single bidi­ rectional data line on the DS1620. When writing to the chip, R1 pulls DQ high when pin14 of the parallel port (AUTO) is high. DQ is pulled low via D1 when AUTO is low. When reading from the DS1620, AUTO must be set high first. This high is blocked by D1 so that the DQ output can drive pin 10 of LPT1 (ACK). The liquid crystal display LCDs come in many shapes and December 2000  53 Front view of the pre-built Liquid Crystal Display (LCD) module used in this project. It has 2 lines of 16 characters. All these pics are shown same size. sizes but amongst the most common is the type we have used in this project, a 16 character x 2 line display. It requires only 11 connections – eight bits for data (which can be reduced to four if necessary) and three control lines (we have only used two here). This particular display, an MC162-2, runs from a 5V DC supply and The same module viewed from the rear. Under that big black blob is a chip which does all of the work in driving the display. All you have to do is talk to it! only needs about 1mA. The display contrast can be varied by changing the voltage into pin 3 of the display, usually with a trimpot. The display requires eight bits of data, a register select line (RS) and a strobe line (E), which are supplied from Here’s what you get in the kit. On top is the preassembled LCD module, with the main PC board underneath. The software is on the 3.5-inch floppy while all the components are separately packed in plastic. Inset at top is the kit as supplied. 54  Silicon Chip the PC printer port. A third input, read/write (R/W), is normally used to read or write data to and from the LCD. In this kit the R/W line is tied low so only “writes” to the LCD are possible (more on this later). The eight bits of data are supplied from the printer port data lines and two printer port con­ trol lines are used for RS (‘auto’) and E (‘strobe’). Basically the LCD has two registers – a data register and a control register. Data is written into the control register when RS is low and into the data register when RS is high. Data is latched into the LCD register on the falling edge of ‘Enable’. The sequence for writing data to the LCD is: 1. To begin, E is low 2. Select the register to write to by setting RS high (data) or low (control) 3. Write the eight bits of data to the LCD 4. Set the Enable signal high then low again. There are certain minimum timing requirements that must be followed when writing to the LCD, such as data setup times and Enable signal pulse width. These are in the order of tens and hundreds of nanoseconds. Extra timing delays are also intro­ duced by the capacitance of the cable used to connect to the PC printer port. Delay routines may be needed when using fast PCs to meet these timing requirements. The software supplied includes these delay routines. LCD displays have a ‘busy’ flag that is set while it is executing a control command but in our case this flag is not accessible because the R/W line has been tied low (write). This is not such a problem because all commands have a maximum execution time. We simply wait for Unlike the LCD module, you have to assemble this PC board yourself. But as you can see, there’s not much to it. The most difficult bit is the D-25 socket at the bottom. this time to pass before accessing the LCD again, eliminating the need to check the flag and thereby saving on an I/O line! For example, the ‘Clear Display’ command has an execution time of approx. 1.6ms. After sending this command to the LCD we simply wait 2ms before continuing on. This en­ sures that the command has finished. Characters to be displayed are written into the LCD’s ‘data’ memory (RAM). The amount of RAM available de­ pends on the type of LCD. The LCD used in this kit has 80 bytes of RAM. An internal address counter holds the address of the next byte to write to. These 80 bytes are broken up into two blocks of 40 bytes. The address range of the first block is from 00H to 27H and the second block from 40H to 67H. After power up and initialisation, address 00H is the first character of the top line and address 40h is the first character of the bottom line. The address counter is set to address 00H and is automatically incremented after each byte is written. If we now start writing data to the LCD, it will be stored from address 00H on but only the first 16 characters will be visible. To display the rest of the characters we need to ‘scroll’ the display. Scrolling simply means changing the start address of each line. If we scroll left one position, address 01H becomes the first character of the top And here it is with the LCD module plugged in and running. Perhaps you’re wondering “how did they get a message on the screen when nothing is plugged in...?” Fig.1: the circuit is quite simple – just a 5V regulated power supply, a DS1620 thermometer chip and the LCD. The LCD and DS1620 are controlled via the parallel port of a PC. December 2000  55 pcb overlay line and address 41H the first charac­ ter of the bottom line. Scrolling right does the opposite – addresses 27H and 67H become the first characters of the top and bottom lines. As you can see, each block of ad­ dresses ‘wrap’ around in a circular manner. The next address after 27H is 00H; the next address after 67H is 40H. If we scroll left 40 times we will bring address 00H back into view as the last character on the top line. The address ranges of each block are not continuous. There is a gap of 24 bytes between the end of the first block (27H) and the start of the second (40H). So if we keep writing characters to the display, the first 40 will be stored in addresses 00H to 27H, the next 24 will be ‘lost’ and the next 40 will be stored at addresses 40H to 67H. The internal address counter is directly accessible so we can set the next address to write to. This is how the characters are written to the second line of the LCD. For example, we can send 5 characters to the first line, set the address counter to 40H and then start writing characters to the second line. The DS1620 chip The DS1620 is a Digital Ther­ mometer/Thermostat IC from Dallas Semiconductor. It measures temper­ atures from -55°C to +125°C (-67°F to +257°F) in 0.5°C increments and has 56  Silicon Chip Fig.2: there’s not much to assemble on the PC board. Just take care with component polarities – and don’t mix up diodes D1 and D2! Also note that the X3 “GND” and “V+” printed labels on the PC board were back to front on early boards: what is shown here is correct. three “alarm” outputs. It requires no calibration or external components. (If you want to know more about this chip you can download the data sheet from www.dalsemi.com). The three alarm outputs, designated THIGH, TLOW and TCOM function as follows: ·THIGH goes high when the meas­ ured temperature is greater than or equal to a user-defined upper limit (TH). ·TLOW goes high when the measured temperature is less than or equal to a user-defined lower limit (TL). ·TCOM goes high when the tempera­ ture exceeds the upper limit and stays high until the temperature falls below the lower limit. These three outputs can be used to directly control heating and cooling appliances via suitable drive circuitry (eg, relays and optocouplers). Data is read from and written to the DS1620 via a 3-wire serial interface (DQ, CLK and RST). The user-defined upper and lower trip points are stored in the IC in non-volatile memory. This means that the trip points are ‘remembered’ even when the power is removed. The DS1620 can be used in two modes – Three-Wire mode for in­ terface to a computer or Standalone mode. This last mode does not require a computer interface. With RST and CLK low, the chip will continuously monitor the temperature and set the alarm outputs accordingly. This means that once you have programmed the upper and lower trip points the kit can be disconnected from the PC and you can use the alarm outputs for monitoring or control functions. You can even remove the chip from its socket and put it in your own temperature controller, using the kit simply as a DS1620 programmer. Temperature registers in the DS1620 are nine bits long and can be positive or negative values. Each reading has a resolution of 0.5° C. For positive temperatures, the most significant bit (bit 8) = 0 and bits 1-7 hold the integer value. Bit 0, if set, adds 0.5°. For negative temperatures, bit 8 = 1 and bits 7-0 represent the two’s complement of the temperature. To get the actual value, invert bits 7-0 then add 1. The DS1620 is controlled via a set of 8-bit instructions. Depending on the instruction, an 8 or 9-bit data value is either read from or written to the chip. All instructions and data are transferred serially starting with the least significant bit D0. To read or write a value to the DS1620: 1. To begin, RST is low and CLK high. 2. RST high 3. CLK low 4. Set DQ equal to bit 0 of instruction 5. CLK high 6. Repeat steps 3, 4 and 5 for    remaining instruction bits To write to the chip: 7. Repeat steps 3, 4 and 5 for bits 0-7 or 0-8 of the data to be written 8. RST low for at least 5ms To read from the chip do Steps 1 through 6 above then: 7. Set the AUTO signal high so that data can be read from the DS1620 8. CLK low. DQ now outputs the data to be read (LSB first) 9. Read and store DQ 10. CLK high 11. Repeat steps 8, 9 and 10 for the remaining bits of data to be read 12. RST low As with the LCD, certain mini­ mum timing requirements must be observed between each of these steps. In particular, RST must remain low for at least 5ms after writing data to the DS1620 (step 8). This gives the chip’s internal EEPROM time to store the data. Also, the DS1620 needs one second to execute a ‘start-convert’ presence of parallel ports in order, according to Table 1. The first port found becomes LPT1, the second LPT2, and so on. The BIOS stores the base address of each port found in a table in the BIOS variable segment of memory, as follows: Table 3 -- LPT Base Addresses Here’s how the LCD module mounts to the main PC board. The back of the module has a 16-way header pin set which mates with a 14-way socket on the board. instruction. So, after starting a tem­ perature conversion, you must wait 1 second before reading the result. The PC parallel port There are three common address ranges used for parallel port interfac­ es, as follows: Table 1 -- Parallel Port Addresses 3BCh - 3BFh 378h - 37Fh 278h - 27Fh Parallel interface on monochrome or TTL video card Parallel interface 1 (LPT1) Parallel interface 2 (LPT2) The standard PC parallel port con­ sists of three registers, each referred to by their functional name. These registers occupy the first three ad­ dresses in the range. The first address in the range is referred to as the base address. Table 2 -- Base Registers Data register Base address Read/Write Status register Base address + 1 Read only Control register Base address + 2 Read/Write For example, for parallel interface 1, the data register would be at address 378H, status register at address 379H and control register at address 37AH. Note that the data and control registers can be written to and read from. This does not mean that they are bidirectional. It means that the outputs of these registers can be read back to check their status. During the system boot-up se­ quence, the BIOS tests for the ADDRESS 0040:0008H CONTENTS Base address of LPT1 0040:000AH 0040:000CH Base address of LPT2 Base address of LPT3 0040:000EH Base address of LPT4 (If address=0 then there is no port for that LPT number.) Every signal line on the port, whether it is used for read/input or write/output, is allocated one particu­ lar bit at one of the three addresses Base, Base+1 or Base+2. The logic state of the bit indicates the state of the wire (0V or 5V.) The following table shows each printer port sig­ nal used by the kit and the register, address and bit position associated with it. The last three signal names are preceded by a minus sign. This means that the signal is active low. Writing a high to the bit causes the signal to go low. Table 4 -- Signal Line Attributes Signal D0 D7 ACK -STROBE -AUTO INIT -SLCTIN Reg. Data Status Control Control Control Control Addr. Bit Direction Base 0 - 7 Base+1 6 Base+2 0 Base+2 1 Base+2 2 Base+2 3 Output Input Output Output Output Output Construction There aren’t very many components to place on the PC board so chances of errors aren’t high – another feature which makes this a great project for be­ ginners. On the negative side, though, your soldering skills will be tested! ­As with all projects, before placing or soldering components, check the PC board for obvious defects – bridg­ es or shorts between tracks which shouldn’t be there, broken tracks, etc. Start with the lowest profile compo­ nents – the resistors and the wire link (use a resistor offcut for this). The two diodes are next but take care that you not only get them in the right places Parts List – LCD Interface 1 PC board, K134, 83 x 71mm 1 Liquid Crystal Display module, 16 x 2 characters 1 2.5mm DC jack, PCB mounting (X2) 1 D25 male connector, rightangle PCB mounting (X1) 1 5-pin SIL header (X3) 1 8-pin IC socket for IC1 1 14-pin SIL socket for LCD 1 14-pin SIL header for LCD (16 pin supplied in kit) 2 screws, 2.6mm x 18mm long 6 nuts, 2.6mm 1 software floppy disk Semiconductors 1 DS1620 digital thermometer and thermostat (IC1) 1 78L05 +5V regulator, TO-92 package (IC2) 1 1N4148 (D1) 1 1N4004 (D2) Capacitors 1 100µF 25V electrolytic (C1) 1 10µF 25V electrolytic (C2) 1 0.1µF monobloc (C3) Resistors (0.25W carbon) 4 10kΩ (R1-4) 1 10kΩ trimpot (VR1) A complete kit of parts, including software, is available from all Jaycar Electronics stores for $69.95. (Cat KD-6082). but with the right polarity. The power diode is the larger black diode and it is the one which goes in the top right corner of the board. Place the capacitors next, again tak­ ing care with type and polarity. If you haven’t used electrolytic capacitors before, the negative lead is marked by a row of “–” symbols down the side of the capacitor adjacent to that lead. Now solder in the trimpot, voltage regulator and DC socket. The trimpot and DC socket can only go one way but the voltage regulator could be mounted back-to-front if you’re not careful: it must go in the same way as indicated on the board. Mount the 5-way header pin set and the IC socket – again, make sure that the IC socket is oriented the same way as indicated on the board. When soldering the D connector, December 2000  57 IC socket and header pins, you will need to be particularly careful not to form solder bridges between the pins. A fine-tipped, clean iron is essential –and if you don’t want to strain your eyes, some form of magnifying lens is very handy (especially for us older dudes whose close-up eyesight ain’t what it used to be!). You should now have only a couple of components left: a header pin set and matching socket and a 25-pin D connector. The D connector might cause you a little bit of angst because it has to be very carefully aligned to go into its holes. You cannot put it in at an angle – the pins at the opposite end will miss their holes. But it does go in! The last component to mount on the main PC board is the 14-way header pin socket. The 16-way header pin set has to be soldered to the display module. This needs to be exactly vertical and is soldered on the same side as the LCD (ie, the header pins emerge from the underside of the board. At the risk of boring you, we must repeat – these pins are very close together. Watch out for solder bridges! Just in case you’re wondering, no, we haven’t made a mistake with the number of pins in the header pin and sockets. The pin set has 16 pins, the socket 14 pins. Two pins are unused in this project and simply hang off the end of the socket when later as­ sembled. Don’t assemble it yet – nor, for that matter, insert the DS1620 IC. We’re going to check the board first. But even before that, give your board the once-over to make absolutely sure your component placement is correct and that you have neither missed any pins while soldering nor soldered any bridges. Obviously, if you find any mistakes, correct them first. It’s best to take your time and not make any mistakes in the first place. But if you do have to unsolder compo­ nents – especially things like PC header pins or IC sockets – you’ll find it almost impossible without using either solder wick (which soaks up the solder, free­ ing the pins) or a solder sucker (which does the same thing by suction). Power This project is designed to run from a 12V DC supply which is then regu­ lated to 5V by the 78LS05. An ideal supply would be a 12V plugpack – be­ 58  Silicon Chip cause the circuit draws so little power, just about any 12V DC plugpack you find should be OK. BUT! (Don’t you just hate those buts?) The DC socket on the board is designed to suit 2.5mm plugs and, try as we might, we couldn’t find a 12V DC plugpack in our junkbox with a 2.5mm plug. Plenty of 2.1mm – which don’t quite fit – but no 2.5s. If you’re in the same position, the obvious answer is to cut the 2.1mm plug off and solder on a 2.5mm plug. Just one thing – make sure the centre contact is the positive contact. If it’s the other way around you won’t do any damage (thanks to the protective diode) but it won’t work, either... Testing and final assembly This is simply a check that the project powers up as it should. With­ out the IC or LCD module plugged in, connect your 12V DC source and measure the voltage between pins 4 and 8 of the IC socket (see the diagram to determine which pins those are). You should get a reading very close to 5V (between about 4.9V and 5.1V). If not, disconnect the power and check your PC board once again. If you get 5V, disconnect power, wait a minute or so for the capaci­ tors to discharge, then plug in the IC (watch its orientation!) and the LCD module. As we mentioned before, the two pins closest to the middle of the module are not used and simply hang out in mid-air at the end of the 14-pin socket. Reconnect power and you should find a row of black squares on the display. If you don’t, adjust the pot until you do. (The other thing that affects the contrast of the display is Please Note On early versions of the PC board silk-screened overlay, the two end pins of header pin set X3 were labelled incorrectly. With the D25 connector at the bottom, the GND (ground) pin should be the left-most pin and the V+ pin the right-most pin. PC boards in new kits should be correct but check yours, just in case! Incidentally, that V+ is not the regulated 5V supply but the full supply voltage from the nominal 12V plugpack – which could be as high as 16V or so. the angle at which you’re viewing it. Best is straight on). Once you’re happy that it’s working, remove the display module from its socket and insert screws in the two uppermost corner holes. Place a nut on each of these and tighten fully. Now place another nut on each screw and move it to about half-way along the thread. Replace the module in its header socket, with the ends of the screws through the appropriate holes in the PC board underneath. Rotate the two nuts so that they lie on the top side of the PC board un­ derneath, with the two boards exactly parallel. Then insert the remaining two nuts on the ends of the screws and completely tighten. Screw holes are provided on the top side of the display PC board and the board underneath but they are redundant as the display board is held securely in place by its header socket. So far so good. You’re now ready to fire up the PC and drive the display. Connecting to the computer Here’s a couple of real traps for young players. And not-so-young, either, ’cos we wuz trapped! First of all, the cable: the module is fitted with a 25-pin D “male” connec­ tor and your computer’s parallel port (LPT1) will be fitted with a 25-pin D “female” connector. So all you need is a 25-pin D male-to-female lead, right? Yes . . . and no! There are two types of commonly available 25-pin D leads. One is sim­ ply a “straight through” connection (eg, pin 1 to pin 1, pin 10 to pin 10, etc) and that is the type of lead you require. The other lead is intended for serial ports (some of which also use 25-pin D connectors!) and they are NOT straight through wiring: some of the lines cross over to other pins. Guess which lead we grabbed from our box of various computer leads? Of course, Murphy’s law applied and we tried to use the serial lead. And just as “of course”, it didn’t work. So make sure the lead you use is the right one. There is a second, less obvious trap. And again, we got caught. The software is written to suit a computer with a parallel port (LPT1) at address 378H. Now 99% of computers will have their LPT1 at this address, set ex-factory. There are some comput­ ers, though, which have their LPT1 at 278H. In normal circumstances, it doesn’t matter – Windows for example will work fine with either. But this display won’t. It needs 378H. And guess which address our computer used? Yes, it was 278H. (To be fair, the PC is an old 486/50 “workhorse” which we use for all sorts of project development and testing, leaving our main networked system for magazine production. Someone at some time had a reason to change LPT1 and it had never been changed back again!). So if you fire up the software and it doesn’t work, those are the two most obvious reasons why not. The first problem is fixed by swapping leads. The second requires either a moth­ er-board jumper change or (in more modern computers) a BIOS change at boot-up. Software Two programs are supplied with the kit and are also available for downloading. Both are zipped into one archive and will need to be un­ zipped first. Create a directory on your hard disk and copy the zip file from the floppy to it. Then use one of the many unzip­ ping programs (eg, WinZip, PKunzip, etc) to restore the files. Along with several “jpg” images which show how the kit is put together (some of which are reproduced here) are two .exe files which are the demon­ stration files for use with the display. There are other files, including “C” files written under Borland Turbo C for DOS. The .exe files (which are compiled versions of the C files) are designed to run under DOS (remember that?) but also run quite happily in a DOS box under Windows 95 or 98. As most computers these days are Windows boxes, it’s probably easier to use them this way. Simply dou­ ble click on one of the appropriate .exe files and a DOS box will open, running the software. The two demo programs are: K134LCD.EXE – this simply allows the user to enter a message to be displayed on the LCD. The message can be up to 40 characters long. The message can be stopped or scrolled left or right and the scrolling rate can be varied. When the program is run, a menu Use this same-size PC board artwork to check the board supplied in your kit – just in case. is displayed on the PC from which you choose the required function. At the same time, the square boxes on the display change to a message “PC controlled LCD demonstration”. The message is only displayed on the top line of the display. If the message is scrolling and it is less than 40 characters long then a number of spaces will be displayed before the message starts again. You can enter a new message by selecting option 1 on the PC menu, change the scrolling direction (2 and 3), stop scrolling (4), change the scrolling speed (5) or exit the program (0). The full ASCII set available from the computer keys is echoed on the display. Disconnecting the display from the serial port while a message is being displayed freezes the display at that point but does not lose the information – reconnection will start the message scrolling again, if that is what has been selected. K134TEMP.EXE – a “thermostat” program that displays the current temperature as well as the upper (TH) and lower (TL) temperature ‘trip’ points, using the DS1620 IC mounted on the same PC board as the display components. The value of the trip points can be changed via the PC keyboard and the user can choose between Celsius or Fahrenheit display. The DS1620 is configured to per­ form continuous temperature conver­ sions. Current temperature and trip point data is continually read from the DS1620 and compared with the previous reading. If any of the three values have changed then the display is updated. At the same time, the outputs (via header pin set X3) will reflect the status, as previously explained. These three pins can be used to con­ trol external equipment – eg, an alarm or a heating element if the temperature goes too low. References These days the internet is the place to get information. But here are some magazine references on LCD’s: < “A Liquid Crystal Display Driven From A PC Printer Port”, SILICON CHIP, March 1998. = “A PC-Controlled Thermometer/ Thermostat”, SILICON CHIP, June 1997. > “Temperature Monitoring With a Synchronous Serial Link”, MicroCom-puter Journal March/April 1995. Some websites you might like to visit are: < beyondlogic.org (excellent, must-visit site) = geocities.com/ResearchTriangle/1495/ee_lcd.html > iaehv.nl/users/pouweha/lcd.htm woe/lcd ? pobox.com/~lcd_info Or simply do a search on your favourite search engine (eg, yahoo. com) for ‘LCD parallel’ and you will get hundreds of links to follow-up. You can email the author at peter<at> kitsrus.com if you have any problems or requests. Information on other kits in the range is available from his web page at kitsrus.com SC December 2000  59