Advertisement

Quick Links

Advertisement

Table of Contents
loading

Summary of Contents for Elektor EPROM

  • Page 2 Design by P . Goossens As opposed to most other EPROM emulators, the design discussed in this article provides a virtually perfect imitation of a ‘real-life’ 27C256 device, which may be programmed in any programmer as well as inserted into the target system.
  • Page 3 27256 62256 3EN1 3EN2 74HCT245 100n EPOEL BS170 EPCSL RAMWRL EPVPPL RAMOEL RAMCSL LED2L LED1L 16V8 BUDIR EPSV BUGATEL 78L05 100n 100n 024066 - 11 Figure 1. The circuit diagram of the EPROM emulator — exquisite simplicity. 11/2002 Elektor Electronics...
  • Page 4 % Switch to BLANK-state is S1 is pressed and hold this state ever, are not recommended for use in this cir- % Until the EPROM programmer wishes to program the EPROM cuit. % OR the user wishes to switch to normal operation by pressing...
  • Page 5 9-V input voltage to 5 The normal procedure to check if an volts required by the logic circuitry. EPROM is empty is to read all addresses and 024066- 13 compare the resultant data against the value Figure 3. Signals in Blank mode.
  • Page 6: Normal Mode

    RAM and the buffer when the circuit is not used. A very useful feature 024066- 15 indeed because our EPROM emulator is bat- tery-powered! Figure 5. Signals in Normal mode. COMPONENTS LIST Resistors: R1,R2,R5,R6 = 10kΩ...
  • Page 7: Power Supply

    One more tip: temporarily install a ZIF EPROM socket of the target system. the right-hand side of connectors for socket in the EPROM socket of the target cir- ‘IC2’. cuit. This allows the emulator unit to be Here are some more practical...
  • Page 8: Speed Cameras

    > 1 GHz) waves could be generated easily, intervals. When these waves hit an small section directly in front of the thanks to the introduction of the magnetron object of sufficient mass then part of aerial. This was done by mounting Elektor Electronics 11/2002...
  • Page 9 Speed check α is the angle between the transmit- TX/RX ter and the path along which the 020165 - 12 vehicle travels. c is the propagation speed of the sig- Figure 2: The Doppler effect. 11/2002 Elektor Electronics...
  • Page 10 Schottky diodes. In this section the sen- sitivity can also be improved through the use of aerials. Whilst the first radars could only Elektor Electronics 11/2002...
  • Page 11 2 and 10 GHz, will already have taken four or five law at all costs. which is the range where most mod- measurements. (020165-1) ern devices operate. However, if the The detection is made more diffi- 11/2002 Elektor Electronics...
  • Page 12: Test&Measurement

    2000 and should be fitted to diesel engined variants by 2003. The communica- tion protocols used can come in three different varieties. In Europe the most common protocol is the ISO standard. All of these protocols rely on serial data transfer Elektor Electronics 11/2002...
  • Page 13 RS232 interface. In addition it is only reset is derived from this pin to ini- limiting resistor (typically about 47 kΩ) is con- able to communicate using the tialise the microcontroller. nected in series. On-chip diodes ensure that 11/2002 Elektor Electronics...
  • Page 14 (Card Diagnosis Systems, The circuit of the OBD/RS232 These active-high output signals are used to Elektor Electronics October 2002). interface with the ELM323 is shown drive the OBD bus using external NPN driver The circuit described here plugs in Figure 4.
  • Page 15 – 5V1 OBDTx RSTx BC557B OBDRx RSRx ELM323 OBDL OBDK RS232Tx – 8V9 RS232Rx OBDIn (ISO) – 0V5 1N4148 1N4148 BC557B – 9V3 100n 3.579545MHz 020138 - 11 Figure 4. The OBD-2 to RS232 adapter circuit diagram. 11/2002 Elektor Electronics...
  • Page 16 (to be described in a follow- www.scantool.net derived from the PC and depends up article) would be a suitable tool www.autoxray.com largely on the type of interface chip for this job but if you are anxious to Elektor Electronics 11/2002...
  • Page 17 OBD-2 interface documentation www.elmelectronics.com/dsheets.html ELM323 indicating that it is ready to and the ELM323 command set you 11/2002 Elektor Electronics...
  • Page 18: Required Items

    USB. The latter circuit will be described in a coming issue of Be sure to install Visual Studio and related Elektor Electronics. A BinTerm adapter connected to the USB is highly suitable for packages without modifying the installation experimental projects, since it avoids the need to store program code in EEPROM.
  • Page 19: Setup Information

    EZUSB.Files.Inf = 10,INF [EZUSB.Dev] CopyFiles=EZUSB.Files.Ext, EZUSB.Files.Inf AddReg=EZUSB.AddReg [EZUSB.Dev.NT] CopyFiles=EZUSB.Files.Ext, EZUSB.Files.Inf AddReg=EZUSB.AddReg [EZUSB.Dev.NT.Services] Addservice = EZUSB, 0x00000002, EZUSB.AddService [EZUSB.AddService] DisplayName = %EZUSB.SvcDesc% ServiceBinary = %10%\System32\Drivers\ezusb.sys [EZUSB.AddReg] HKR,,NTMPDriver,,ezusb.sys [EZUSB.Files.Ext] ezusb.sys [EZUSB.Files.Inf] ezusbw2k.Inf [Strings] Cypress=”Cypress Semiconductor” USB\VID_0547&PID_2131.DeviceDesc=”Cypress EZ-USB (2131Q/2131S/2135S) - EEPROM missing” 11/2002 Elektor Electronics...
  • Page 20 = (USHORT) (‘0’ + Instance); Table 4 NTSTATUS Ezusb_ProcessIOCTL(IN PDEVICE_OBJECT fdo, IN PIRP Irp) switch (ioControlCode) case IOCTL_Ezusb_VENDOR_REQUEST: // = $00222014 length = Ezusb_VendorRequest (fdo, (PVENDOR_REQUEST_IN) ioBuffer); if (length) Irp->IoStatus.Information = length; Irp->IoStatus.Status = STATUS_SUCCESS; } else Irp->IoStatus.Status = STATUS_SUCCESS; break; Elektor Electronics 11/2002...
  • Page 21 Ezusb_ProcessIOCTL, Control instructions, can be directly incorpo- The most important file is ezusb- which jumps to the Core32.dll func- rated into applications programmed in C, or Table 7 #define Ezusb_IOCTL_INDEX 0x0800 #define IOCTL_Ezusb_VENDOR_REQUEST CTL_CODE(FILE_DEVICE_UNKNOWN, Ezusb_IOCTL_INDEX+5, METHOD_BUFFERED, FILE_ANY_ACCESS) 11/2002 Elektor Electronics...
  • Page 22 USB- Organisation www.usb.org Now press ‘F7’ to compile the test communications with the Braintechnology www.braintechnology.de source code. The result will be a file Cypress IC. (source for buying Cypress ICs) with the name EZUSB.SYS, which (020109-2) Elektor Electronics 11/2002...
  • Page 23: Stand-Alone

    S88 bus the additional advantage that absolutely no own whether stand-alone or normal changes as follows: changes are necessary on the main controller operation is desired. Its preference is – the first 32 (8-bit) modules are Elektor Electronics 11/2002...
  • Page 24: Controller Addressing

    ‘rotary encoder’, consists primarily of two 020125-13 changeover contacts with a common connec- tion (pin 1). If the knob is turned to the right, Figure 2. The simplest version of the address setting circuit. as it moves between two positions contacts 11/2002 Elektor Electronics...
  • Page 25 Suffice it to say that we have here is bouncing contacts. Two type 4543 BCD-to-7-segment a sort of primordial computer IC. The two 4029 counters form a two-digit decoder/drivers are used to convert The 8-bit binary code can only be Elektor Electronics 11/2002...
  • Page 26 K3,K4 = 6-way SIL header* K2 = 10-way boxheader* PCB, order code 020125-1 (see Readers Services) * = mount at underside of board Figure 4. Double-sided printed circuit board layout for the circuit shown in Figure 3. 11/2002 Elektor Electronics...
  • Page 27 The entire control panel can be connected to Figure 6. An EEDTS Pro keypad can be built using eight pushbutton switches and a the master controller using only five wires! train detector module. Elektor Electronics 11/2002...
  • Page 28 EEDTS Pro Märklin S88 Märklin S88 EEDTS Märklin train address detector lower address upper address turnout/signal decoder turnout/signal decoder 87291-8 87291-1 1 red 1 green 2 red 2 green 3 red 3 green 4 red 4 green 11/2002 Elektor Electronics...
  • Page 29 (adjustable) value. Because CD/DVD-players, one can never be quite sure this can easily lead to unpleasant sit- the current consumption is a mere Elektor Electronics 11/2002...
  • Page 30: Control Circuit

    P2: 200mV... 1V(RMS) 1N4148 IC1.B IC1 = TS924IN IC2 = LM339 4µ7 IC1.D 100Ω 4µ7 1N4148 020189 - 11 Figure 1. The level adapter actually consists of two separate circuits: the adjustment section and an overdrive indicator. 11/2002 Elektor Electronics...
  • Page 31 (C7). This power supply so that any potential An extremely compact circuit board has been added to provide a certain amount of noise from the switching of the LED has been designed for this circuit, Elektor Electronics 11/2002...
  • Page 32 (020189-1) connected to ground with a short those of the SIL headers on the PCB. wire. Make sure that when wiring P1 Once the circuit has been built into 11/2002 Elektor Electronics...
  • Page 33 Another type uses audio to modulate a mains socket. Both systems are sus- of IC is necessary in this application carrier frequency sent along mains wiring to ceptible to interference. because it allows us to set a high Elektor Electronics 11/2002...
  • Page 34: Brown-Out Protection

    (REF). The other input DTMF signals and ten for audio sig- using EEPROMs can have stored values cor- (AIN0) is connected to the AF signal nals. Resistor chain R13 and R14 pro- rupted. The brown-out protection circuit used 11/2002 Elektor Electronics...
  • Page 35: Telephone Connection

    12 V. network and the baby monitor unit. MIC1 012016-1 b’ a’ 012016-1 (C) ELEKTOR Figure 3.Single-sided PCB layout for the baby monitor. Elektor Electronics 11/2002...
  • Page 36: Assembling And Adjusting

    Altogether Disk, C source code and hex files, C11 = 470nF the sine wave table contains approximately order code 012016-11 C12,C13 = 22pF C19 = 470µF 25V radial (see Readers Service page) 200 bytes of data. 11/2002 Elektor Electronics...
  • Page 37 S1 (longer than two sec- holding pushbutton S2. The red LED onds) will switch the monitor unit into pro- will now light continuously and the (012016-1) gramming mode (the red LED will come on green LED flashes to indicate the Elektor Electronics 11/2002...
  • Page 38 UV exposure box from Conrad Elec- there would be a gap between the allows both films to be lined up precisely. tronics (order number 53 06 89-33) films, which makes accurate align- Elektor Electronics 11/2002...
  • Page 39 flat file to turn the round hole into a square. A slider is placed over each of the bolts followed by a large washer and Figure 2. The slider of the alignment mechanism. 11/2002 Elektor Electronics...
  • Page 40 Put frames. (020132) Elektor Electronics 11/2002...
  • Page 41 Figure 1. Motorola’s experimental reformed methanol to hydogen fuel cell and to separate the carbon dioxide gener- (RHFC). Elektor Electronics 11/2002...
  • Page 42 Figure 2. Demonstrating that today’s low temperature fuel cells, while not exactly compact, liquid to permeate through it. have the potential to power small electronic devices like a PDA. 10/2002 Elektor...
  • Page 43: Led Torch

    The LED however offers a sig- porates some optics to direct the battery. It would also be useful if the light nificant advantage over filament light beam so that the torch head Elektor Electronics 11/2002...
  • Page 44 PIC12C672 microcontroller (IC1). An advantage of using a microcon- the parameters of the torch at different light This device has an internal 4 MHz troller in this design is that the torch level settings. The column showing duration 11/2002 Elektor Electronics...
  • Page 45: Power Control

    30 µA the circuit efficiency. The efficiency Standby – 5 years 24 h 2 µA at maximum power setting reaches – 70 years – about 94%, but even LEDs from the Elektor Electronics 11/2002...
  • Page 46: Charge Indication

    S1,S2 = SMD switch, 1 contact (Mentor 1254.1007 or 1301.9314 or Omron B3FS-1052 from Farnell) Battery = Sanyo UR18650 Li-Ion, 1350 mAh (18mm, length = 65mm, weight 40g) or Sanyo UR18500 Li-Ion, 1100 mAh (18mm, l = 50mm) 11/2002 Elektor Electronics...
  • Page 47 0.2 to is a little bit generous for the torch but the ies/industrial_liion.html 0.22 mm diameter enamelled copper 19.4 20.4 18.4 19.9 20.9 25.5 29.5 012019-14 Figure 5. Mechanical layout for a splashproof case. Elektor Electronics 11/2002...
  • Page 48 Free Downloads at the this can cause the FETs to conduct ure 4. Elektor Electronics website. Note that the too heavily. This is not a problem When everything is in order, PCB slides into tapered slots in the head of when the circuit is battery powered briefly press one of the pushbuttons...
  • Page 49: Lcd Connections

    Internet. At details of displays based on the HD44780, as ics Information Online) [4]. This site Peer’s LCD pages, published by well as on LCD backlighting is that hosted holds datasheets and specifications Peter Ouwehand, an extensive trea- Elektor Electronics 11/2002...
  • Page 50: Internet Addresses

    [5] How to control a HD44780-based Char- acter-LCD: http://home.iae.nl/users/pouweha/lcd/ lcd.shtml [6] Build your own “2-Wire LCD Interface” using the PIC16C84 microcontroller: www.rentron.com/Myke1.htm [7] LCD Interfacing Reference Page: www.myke.com/lcd.htm [8] Beyond Logic: www.beyondlogic.org/parlcd/ parlcd.htm [9] Build your own printer cable LCD Display: http://www.overclockers.com.au/ techstuff/a_diy_lcd/ 11/2002 Elektor Electronics...

Table of Contents