the numerous innovative teachings of the present application will be described with particular reference to the presently preferred embodiments . however , it should be understood that this class of embodiments provides only a few examples of the many advantageous uses of the innovative teachings thereof . in general , statements made in the specification of the present application to not necessarily delimit any of the various claimed inventions . moreover , some statements may apply to some inventive features but not to others . fig1 a and 1b show the relation of assembled elements , in two versions of the packaged module of the present preferred embodiment . ( fig1 a shows a version using a packaged integrated circuit on a flexible circuit board , and fig1 b shows a version using a chip - on - board mounting with a rigid current board .) note that the module shown includes an integrated circuit and a battery . the module is preferably coin - shaped , and the two faces of the module are isolated from each other . to fit the integrated circuit into this very small space , an innovative packaging scheme is used in the preferred embodiment . a two - part metal container is used , which has two swallow concave pieces 0100a and 0100b with fit together . the integrated circuit ( in a low - height package 0130 , such as a flat - pack or soic ) is mounted on a very small flexible printed circuit board 0120 , which fits inside the container 0100 . laterally spaced from the integrated circuit 0130 , on the other end of the small flexible board 0120 , the board end is sandwiched between a battery 0110 and a piece of elastic conductive material 0140 ( such as conductive plastic foam ). thus , the battery 0110 is connected between one face 0100b of the container 0100 and a power conductor ( not shown ) on the board 0120 . the piece of elastic conductive material 1040 makes contact between a data trace ( now shown ) on the board 0120 and the other face 0100a of the container 0100 . another trace ( not shown ) on the board 0120 makes contact directly to the container face 0100b on which the battery &# 39 ; s ground terminal is connected . thus , simple wiring on the small board 0120 , using through - hole vias , suffices to route power , ground , and data lines to the integrated circuit 0130 , while providing a sealed durable package with two external contacts . in the alternative embodiment of fig1 b , a small rigid circuit board 0120 &# 39 ; is used in place of the flexible board 0120 . note that an additional piece of conductive foam 0142 is used in this case , to provide electrical contact from a trace on the board 0120 &# 39 ; to the ground side 0100b of the casing . note also that , optionally , an insulating additional piece of foam 0142 provides spacing between the board 0120 &# 39 ; and the casing piece 0100a . note also that a chip - on board mounting 0130 &# 39 ; is used instead of the package 0130 the casing halves 0100a / 0100b are preferably parts of a standard electronic battery package . such a casing can be hermetically closed , simply by swaging the two parts together with sealant at their join . in the presently preferred embodiment , the casing 0100 has external finished dimensions ( after the case is sealed ) of 16 mm wide and 3 . 2 mm thick , and the battery 0110 is battery type ag1 . however , of course , a wide variety of other dimensions and battery types can be used , as long as the dimensions are compatible . the battery is preferably a low - voltage battery ( 1 . 5 v , in the preferred embodiment .) this is cheaper , and maximizes power efficiency , but requires some innovative circuit design features to accommodate the electrical interface . ( electronic watches have often been powered by 1 . 5 v batteries , but such devices do not have any direct electrical interface to the outside world . by contrast , the module of the presently preferred embodiment communicates over a one - wire bus which is driven by full cmos voltage levels .) the integrated circuit , in the preferred embodiment , contains 256 bits of serial - access memory . this memory is read - or write - accessed as a single block transfer . it is contemplated that larger amounts of memory may be advantageous . of course , other types of memory organization can be used instead ; but for many applications it is contemplated that use of a very small amount of memory ( 4k or less ) may be particularly advantageous , since this extends the battery lifetime . in many applications ( such as inventory control , machinery maintenance records , or retail tagging ) users will prefer to affix the tokens to the physical items to which the data in the individual tokens refers . in this case , the token must be mounted so that both terminals of the token can be contacted by the user . in the presently preferred embodiment ( using a package like that shown in fig1 a ), only one of the possible orientations will work . ( the inner casing piece 0100a must be exposed , and therefore , if the token is to be mounted on a surface , it is the outer casing piece 0100b which should be adhered to the surface .) for such applications , the packaged modules ( in embodiments using packages like those of fig1 a and 1b ) are preferably shipped with double - sided adhesive tape already affixed to the side of the module which is to be adhered to a surface ( face 0100b , in the example of fig1 b ). preferably the double - sided tape has a high - tack face adhered to the casing piece 0100b . the other side of the tape may be high - tack , for permanent mounting ; or may be low - tack , for applications ( such as retail ) where the tokens will be frequently reused ; or may be medium - tack . for many applications , the tokens can be advantageously shipped with the low - tack face of many tokens stuck to a common cover sheet . fig6 is an overview of the physical organization of the integrated circuit which is used , in the presently preferred embodiment , in the module of fig1 . this is a fairly small integrated circuit , with a die size , in the preferred embodiment , of about 2 , 000 mil 2 ( in 1 . 2 micron technology ). the incoming ground line is connected to a contact pad 612 , and the incoming data line is connected to a contact pad 611 , in an area 610 which contains i / o and esd circuitry . ( the battery terminal is connected to a third contact pad 613 .) the contact pad 611 is connected to a large pull - down transistor 614 , and to an esd protection structure 618 / 619 , which will be described in detail below . a very weak transistor 615 , which is connected to be always turned on , is connected in parallel with the driver transistor 614 , to provide a high - impedance leakage path which brings the two terminals of the module toward the same potential when the module is not connected to a system . the incoming data interface is provided by 1 - wire - to - 3 - wire conversion circuitry 630 , which implements the one - wire bus protocol . this conversion circuitry connects to the memory 640 , and to the control logic 620 , through a more conventional three - wire bus ( including data , clock , and reset lines ). the memory 640 is internally configured as a random - access memory array ( although the host can only access the memory serially , as a single block ). the memory includes peripheral logic 642 , and two array portions . the overall array dimensions , in the preferred embodiment , are 16 rows by 16 columns , but two rows ( shown as area 644 ) are preferably formed of ram / rom hybrid cells , which will be described below . the cells in the other 14 rows ( shown as area 646 ) are conventional six - transistor sram cells . of course , a wide variety of other array sizes and layouts can also be used , as will be obvious to those skilled in the art of memory design . in fact , it is contemplated that , in the near future , the memory array size may be advantageously increased from 256 bits to 1024 bits . fig7 shows the electrical organization of the integrated circuit of fig6 . the ram 640 receives ten address bits q0 - q9 from the control logic 620 , as well as control signals er2 , sdoutb , and reset . control signal er2 enables the ram . control signal ewd selects read or write mode . control signal sdoutb is a strobe signal , which latches a data state for output . the ram 640 also receives a data input datin , and can provide a data output datout . the 1 - wire - to - 3 - wire conversion circuitry 630 , in the preferred embodiment , interfaces from the external data line to a more conventional 3 - wire serial bus , which includes reset , clock , and two data lines ( datin and datout ). the control logic 620 also provides an output &# 34 ; 210 &# 34 ;, which indicates when the counter is frozen . ( this signal is used in implementing the reset logic , as discussed below .) the 1 - wire - to - 3 - wire conversion circuitry 630 provides a timing output qxf1 , which corresponds to the output pulse of a one - shot . ( this pulse may be from 15 to 60 microseconds wide , and provides the basic timing reference inside the token module .) fig8 a and 8b are two parts of a single figure which shows the 1 - wire - to - 3 - wire conversion circuitry 630 which is used , in the presently preferred embodiment , in the integrated circuit of fig6 . every falling edge in the incoming data line iopad fires a one - shot made of flip - flop 802 clocked by the falling edge propagating through inverter chain 804 and with output driving feedback inverter chain 805 - 806 - 807 which resets flip - flop 802 . resistor 808 and capacitor 809 of inverter 806 provides an rc delay in the feedback reset ; thus flip - flop 802 has a high output for a fixed time interval before being reset low . this timed high output from flip - flop 802 is a pulse that feeds inverter 812 ( which includes timing resistor 813 and capacitor 814 ), that clocks flip - flop 815 , and that also appears on the line qxf1 . ( this pulse , in the presently preferred embodiment , has a width of 15 - 60 microseconds , and provides the time reference within the module .) in turn , every falling edge of signal qxf1 generates a short pulse ( about 1 . 5 microseconds wide ) on the clock line which is generated by nand gate 818 with one input driven by the direct output of inverter 819 and the other input driven by the output of inverter 819 delayed by the rc delay of inverter 812 . the falling edge of the qxf1 pulse also coincides with the clocking flip - flop 815 , so the data bit value from iopad at this time is loaded into flip - flop 815 and appears on line datin . reset signals are generated by simple logic which implements the conditions for reset , as described below , with clock clocking flip - flop 830 and the output of flip - flop 830 forming the reset signal plus feeding back through inverter 832 ( which includes resistor 833 and capacitor 834 for an rc delay ) to the reset input of flip - flop 830 . fig9 a and 9b are two parts of a single figure which shows the control logic used , in the presently preferred embodiment , in the integrated circuit of fig6 . after the protocol register 920 ( made of flip - flops 921 - 928 and clocked by clock through inverted - input or gate 930 which also receives feedback from the not q output of the flip - flop 928 to block further clocking ) has been loaded , counter chain 910 counts successive clock pulses . ( every falling edge on the data line will lead to a clock pulse within the module , and these pulses are counted by counter 910 which is made of flip - flops 911 - 919 and 908 - 909 . counter 910 is clocked by the output of inverted - input or gate 932 which , in turn , is driven by feedback from flip - flop 919 and nand gate 934 . nand gate 934 has inputs from inverted - input or gate 936 and flip - flop 938 . or gate 936 has inputs from nand gate 940 - 941 which have input signals from and gate 943 ( which is high precisely when flip - flops 921 - 925 have high outputs ), flip - flop 945 ( driven by the output of flip - flop 928 ), and the output of flip - flop 928 . flip - flop 928 is clocked by the output of nand gate 950 which has inputs clock and the output of flip - flop 928 ). the counter 910 has feedback from flip - flop 919 which will intercept the clock signal ( to freeze the count ), and activate signal 210 , as soon as 256 bits of data have been read or written . ( note that the counter chain shown actually includes two more stages ( flip - flops 908 - 909 ) than are needed . this permits ready modification for 1024 - bit embodiments .) register 920 receives the protocol word . the stages of this register are connected so that a reset will set the first stage , and clear the other stages . thus , when a 1 propagates through the last stage , a protocol word has been loaded . fig4 shows the format of the protocol word , in the module of the presently preferred embodiment . note that the first bit of the protocol word is always a 1 . note also that two bits have been reserved for module information . thus , memory expansion can be easily achieved by wiring as many as four memory chips in parallel , in a single token module . note also that the read / write selection bits provide significant protection against accidental writes , in a high - noise environment . among the innovative teachings set forth in the present application is a low - power low - voltage cmos six - transistor static random access memory ( sram ), which can operate on a power supply voltage which is less than the sum of the nmos and pmos threshold voltages , and which does not include any analog or metastable sense amplifier stages . the selected cell is allowed to pull one of its bitline pair all the way down to ground . thus , full logic levels appear on the bitline pair . only one line of the bitline pair is connected to the following gate stage . preferably bitline precharge transistors are connected to pull up all bitline pairs whenever the ram is not selected . in applications such as those of the preferred system embodiment , it is highly desirable to minimize unnecessary charge consumption . in particular , this means that the area - specific junction leakage of the semiconductor material , for the source / drain junctions , at 5 volts and at 25 c , should be low ( preferably much less than 1 femtoamperes per square micron ). for example , the process used in the presently preferred embodiment has junction leakage , for the source / drain junctions , in the neighborhood of about 100 - 200 attoamperes per square micron at 25 c and at 5 volts . ( as is well known , this parameter has a strong temperature dependence . for example , the process used in the presently preferred embodiment has junction leakage , for the source / drain junctions , in the neighborhood of a few femtoamperes per square micron at 25 c and at 5 volts .) such low leakage is achieved , as is well known to those in the semiconductor art , by using good quality monocrystalline silicon starting material with low levels of carbon and transition metals ; optionally , growing epitaxial silicon on the starting wafers ; rigorously isolating wafers in process from heavy metal contamination ; minimizing the exposure of wafers in process to ionizing radiation , from sources such as implanters ; and other such well - known precautions . fig1 shows the electrical organization of the ram 640 , in the presently preferred embodiment , in the integrated circuit of fig6 . five address bits are connected to row predecoder / decoder 1010 , and five bits are connected to column predecoder / decoder 1020 . ( as noted above , it is contemplated that expansion to an array of 1024 bits may be advantageous , and the extra address bits are provided for this contingency .) the eight primary address bits provide 16 select lines , to the 16 parallel blocks of column driver logic 1030 , to select a column . the column driver logic contains precharge transistors , and also contains pass gates which connect the selected column to a write driver circuit 1032 ( in write mode ) or to sense amplifier 1034 ( in read mode ). the column lines ( bitline pairs ) are always held high when the memory is deselected . when the memory is selected , the bitline pairs are floated ( until a row of cells turns on , and begins to pull down one side of each bitline pair ). this always - high operation helps to provide power efficiency : one - half of the bitlines are discharged for each one - bit data access , but not under any other circumstances . thus , the net charge consumption per access is acceptably low . the &# 34 ; sense amplifier &# 34 ; circuit 1034 does not function at all similarly to a conventional memory sense amplifier , this amplifier is a simple digital circuit , which receives a single - ended output , from only one of the bitlines in a bitline pair . ( however , the write driver is double - ended , since one of the bitlines must be driven low .) fig1 shows the bitline precharge and pull - up logic used for each column of the memory of fig1 , in the presently preferred embodiment . note that full cmos transmission gates are used to pass the output of the selected column . ( this is required by the low operating voltage permitted in the presently preferred embodiment .) pmos transistors 1420 , when gated by signal ec , precharge the bitline pair c and cb to v dd . when a selected cell begins to pull down one side of the bitline pair ( either line c or line cb ), one of the cross - coupled pmos transistors 1430 will turn on ( after the line sinks below v dd - v tp ) to hold the other side of the bitline high . ( since the bitline was already precharged high , this transistor is not expected to source large amounts of current . these transistors are provided primarily to avoid the risk of a floating node .) fig1 shows the single - ended sense amplification stage used in the memory of fig1 , in the presently preferred embodiment . the input labelled d is one side of a column bitline pair c and cb , selected by one of the selection gates shown in fig1 . note that the first stage inverter 1310 is preferably asymmetric . in the presently preferred embodiment , this inverter includes a pmos device which is 30 microns wide and 1 . 2 microns long , and an nmos device which is 3 microns wide and 3 microns . this asymmetry helps to assure that inverter 1310 will switch strongly as soon as it receives a signal from a bitline which is being pulled down by the driver transistor in a cell . ( in a normal cmos circuit , his asymmetry would shift the trip point of the logic stage . however , in this low - voltage logic , this is not true , due to the hysteresis effect discussed above with reference to fig5 a and 5b .) the output of inverter 1310 is loaded by capacitor 1320 . this capacitive loading helps to provide data hold time after signal sdoutb ends . the following inverters , in the preferred embodiment , have more normal relative device sizings ( nominal w / l : pmos 10 / 1 . 2 , nmos 5 / 12 ). the resulting logical signal is fed into a gated latch 1330 , which is clocked by signal sdoutb . note that the latch is clocked in two places , so that the feedback connection is broken ( by full cmos transmission gate 1332 ) whenever full cmos transmission gate 1334 turns on to admit a new data value . this prevents contention and saves power . another innovative teaching set forth in the present application is a memory cell which can operate as a static ram , or can be programmed to operate as a rom cell . thus users who need the extra security permitted by rom encoding can have this capability , while users who do not need rom encoding can use off - the - shelf parts as ram only . fig1 shows an innovative memory cell , which can operate as a ram cell , or which can be programmed to operate as a rom cell . the signal re is itself derived from a fuse , and , if rom operation has not been enabled , this signal will be low . thus , in ram mode , the cross - coupled inverters 1110 will provide normal latch operation , selectively accessed by pass transistors 1120 . when it is desired to convert a block memory to rom , a fuse is blown to hold the re signal high . in addition , one of the two fuses 1130 is blown in each cell , to encode either a &# 34 ; 1 &# 34 ; or a &# 34 ; 0 &# 34 ;. thereafter , one of the two nodes of the latch will always be pulled to ground . even if the cell is addressed in a write operation , the connection to ground will easily overpower the pmos load transistor , to hold the latch in its permanently programmed state . ( in the presently preferred embodiment , the nmos driver transistors in the inverters 1110 each have nominal w / l dimensions of 8 / 1 . 2 microns , the pmos load transistors in the inverters 1110 each have nominal w / l dimensions of 6 / 6 microns , and the nmos ram - mode transistors 1140 and the nmos pass transistors 1120 each have nominal w / l dimensions of 4 / 1 . 2 microns .) the systems environment described above means that the data modules face some unusual integrity requirements . since the modules may be exposed to very rough treatment , in consumer and industrial environments , they should preferably have a very high level of immunity to electrostatic discharge ( esd ). referring now to fig1 b , there is illustrated a cross - sectional diagram of a semiconductor substrate 10 utilizing a prior art battery protection device . in this type of device , a battery terminal 12 is provided for being connected to a battery ( not shown ) and an external voltage terminal 14 is provided for being connected to an external ( system ) supply voltage v ext . the battery terminal 12 is typically at a lower voltage than the external supply voltage v ext . for example , the battery voltage for most battery - backed systems is typically around three volts , whereas the external voltage v ext is typically around five volts . the external supply terminal 14 is connected to the substrate 10 , which is an n - type semiconductor substrate in this example , through an n + contact region 16 . the battery terminal 12 is connected to a p - well 18 through a p + contact region 20 . the boundary of the p - well 18 forms a pn junction 22 . therefore , when the n - type substrate 10 is at a lower potential than the battery terminal 12 , current will flow through the forward biased pn junction 22 from the battery terminal 12 . however , when the external supply terminal 14 is a higher voltage than the battery terminal 12 , the pn junction 22 is reverse biased and blocks current . this essentially prevents current flowing from the external terminal 14 to the battery terminal 12 and thus charging the battery . in a typical cmos semiconductor device utilizing p - wells and n - well in a twin - tub process , there will be additional p - wells that are separated from the p - well 18 . one of these is represented by a p - well 24 , which is disposed on the n - type substrate 10 and separated from the p - well 18 by a predetermined minimum spacing in the n - type substrate 10 . a pn junction 25 is formed between the n - type substrate 10 and the p - well 24 . the p - well 24 can be utilized to configure any type of device . in order to contact the p - well 24 , a p + contact 26 is provided which is connected to an external circuit terminal 28 . it should be understood that the illustrated structure merely represents a partial example of such a p - well structure . ( for example , such a p - well would usually include at least two shallow n + diffusions , to provide the source / drain regions of an mos transistor . such a p - well may contain three or more such n + diffusions , to provide more than one transistor , and may also be configured to provide other elements as well , e . g . diodes or capacitors .) a problem arises with the prior art device whenever the external voltage falls ( e . g ., when the terminal 14 is disconnected from v ext , or the system power supply fails ), so that the external circuit terminal 28 is connected to a voltage lower than the battery terminal . in the structure shown in fig1 b , this will reverse bias the pn junction 25 . in this mode , minority carriers ( holes , in this example ) which are injected into the substrate 10 at the forward biased pn junction 22 can be collected at the pn junction 25 . this results in the formation of a leaky parasitic pnp transistor . this parasitic pnp transistor is illustrated in fig1 c . this transport of holes creates a net current , from the battery terminal 12 to the ground terminal 28 , which dissipates power . the parasitic transistor of fig1 c has the emitter junction formed between the p - well 18 and the n - type substrate 10 with the battery terminal 12 providing the emitter terminal . the base is formed by the n - type substrate 10 with the base terminal comprising the external voltage terminal 14 . the collector junction is formed between the p - well 24 and the n - type substrate 10 with the external circuit terminal 28 representing the collector terminal . it can be seen that whenever the external voltage terminal 14 is disconnected , the parasitic transistor illustrated in fig1 c passes leakage current . this results in leakage current , which , in a relatively low power device , can comprise a significant portion of the supply current , since there are usually a number of adjacent p - wells on the substrate with a parasitic transistor connected to each of the adjacent p - wells . since the bases of all of these transistors will be common , this effectively forms a multi - collector parasitic transistor . fig2 and 8 show two important embodiments of the disclosed innovative diode structure . in each , the battery power input is connected through a first junction 111 , so that the battery cannot be charged when the external ( system ) power supply is active . the battery isolation diode junction 111 is surrounded by a second junction 112 . in the embodiment of fig1 d , the first junction 111 is the boundary of p + first region 36 and the n - type second region 34 , and the second junction 112 is the boundary of n - type second region 34 with p - type third region ( p - well ) 32 . in the embodiment of fig1 k , the first junction 111 is the boundary of p - type first region 121 and n - type second region 122 , and the second junction 112 is the boundary of p - type first region portion 121b with p - type third regions 113 . note that , in fig1 d , the second region 34 encloses the first region 36 , whereas , in the embodiment of fig1 i , the first region 121 encloses the second region 122 . the second junction 112 is preferably shorted out , by a wired connection which makes ohmic contact to the semiconductor regions on both sides of the junction . in the embodiment of fig1 d , the wiring 43 which shorts out the second junction makes ohmic contact to the second region 34 at n + diffusion 40 , and makes ohmic contact to the third region 32 at p + diffusion 38 , and is also ohmically connected to n - type extended region ( substrate ) 30 at n + diffusion 42 , and is also tied to external supply voltage v ext . in the embodiment of fig1 k , the wiring 131 which shorts out the second junction makes ohmic contact to the first region 121 at p + diffusion 121a , and makes ohmic contact to the third region 113 and n + diffusion 113a , and is also ohmically connected to the battery terminal v bat . the built - in potential of second junction 112 provides efficient collection of minority carriers , which will recombine in the neighborhood of this junction . thus , the second junction collects the minority carriers which can be generated when the first junction 111 is forward biased ( i . e . when the integrated circuit is being powered from the battery ). otherwise , minority carriers could diffuse to other junctions , to cause leakage currents which can significantly degrade the lifetime of a low - powered device . note also that the structures of fig1 d and fig1 k both include an intermediate - depth diffusion , with a junction depth which is significantly deeper than the source / drain junction depth , but significantly shallower than the depth of the well . in the embodiment of fig1 d , this intermediate - depth diffusion is provided by the n - type second region 34 . in the embodiment of fig1 k , this intermediate - depth diffusion is provided by the p - type first region portion 121a . referring now to fig1 d , there is illustrated a cross - sectional diagram of a preferred embodiment of the disclosed innovative battery protection circuit , as implemented in an n - type substrate 30 . a p - well 32 is formed in the n - type substrate 30 , having a depth of approximately four microns . an n - type region 34 is formed in the p - well 32 to a depth of approximately 0 . 8 microns . a p + region 38 is formed within the n - type region 34 . in this sample embodiment , the p + region 36 has a thickness of approximately 0 . 40 microns . a p + contact 38 is provided that surrounds or forms a ring around the n - type region 34 to provide a contact to the p - well 32 . in a similar manner , an n + contact 40 is provided that surrounds the p + region 36 to provide contact from the surface to the n - type region 34 . an n + contact 42 is provided in the n - type substrate 30 outside the boundaries of the p - well 32 . the external voltage terminal 14 , having the voltage v ext connected thereto , is interfaced with the n + region 42 . in a similar manner , the battery terminal 12 is interfaced with the p + region 36 . in addition , the external voltage terminal 14 is connected to the p + region 38 and to the n + region 40 through interconnect line 43 . the p - well 24 and associated p + region 26 and external circuit terminal 28 are also provided in the substrate 30 to illustrate the formation of the reverse biased pn junction 25 . as will be described hereinbelow , the disclosed innovative battery protection circuit prevents conduction from the battery terminal 12 to the pn junction 25 when the pn junction 25 is reverse biased . for illustrative purposes , the external circuit terminal 28 is connected to a voltage lower than the battery terminal , for example , zero volts . the parasitic transistors formed in the structure of fig1 d are illustrated in fig1 e . a first pnp transistor 44 is formed having the emitter thereof connected to the battery terminal 12 , the base thereof connected to the collector thereof and the collector thereof connected to the emitter of a second pnp transistor 46 . the second pnp transistor 46 has the base thereof connected to the external supply terminal 14 and also connected to the emitter thereof . the collector of the second pnp transistor 46 is connected to the external circuit terminal 28 . the transistor 44 has the emitter thereof formed by the junction between the p + region 36 and the n - type region 34 , the base thereof formed by the n - type region 34 and the collector thereof formed by the junction between the n - type region 34 and the p - well 32 . the transistor 46 has the emitter thereof formed by the junction between the p - well 32 and the n - type region 30 , the base thereof formed by the n - type region 30 and the collector thereof formed by the junction between the n - type region 30 and the p - well 24 . in operation , the p - type transistor 44 has the base thereof connected to the collector , and thus , it is configured as a diode . this allows current to flow through the collector of transistor 44 when the battery terminal 12 is at a higher voltage than the n - type substrate 30 . however , the emitter - to - base junction of transistor 46 is shorted , thereby inhibiting operation of the transistor 46 . therefore , when the external voltage terminal 14 is at a lower voltage than the battery terminal 12 , there is no parasitic transistor operation that results in leakage from the battery terminal 12 to the p - well 24 . referring further to fig2 and 3 , conduction in the parasitic transistor of the prior art normally occurs as a result of minority carriers being injected into the n - type substrate 30 and being collected in the p - well 24 . this collection is a result of the reverse biased pn junction 25 . in order to prevent conduction in the parasitic transistor , it is necessary to prevent either injection of the minority carriers into the n - type substrate 30 , or prevent subsequent collection thereof by the p - well 24 . this , in effect , kills the gain of the parasitic transistor . in the disclosed innovative battery protection circuit , the minority carriers exist in the n - type region 34 as holes . the p - well 32 is biased at the same potential as the n - region 34 and therefore acts as a collector for the minority carriers or holes . however , it should be understood that any barrier which prevents migration of minority carriers over to the pn junction 25 to allow collection there by the p - well 32 will produce the same result . for example , an insulating layer could be utilized that totally encloses the n - type region 34 , which insulator would adequately prevent minority carrier injection . further , the holes , which are collected in the p - well 32 , could be recombined in a very heavily doped n - type region that was disposed around the n - region 34 in place of the p - well 32 . this would effectively perform a recombination of the holes therein to prevent the holes from migrating into the n - type substrate 30 . this heavily doped n - type region could also be disposed around the p - well 24 . with further reference to fig1 d , the p - well 32 is provided as a collector of minority carriers . the purpose of the electrical connection 43 is to provide a path for free electrons or majority carriers . the holes generated in the n - type region 34 as a result of the forward biased pn junction between p + region 36 and n - type region 34 are recombined at the junction between the electrical connection 43 and the n + region 40 , thus preventing the minority carriers from flowing through electrical connection 43 to the n - type substrate 30 . it is possible that this electrical connection 43 could be replaced by a conductive n ++ plug that is disposed through the p - well 32 to the n - type substrate 30 to connect the n - region 34 and the n - type substrate 30 . however , an electrical connection would still be required between the p - well 32 and the n - type region 34 to provide the correct bias therefore . although the just - described embodiments of the disclosed innovative battery protection circuit were described with respect to an n - type substrate and parasitic pnp transistors , it should be understood that the dual of this structure could provide the same result wherein the battery voltage were a negative voltage and the overall system operated on a negative voltage . for example , the battery diode protection circuit would now have an n + region connected to the battery and a p - type region providing the other side of the diode . an n - well would be disposed therearound isolating the diode from a p - type substrate . the n - well would provide the minority carrier isolation and act as a collector therefore , the minority carriers being electrons in this case . this would prevent minority carriers from being collected in an adjacent n - well to form a leaky npn transistor . referring now to fig1 f , there is illustrated a top - level diagram of the structure of fig1 d . the p + region 36 is formed as an elongated implant that is surrounded by the n + region 40 . the n + region 40 is in turn surrounded by the p + region 38 . the n - type region 34 to which the n + region 40 is connected , does not extend entirely under the n + region 40 to the exterior boundary thereof . rather , the external boundary of the n - type region 34 is defined by a border 48 . a detail of the n - type region 34 is illustrated in fig1 g . the p - well 32 is illustrated as surrounding the p + region 38 . the n + region 42 is formed from an elongated implanted region that is disposed adjacent to the p - well 32 . in a similar manner , the p - well 24 is also elongated and disposed adjacent the n + region 42 with the p + region 26 disposed within the p - well 24 and also having an elongated configuration . in this embodiment , the disclosed innovative battery protection circuit is interleaved with a standard twin tub cmos process flow . in the standard process , n - and p - channel device regions are defined and then a p - well formed by implanting boron into the n - channel device region and an n - well formed by implanting phosphorous into the p - channel device region . these implants are then driven down into the substrate and then active regions defined therein and separated by a layer of field oxide . typically , a layer of nitride is disposed over a thin oxide layer to define the active regions and then a field oxide grown on the portions of the substrate not having nitride formed thereover . after formation of the field oxide isolation regions , the residual nitride layers are removed . there is still a layer of gate oxide over the active region remaining on the surface thereof . the surface is then masked for the implanting of the n - type region 34 . this implant is achieved with phosphorous at an energy level of 180 kev at a dosage of 5 × 10 13 cm - 2 . after implanting of the n - type region 34 , the residual oxide on the surface of the active region is removed and then a strip gate oxide is formed over the substrate . the active regions are then implanted to adjust the transistor threshold voltages . after threshold voltages are adjusted , the strip gate oxide is removed and the final gate oxidation is performed , followed by polysilicon deposition and subsequent doping thereof . the poly is then patterned and etched to define the various gates and interconnects at a first level of poly . the n - channel source and drain areas are then defined to form the source / drain implants . this is an n + implant utilizing arsenic , which implant is also utilized to form the n + regions 40 and 42 . the substrate is then masked to form the p + source / drain implants , at which time the p + regions 36 , 38 and 26 are formed . thereafter , the interleaved oxide is formed by depositing oxide thereover and this oxide is subjected to a thermal cycle to reflow the oxide and to provide the source / drain activation and drive steps . the subsequent contacts are then defined and etched and then a layer of metal deposited thereover . the metal layer is then patterned and etched to define the various metal interconnects . referring now to fig1 h , there is illustrated a vertical dopant profile through regions 36 , 34 , and 32 of fig1 d . the dopant profile illustrates that the p + region 36 has a surface concentration of approximately 1 × 10 20 cm - 3 and a thickness of approximately 0 . 35 microns . the n - type region 34 has a thickness of approximately 0 . 4 microns with a peak concentration of approximately 4 × 10 17 cm - 3 . the concentration level of the p - well 32 is approximately 1 × 10 16 cm - 3 . therefore , the pnp transistor 44 formed by the p + region 36 , the n - type region 34 and the p - well region 32 has a base width of approximately 0 . 4 microns . referring now to fig1 i , there is illustrated an alternate embodiment of the disclosed innovative battery protection circuit . in this alternate embodiment , the diode structure of the present invention is formed in an n - type substrate 50 , which n - type substrate 50 is disposed over a layer of insulating material 52 . this is normally referred to as silicon - on - insulator ( soi ) technology . in this type of technology , an n - type substrate is first formed and then a layer of insulating material formed on the lower surface thereof . the n - type substrate 50 is typically dimensioned to equal the thickness of the p - well 32 and the p - well 24 such that no n - type material is disposed therebelow . in this manner , isolation between laterally disposed device is increased . there are numerous techniques for fabricating integrated circuits utilizing soi technology . some of these techniques require formation of the active device on the surface of an n - type substrate followed by deposition of a thick layer of oxide and polysilicon thereover . the substrate is then held from the upper side and the lower surface thereof etched down a predetermined distance . typically , some type of heavily doped buried layer is implanted into the substrate to form an etch stop layer . the insulator is then formed on the remaining surface of the substrate under the active devices , the thick layer of polysilicon and oxide removed and the final patterning performed on the upper surface of the substrate . however , this is only one technique and numerous other techniques are available for realizing soi technology . referring now to fig1 i , there is illustrated yet another embodiment of the disclosed innovative battery protection circuit . an n - type substrate 54 is provided upon which a layer of epitaxially grown n - type semiconductor material 56 is grown . the p - well 24 and the p - well 32 are then formed therein with the n - type epitaxial layer 56 having a thickness approximately equal to that of the p - wells 24 and 32 . the n - type substrate 54 has a higher doping level than the epitaxial layer 56 , resulting in the parasitic transistors being confined primarily to the epitaxial layer 56 . the epitaxial layer 58 is formed utilizing conventional processes well - known in the art . in summary , there has been provided a battery protection device that reduces leakage due to the existence of a parasitic pnp transistor between the battery terminal and an adjacent p - well . the battery protection device includes a diode that is enclosed by a layer of p - type material . the layer of p - type material is operable to collect minority carriers to prevent collection thereof by an adjacent p - well with a reverse biased pn junction . fig1 k shows another embodiment of the disclosed innovative battery protection circuit , which has been found to be advantageous for use with p - type substrates . this is the embodiment which is preferably used , with the layout shown in fig1 a , in the integrated circuit layer of fig6 . specifics for this embodiment will be described in the content of a 1 . 2 micron comos process , but of course the process can readily be scaled or modified , as will be apparent to skilled cmos designers and process engineers . the substrate 140 , in this embodiment , is p - type silicon , doped to a bulk resistivity in he neighborhood of 30 - 40 ohm - cm . the substrate is shown ohmically connected to ground through a shallow p + diffusion 140a , but in addition to ( or instead of ) this contact , a backside contact may also be used for connection to ground . an n - well 113 has essentially the same doping profile as the n - wells which are used to build pmos active devices , and is formed in the same series of implantation and drive steps . in this sample embodiment , the n - well is about 4 microns deep , and has a vertically graded dopant concentration in the neighborhood of 2 - 3 × 10 16 cm - 3 . a shallow n + diffusion 113a is formed inside this region , by using the same implant as is used to form the n + source / drain regions in the active device regions . this shallow n + diffusion will normally be quite heavily doped , but the depth and concentration of this region are not particularly critical for purposes of the structure of fig1 k . typically the concentration might be in the range of 1 × 10 19 cm - 3 to 3e 20 cm - 3 , with an effective depth in the neighborhood of 0 . 3 microns . the shallow n + diffusion 113a provides ohmic contact to wiring 131 , which is electrically connected to the battery voltage v bat . an intermediate - depth p - type region 121 is formed inside the n - well 113 . in the presently preferred embodiment , this is formed by implanting boron at an areal dose in the approximate range of 6 × 10 13 cm - 2 to 1 × 10 14 cm - 2 at an energy of about 30 kev , but of course other doses or energies can be substituted . a shallow n + diffusion 122 is formed inside the region 121 , by using the same implant as is used to form the n + source / drain regions in the active device regions . this shallow n + diffusion will normally be quite heavily doped , but the depth and concentration of this region are not particularly critical for purposes of the structure of fig1 k . typically the concentration might be in the range of 1 × 10 19 cm - 3 to 3 × 10 20 cm - 3 , with an effective depth in the neighborhood of 0 . 3 microns . the n + diffusion 122 makes ohmic contact to wiring 133 , which is routed to provide the v dd on - chip supply voltage for the active circuits on the chip . a shallow p + diffusion 121a is also formed inside the region 121b , by using the same implant as is used to form the p + source / drain regions in the active device regions . this shallow p + diffusion will normally be equite heavily doped , but the depth and concentration of this region are not particularly critical for purposes of the straight of fig1 k . typically the concentration might be in the range of 1 × 10 19 cm - 3 to 3 × 10 20 cm - 3 , with an effective depth in the neighborhood of 0 . 3 microns . the shallow p + diffusion 121a provides ohmic contact to wiring 131 , which is electrically connected to the battery voltage v bat . fig1 l shows a test structure which is similar to the device structure of fig1 k , and fig1 m shows test data for this structure . in recording this data , collector terminal ( mark i c in fig1 l ) was connected to the emitter terminal ( marked i e ). the battery was held at a constant voltage v bat = 3 v . the battery current i s and substrate current i sub were measured as a function of the emitter current i e drawn from the second region 122 . thus , two curves are shown in this log - log plot . note that the substrate current i sub remains down in the noise level until the emitter current i e becomes quite large . ( this low value of the substrate current is highly advantageous .) at the point circled on the i b curve , i e = 2 . 512 ma , and i b = 2 . 510 ma . at the point marked with an asterisk on the i sub curve , i e =- 2 . 512 ma , and i sub =- 45 pa . fig1 n shows a further alternative embodiment , wherein a diffusion structure is connected to provide esd protection for an i / o connection of a battery - powered integrated circuit . note that the region 122 is not connected to provide a v dd output , but instead is connected to an input / output line 134 . ( the i / o terminal can also optically be connected to a transistor gate , for amplification of incoming data signals , but this is not necessary .) the i / o line 134 is also connected to be driven by an nmos output driver 150 . this transistor , as shown , includes a first source / drain diffusion 151 , which is ohmically connected to the i / o line 134 , a second source / drain diffusion 152 , which is ohmically connected to ground , and a gate 153 which can be driven by a data - output signal do - bar . ( of course , other device structures , such as additional esd protection structures , can optionally be combined with the structure shown .) the structure of fig1 n , in the preferred embodiment , uses several enclosure relationships in its geometry . the central diffusion 122 is shown small , for clarity , but may itself be large . the p + diffusion 121a preferably runs all around the p - type intermediate diffusion 121 . as presently contemplated , lateral dimensions for this example are as follows . ( however , it must be understood that these dimensions are intended to be purely illustrative , and should not be strictly relied on . these dimensions are included merely to help show the inventors &# 39 ; present views as to the best mode of practicing this embodiment of the invention .) the n + diffusion 122 is preferably separated from p + diffusion 121a by a minimum spacing of at least 3 microns ( in a 1 . 2 micron layout ), and the ring diffusion 121a is preferably at least 5 microns wide . the n + diffusion 113a preferably runs in a ring all around the edge of the well 113 . the n + diffusion 122 is preferably at least 5 microns wide , and is separated from the p + diffusion 122 by at least 3 microns . the p + diffusion 140b , in the substrate 140 , preferably runs all the way around the outside of the n - well 113 . the minimum spacing between p + diffusion 140b and n &# 39 ; diffusion 113a is preferably at least 3 microns , and p + diffusion 140b is preferably at least 5 microns wide . the output transistor 150 is preferably surrounded by a ring 154 of n - well , and this ring is tied to ground through a shallow n + diffusion 155 at its surface . the structure of fig1 n has the advantage that , when a negative transient appears on the i / o line 134 for any reason ( such as electrical noise on a line , or electrostatic discharge ), most of the current sourced to this negative transient will be taken from the junction 111 , rather than from the output transistor . thus , minority carrier diffusion to discharge the battery is minimized , and battery lifetime is not decreased by such transient events . this advantageously provides a system which is loner - lived and more reliable . however , when the i / o line 134 is in its normal range of positive voltages ( e . g . during normal operation at ttl levels ), the first junction in the diode structure will be reverse biased , and will not load the line 134 . fig1 p is a log - log plot of data for the device structure of fig1 n . a controlled current sink l dq is applied to the i / o connection 134 , and two current components are measured as a function of i dq : the current i hat drawn from the supply voltage v bat , and the current component i gnd drawn from the ground connection . at the point circled on the i bat curve , i dq =- 10 . 00 ma , and i bat = 18 . 15 microa . at the point marked with an asterisk on the i gnd curve , i dq =- 10 . 00 ma , and i gnd = 9 . 982 ma . in the structure measured in fig1 p , the effective area of the first junction 111 ( which is protected by the second junction 112 ) is approximately ten times that of the junction area in the output transistor 150 ( which also can source current from ground ). thus , a current differential of about 10 : 1 might be expected , purely due to the geometrical ratios . however , higher ratios ( almost 100 : 1 ) are actually achieved . thus , fig1 p shows that the ratio of ground - sourced current to battery - sourced current is greater than 500 : 1 is achieved for a 10 ma load , and even higher ratios can be achieved at lower load currents . fig1 a shows the layout of the esd protection diode , in the presently preferred embodiment . this diode has doping profiles as just described with reference to fig1 n . note that the structure shown actually includes two diodes in series : diode 618 provides the primary protection . diode 619 is interposed between diode 618 and the substrate , to provide some additional protection . note that the n + pattern of diode 619 is slightly different , to impose a longer current path . this provides a slight series resistance between the power output and the active circuits , which helps to isolate the active circuits from the esd discharges . note that the pattern shown includes rounded corners on the metal , n - well , and n + patterns . these rounded corners help to reduce the geometry - dependent electric field enhancement which would otherwise occur at corners . it is contemplated that , for even greater esd protection , it may be preferable to narrow the width of the n + diffusions in the diode layout . this would further reduce series resistance in the path of electrostatic discharges . the module of the presently preferred embodiment has been tested , and found to withstand a 7000 v positive discharge , and to be capable of withstanding negative discharges greater than 10 , 000 v . ( under positive discharges , data loss does not occur until 7000 v , and device damage does not begin to occur until 1000 v ( one microamp of leakage ). negative discharges cannot cause data loss or device damage until voltages greater than 10000 volts ( how much greater is not known .) the implementation of data transfer operation , in the presently preferred embodiment , will now be described . all communications to and from the token are accomplished via two physical connections , the &# 34 ; data &# 34 ; line , and the ground return line . the reading and writing of token data is accomplished through the use of time slots and a command word protocol . the bus protocol is also designed to minimize the charge transfer out of the battery in the module . this is done by using an &# 34 ; open - collector &# 34 ; type architecture . the protocol has been specified so that the module never sources current to the data line , but only sinks current . when a data module is in contact with a host system , the host system initially pulls up the data line . ( the module also preferably contains a very high - impedance pull - down resistor at this node , but this is done , in the preferred embodiment , merely to avoid the risk of floating nodes .) the host system initiates each stage of a data transfer operation by driving the data line low . the module detects this falling edge , and one of several further events can then occur . if the module is being read ( as previously determined by overhead bits ), the module , after seeing the falling edge which starts the cycle , either will or will not turn on its nmos pull - down transistor , depending on the value of the data bit being read at that cycle . when the nmos pull - down is turned on , the module lets is preset timing period elapse , and then turns off the nmos pull - down . thus , when the system wants to read from the module , it applies a falling edge , waits a short time to be sure that the module has received the falling edge , and then attempts to pull up the data line , using a pull - up resistor which cannot overpower the nmos pull - down transistor in the module . after waiting a sufficient time for the pull - up resistor to have raised the line to a high level ( if the nmos pull - down is off ), the system tests the data voltage to ascertain the data bit . the system then waits for the maximum time period of the module delay to elapse , plus enough time for the data line to stabilize at a high level , and then sends another falling edge to read the next bit . if the module is being written to ( as previously determined by the overhead bits ), the module , after seeing the falling edge which starts the cycle , waits for its preset timing period to elapse , and then stores the logic value of the data line . thus , when the system wants to write to the module , it applied a falling edge , waits a short time to be sure that the module has received the falling edge , and then drives the data line either high or low , depending on the data bit . the system then waits for the maximum time period of the module delay to elapse , restores the data line to a high level , allows enough additional time for the data line to stabilize at a high level ( and for the edge detector in the module to reset itself ), and then sends another falling edge to write the next bit . all data transfer operations are performed by initially setting the token into a known state , issuing a command word , and then performing the selected operation , either reading the contents of the token or writing new data into the token . each data transfer operation consists of 264 data time slots : 8 are for the command word and 256 are for the data bits . to initially set the token into a known state , when a new token is first inserted into a host system , either 264 or 1032 write zero time slots are issued ( depending on the memory density ). these write zero time slots will not corrupt the data held within the token since a command word has not been written . this operation will increment the address pointer internal to the token to its maximum count value . upon reaching this maximum value , the token will ignore all additional write zero time slots issued to it and the internal address point will remain locked at the top count value . ( this backed condition is removed by the issuing of a write one time slot .) once the token has been set into a known state , a command word is transmitted to the token , using 8 write data time slots . this resets the address pointer internal to the token and prepares it for the appropriate operation , either a read or a write . after the command word has been transmitted to the token , the appropriate number of data time slots will be issued to the token by the host . in the case of a read operation , these will be read data time slots . in the case of a write operation , these will be write data time slots . the exact number of data time slots generated by the host is dependent upon the memory density of the part being used ( 256 or 1024 ). all data transfers are preferably done by reading or writing the entire contents of memory as a single serial stream . a command word , which is a short block of overhead bits , is sent from the host system to the portable module at the start of each transfer , to define the transfer type . fig4 shows the organization of the overhead bits which are used in each block transfer . the command word consists of 8 bits which are transmitted from the host to the token with write data time slots ( fig4 ). the first bit of the command word must be set to a logic level . the next two bits are the select bits which relate to the part dash number . the remaining five bits determine whether a read or a write operation is to follow . if a write operation is to be performed , all five bits are set to a logic 1 level . if a read operation is to be performed , any or all of these bits are reset to a logic 0 level . each of these bits is transmitted to the token with a separate write data time slot . when a host system first makes contact with a module , the host system sends a long string of write - zero commands , followed by a write - one command , to the module . the module contains a counter , which monitors the incoming bit stream for nonstop sequences of write - zero commands . if the module receives a nonstop sequence containing as many write - zero commands as the total length of the memory , the counter will freeze until the chip is reset . the chip will be reset if and only if an incoming &# 34 ; 1 &# 34 ; bit is seen while the counter is frozen . that is , in the presently preferred embodiment ( 256 bits of memory , the data output of the last counter stage ( indicating that the counter has rolled over from 255 to 256 ) triggers a flip - flop whose output is connected , through a nor gate , to cut off the counter &# 39 ; s clock input . this provides a reset capability , whereby the system can ensure that the starting address of the module is accurately known . thus , on every insertion of a new module , the system can send such a reset sequence to initialize the address pointer in the module . note that this address - pointer - reset is only necessary once per insertion . the sequence of write - zero commands will not normally destroy data , because the module never receives the overhead bit sequence which would tell it to enter write - mode . ( the only conditions under which data could be destroyed by these commands is when the module has been interrupted in the middle of a previous write sequence , and in this case the data may be presumed corrupt anyway .) there are two types of write data time slots , write one time slots and write zero time slots . a write data time slot is initiated when the host pulls the data line from a high logic level to a low logic level . all write data time slots must be a minimum of 60 microseconds in duration with a minimum of 1 micro - second recovery time between write cycles . in this example , the crude time base in the module provides a range in the possible time durations of a pulse width to time between pulses of 4 : 1 ; timing relations are defined with respect to a one - shot in the module which will provide a pulse width of at least 15 microseconds ( but not more than 60 microseconds ). this one - shot is preferably trimmable , to a wide variety of speed ranges . moreover , other circuit arrangements could be used instead , to generate a timing base . thus , in the following example , the timing window of 15 - 60 microseconds does not delimit the claimed inventions , but merely serves to illustrate how the innovative one - wire bus protocol can cope with timing uncertainty . the same principles of operation could be used if the modules were trimmed to have varying time delays within the range of ( for example ) 1 - 4 microseconds . fig2 a is a timing diagram of a write - 1 operation , in the module of the presently preferred embodiment . for the host to perform a write - 1 operation , the following steps occur : 1 . the data line is held at a high level for at least one microsecond . this ensures that the edge detector in the module will have sufficient set - up time . 2 . the data line is pulled to a logic low level . this provides the falling edge which the module uses to time its operations from . 3 . the data line is then held low for at least one microsecond , to ensure that the falling edge is detected by the module . 4 . after the falling edge , the data line must be driven high within 15 microseconds , and held high for at least 60 microseconds ( from the time of the falling edge in step 2 ). this ensures that the data line will be high when the pulse generated by the one - shot in the module ends . when the pulse ends ( producing a falling edge ), the module will sample the logic level of the data line , to determine whether a 0 or a 1 is the data value . steps 1 - 4 can then be repeated , to write the next bit . fig2 b is a timing diagram of a write - 0 operation , in the module of the presently preferred embodiment . the steps in this operation are the same as the steps in a write - 1 operation , except that , in step 4 , the data line is held low during the window of 15 - 60 microseconds after the falling edge . this ensures that the data line will be low at the end of the pulse generated by the one - shot in the module . fig3 is a timing diagram of a read operation , in the module of the presently preferred embodiment . when data is to be read from the token by the host , the host will generate the read data time slots . a read data time slot is initiated ( as in steps 1 - 3 of the write - 1 operation ) when the host pulls the data line from a logic high level to a logic low level . as soon as the module sees this falling edge , it will conditionally turn on its pull - down transistor ( depending on the value of the data bit being read ), and will leave the pull - down transistor turned on ( conditionally ) until the end of the pulse generated by the one - shot . thus , during a read operation , after the falling edge ( and the following guard time ), the host waits for enough time for the data line to have been pulled up to a high level ( if the module is not holding it down ), and then samples the data line . in the presently preferred embodiment , where the host port has a 5 kilohm pull - up resistor , the host preferably tests the data line 10 microseconds after the falling edge . from 15 to 60 microseconds after the falling edge , the state of the data line is uncertain , since it is not known whether the module has yet timed out and released the data line . all read data time slots must be a minimum of 60 micro - seconds in duration , with a minimum of 1 micro - second recovery time between read cycles . the module &# 39 ; s time base varies widely between parts , and may also be quite dependent on temperature ( which will typically vary the battery voltage ). however , the module &# 39 ; s time base will not vary as widely from moment to moment . thus , in a less - preferred alternative embodiment , the host can measure the time base of the module ( by performing more frequent samplings during a read operation ), and maximize the data rate for the particular module being read . however , this is not preferred , since the most preferred system embodiment will typically have only brief exchanges ( one read , or one read plus one write ) in each contact of a host with a particular module . these innovative ideas are used as parts of a very innovative system architecture . the electronic module enabled by the innovative teachings herein is extremely compact and extremely cheap . from a systems point of view , this module is in some ways more analogous to a read / write bar code than to a conventional electronic memory system . thus , this innovative module can be used for price tags , for inventory tags , for work - in - process monitoring , for retail sales ( to permit customers to select merchandise ( e . g . by taking one module or a handful of modules to a cashier or to an automated check - out machine ), without exposing the actual inventory to pilferage ), and for a wide variety of other such compact data - transfer applications . thus , the innovative module described can be regarded as an electronic token , which is as portable and rugged as a metal token , but which is far more versatile . an electronic token can be interfaced to by an open - collector pin in a very wide variety of microprocessors . moreover , some port pins on some microprocessors have very weak pull - ups , so that these port pins could also be used . alternatively , a microprocessor which did not have any such pins available could buffer its port through a standard ttl open - collector buffer . it is particularly advantageous to interface a token receiver to a standard microcomputer system , such as an 80286 - or 80386 - based pc clone . fig1 shows a simple example of a host system , which can interface to electronic token modules like the module of fig1 . in this example , the token data line is taken from an open - collector pin of a microprocessor ( such as a motorola 68000 ). a 5 kilohm resistor 1024 provides a pull - up to v cc , and an open - drain driver 1202 amplifies transmitted signals . other sample embodiments of the host system will be discussed below , with reference to fig1 and 20 . preferably each host system uses a physical configuration of electrical contacts which provides rapid contact for electronic data modules ( tokens ). a slot , dimensioned to receive electronic tokens , includes a grounded contact positioned to make contact to the edge of a token which may be inserted , and two data contacts which are positioned to make contact to the opposite faces of the token . each of the data contact is connected to an open - collector driver circuit , including a pull - up resistor which will bring the potential of the contact high when the slot is empty . the token is shaped so that its edge , and one of its faces , are connected to the token &# 39 ; s ground line , and the other face is the token &# 39 ; s data line . thus , when a token is inserted ( no matter which way the token is facing ), one of the two data contacts will be immediately pulled to ground , by short - circuiting across the ground plane of the token . the system can thereby recognize that a token has been inserted , and that the other data contact ( the one which was not shorted to ground ) can communicate with this token &# 39 ; s data line . thus , even though the token itself is asymmetric , and even though the directional orientation of the token is not initially known to the system , no physical asymmetry needs to be introduced into the token or the slot to assure proper data interface . fig1 shows the configuration of contacts used , in one embodiment , in a host system to contact electronic tokens . a slot 1720 in a body 1710 is dimensioned to accept a token ( e . g . like the tokens of fig1 a or 1b ). contact 1736 , in the bottom of the slot 1720 , is positioned to contact the edge of an inserted token . contacts 1734 and 1732 , on opposite sides of the slot 1720 , will contact the two opposite faces of the token . thus , when a token line that in fig1 is inserted into a slot like that of fig1 , contact 1736 will always contact case portion 0100b . case portion 0100b will also contact one of the other contacts 1732 / 1734 , and pull it to ground . thus , when a token is inserted , the host system will see one of the data lines dq1 / dq2 pulled to ground . this tells the host that a token has been inserted , and it also tells the host which of the two data lines dq1 / dq2 the token &# 39 ; s data lead is connected to . ( the token &# 39 ; s data lead will be found connected to the data lead which was not pulled to ground .) in an alternative embodiment , a wand provides rapid contact to a two - terminal electronic token data module . the wand includes one contact which will make contact to the periphery of an electronic token which the wand is pressed against , and one contact which will make contact to the center of the token . preferably the wand includes a base portion which is shaped to be worn on the second joint of a user &# 39 ; s finger . this wand can be used for very rapid manual contacting of electronic tokens in various physical positions . this can be very advantageous in a variety of data collection / updating applications such as retail checkout , or tracking work - in - progress in a computer - assisted - manufacturing environment . fig1 a , 15b , and 15c show the finger - mounted wand used , in the presently preferred system embodiment , for manually contacting multiple electronic tokens successively . this wand is particularly suitable for contacting tokens which are firmly affixed to sold items , for applications such as workpiece identification in computer - integrated manufacturing , or inventory control , or equipment maintenance records . fig1 b and 15a shows the top portion 1510 of the wand of the presently preferred embodiment . the entire structure shown , except for conductive ring 1518 , is preferably molded from a non - conductive polymer . a lip 1516 surrounds a recess which is dimensioned to mate with tokens of a known dimension . a thin ring of conductive polymer 1518 circles the inner edge of the lip 1516 . this ring will make the actual electrical contact to the edge of a token . the ring 1518 provides sufficient elastic deformation to assure that secure contact is made . a through - hole 1502 in the center of the recess carries a wire ( not shown , for clarity ) which contacts the center of the token when contact is made . fig1 a shows the back side of the top portion 1510 . note that another through - hole 1504 permits a second wire ( also not shown ) to contact the backside of conductive ring 1518 . a groove 1514 permits the two wires to be led out , for connection to a host computer system . fig1 c shows the finger - mounted base portion 1590 , which preferably is cemented ( or otherwise attached ) to a top portion 1510 , like that shown in fig1 a and 15b . the flat surface 1592 is attached to flat surface 1512 on the top portion 1510 . aperture 1594 is shaped to fit a user &# 39 ; s finger . preferably this is shaped to fit the second joint of the user &# 39 ; s finger , unlike normal ring sizing , where the ring is placed on the first joint of the finger ( nearest the palm ). thus , the complete structure is compact , and can be easily worn on the user &# 39 ; s finger without interfering with other activities . the lead wires can be connected to , for example , a belt - mounted small data - holding computer unit , or to a belt - mounted rf interface unit . the host system must have an open drain driver with a pull - up resistor of approximately 5 kilohms to v cc on the data signal line . the token has internally an open drain driver with a 500 kilohm pulldown resistor to ground ( fig6 ). the open drain driver allows the token to be powered by its small internal energy source and still have the ability to produce sufficiently large voltage swings at the outputs . the pulldown resistor holds the data input pin at ground potential when the token is not connected to the host . fig1 shows the electrical driver configuration used on the host side , in one class of embodiments , to interface to electronic tokens . two open - collector interfaces are provided , 1810a and 1810b . the data line dq 1 , from a contacting fixture ( e . g . like that shown in fig1 ) is connected to one of the interface circuits 1810s , and the other data line dq 2 is connected to the other interface circuit 1810b . when the host system has not been communicating with a token , it can simply poll the xor value the two data input lines di 1 and di 2 to test for the presence of a token . when a token has been inserted , the host can begin to drive the dq line which was not pulled low by the insertion of the token . as discussed below , the host would normally issue a reset sequence , read the memory , and then ( in some cases ) write the memory . the presently preferred embodiment also uses an innovative electrical interface to the tokens , which permits interfacing to tokens with a wide variety of computers , including a tremendous variety of personal or other computers , as long as the computer includes an interface rs232 ( or some comparable standard ). the token has a one - wire - bus interface , implemented in a battery - backed open - collector architecture , which provides a read / write interface . the communication protocol expected by the token has been specified so that the token never sources current to the data line , but only sinks current . the communication protocol also includes time - domain relations which are referenced to a very crude time base in the token , and the system must preserve timing relations which will be satisfied by tokens in which the time base takes on any of the wide range of foreseeable speeds . to interface to this protocol , the programmable capabilities of the standard uart chip in the computer &# 39 ; s rs232 interface are exploited to provide adaptation to the time base requirements of the module . this is done by writing an entire byte of output from the uart , at a much higher baud rate than the module can be relied on to accept , to write a single bit of data into the module . the read - data line ( rx ) of the uart is tied back to the transmit - data line ( tx ) through a resistor , so that the uart will also always report a read of the same data byte being written , unless the token has turned on its pull - down transistor . an electrical network is used as the interface which ( in effect ) reverses the ground plane identification of the two leads , but which does provide the correct signal polarity to the token for signal discrimination in read mode . fig1 shows a network used , in the preferred version of this embodiment , to interface from a serial port to an electronic token . data line 1900a contacts the data terminal 0100a of a token , and ground line 1900b contacts the ground terminal 0100b of a token . the example shown provides an interface to a standard pc &# 39 ; s serial port . lines rts ( pin 4 ) and dtr ( pin 20 ) are used for a power supply in this embodiment , but either of these pins could optionally be used alone instead . when interfacing to a token , lines dtr and rts are driven to a positive voltage level , zener diode 1910 holds the data line 1900a to a constant potential at all times . in the presently preferred embodiment , zener 1910 is a 5 v zener . the serial data out pin tx ( pin 2 ) is used , with a series resistor 1912 , to modulate the ground line 1900b which is connected to the ground contact 0100b of the token . the serial data in pin rx ( pin 3 ) is used to receive data from the ground line 1900b . thus , the token is in effect connected backwards . schottky diodes 1910 and 1914 clamp the excursion of the ground line 1900b . ( these diodes can be implemented as a single 3 - pin double - schottky - diode package .) the reversed connection of the token turns out to be surprisingly advantageous . all of the rs232 interface chips presently on the market provide a trip point voltage of about 1 . 5 volt ( with about a half volt of hysteresis ). ( this is not part of the formal rs232 specification , which simply defines the voltage range from - 3 v to + 3 v as a &# 34 ; dead zone &# 34 ;.) thus , this reversed connection , and the dc offset , assures that the modulation effected by the token module will fall into a range around the line receiver chip &# 39 ; s trip point . the tx and rx signals referred to above will normally be translated by a line / driver receiver chip ( which converts the voltage levels to normal logic levels ), and will then be connected to a universal asynchronous receiver / transmitter ( uart ) chip . such uart chips are a widely used commercial part . they include logic to perform low - level signal formatting and manipulation , and byte - wide serial / parallel conversion of data streams . one example of a commonly used uart chip , suitable for use in the embodiment of fig1 and 20 , is an intel 8250 . however , a wide variety of other chips could be used instead . uarts are normally programmable , for parameters such as number of bits , baud rate , etc . since each uart contains its own time base , timing parameters can specified to the uart without considering what the speed of operation of the overall system may be . ( for example , the pc - type systems currently in widespread use range from xts operating at 4 . 77 mhz to 80386 systems operating at 33 mhz .) in the presently preferred version of this embodiment , the serial data lines are interfaced to a uart which has been programmed for operation at 115 kilobaud , with 1 start bit , 6 data bits , and 1 stop bit per byte . however , these parameters can readily be varied : for example , even without changing the specific timing parameters of this embodiment , the number of data bits can be increased to seven or eight or more without causing any problems . fig2 shows timing relations preferably used , in a sample embodiment , for interfacing from a standard rs232 pot to an electronic token to perform a write - 0 operation . ( these timing diagrams show signals with reference to the token &# 39 ; s ground terminal , which , in this embodiment , is not the same as system ground .) when the uart sends a start bit , the token sees the falling edge which starts its time window . the start bit &# 39 ; s time slot guarantees that the line level will be held low for 8 . 68 microseconds after the falling edge . thereafter , the 6 data bits ( all set to zero ) keep the signal level low , from 8 . 68 microseconds after the falling edge until 60 . 764 microseconds after the falling edge . thus , whenever the one - shot pulse ends , and the token samples the data line , it will see the desired data value . this is achieved by writing an entire byte of output for each bit desired . after the data bits , the stop bit provides a high level for 8 . 68 microseconds , which is more than long enough to reset the edge detector n the token . a write - 1 operation is almost the same as the write - 0 operation , except that the data bits are all 1s ( rather than all 0s ). the resistor 1912 means that signals drive onto the tx lie will be echoed on the rx line . this permits a simple read operation . after the token has been set into read mode , the host writes a byte of all 1s . at the same time , the receiving side of the uart will be receiving a byte of data . if the first received data bit is a zero , the host knows that the module has turned on its pull - down transistor . if the first received data bit is a one , the host knows that the module has not turned on its pull - down transistor . the remaining data bits are ignored , since even if the pull - down transistor was on , the module may already have turned it off at any time after 15 microseconds past the falling edge . in the presently preferred embodiment , the following code is used to drive the serial interface to a token . in this listing , &# 34 ; tbe &# 34 ; means &# 34 ; transmit buffer empty &# 34 ;; &# 34 ; tsre &# 34 ; means &# 34 ; transmit shift register empty ,&# 34 ; i . e . no data is currently being sent ; &# 34 ; rda &# 34 ; means &# 34 ; received data is available ,&# 34 ; i . e . the receiver side of the uart is holding some data . thus , to perform a read operation , the host writes out hexadecimal byte ff h ( or 3f h -- with only six bits the two numbers appear the same . the first data bit in a byte is conventionally taken as the least significant bit . therefore , the received data byte can simply be tested to see whether it is odd or even . ______________________________________this program performs a simple functionality test on a ds1272with 256 bit capacity and select bits of zero . the ds1272 isconnected to com1 } uses crt ; { standard pascal unit required for crt control } procedure wbyte ( s : word ; x : byte );{ this procedure sends out the byte x to the ds1272 connectedto the serial port having port address s .} vari : byte ; beginfor i := 1 to 8 do begin { send all eight bits in the byte } repeat until port s + 5 ! and $ 20 = $ 20 ; { wait for tbe } if odd ( x ) then port s ! : = $ ff else port s ! := 0 ; { sendbit } x := x shr 1 ; { shift in the next bit } end ; end ; function rbyte ( s : word ): byte ;{ this function returns one byte received from the ds1272 connectedto the serial port having port address s .} vari , x , b : byte ; t : longint absolute $ 40 :$ 6c ; { system timer tick } m : longint ; { time limit } beginx := 0 ; { collect the bits in x } m := t + 1 ; { set the wait time limit . } for i := 1 to 8 do begin { receive all eight bits in the byte } repeat until port s + 5 ! and $ 40 = $ 40 ; { wait for tsre } if port s + 5 ! and 1 = 1 then b := port s ! ; { clear receiver } port s ! := $ ff ; { send out read time slot } x := x shr 1 ; { position byte to receive bit } repeat until ( port s + 5 ! and 1 = 1 ) or ( t & gt ; m ); { wait for rda } if t & gt ; m then b := $ ff else b := port s ! ; { get the bit } if odd ( b ) then x := x or $ 80 ; { put new bit into byte } end ; rbyte := x ; { return the received byte } end ; constsb = 0 ; { select bits are zero } ms = 32 ; { memory size is 32 types } typedatary = array 0 . 31 ! of byte ; { data transfer buffer type } varpa : word absolute $ 40 : 0 ; { base port address of com1 } s : string 31 ! ; { string to collect message } da : datary ; { array of data to be transmitted } x , y : word ; { position of cursor } i : byte ; { array index } c : char ; { command character } begin { main program code begins here } text color ( yellow ); textbackground ( blue ); clrscr ; if pa = 0 then writeln (&# 39 ; com1 does not exist .&# 39 ;) else begin { this section sets up the serial port with port address pa for115200 baud with six data bits , one stop bit , and no parity . } port pa + 3 ! := $ 81 ; { set the dlab } port pa + 0 ! := $ 01 ; { baud rate } port pa + 1 ! := $ 00 ; { is 115200 } port pa + 3 ! := $ 01 ; { 6 data , 1 stop , no parity } port pa + 1 ! := $ 00 ; { no interrupts } port pa + 4 ! := $ 03 ; { rts and dtr on }{ the next section provides a simple option menu for exercingthe functions of the ds1272 . } c := &# 39 ; s &# 39 ;; { display options the first time through } while true do beginif c = &# 39 ; s &# 39 ; then beginwriteln (&# 39 ; ds1272 test program &# 39 ;); writeln ; writeln (&# 39 ; i = initialize ds1272 &# 39 ;); writeln (&# 39 ; w = write to ds1272 &# 39 ;); writeln (&# 39 ; r = read from ds1272 &# 39 ;); writeln (&# 39 ; s = show option list &# 39 ;); writeln (&# 39 ;& lt ; esc & gt ; = end program &# 39 ;); writeln ; end ; write (&# 39 ; option = &# 39 ;); repeatc := upcase ( readkey ); if c =# 27 then begin { abort if esc is received } writeln (&# 39 ;& lt ; esc & gt ;&# 39 ;); writeln ; halt ; end ; until ( c = t ) or ( c = &# 39 ; w &# 39 ;) or ( c = &# 39 ; r &# 39 ;) or ( c = &# 39 ; s &# 39 ;); writeln ( c ); case c of &# 39 ; i &# 39 ;: for i := 0 to ms do wbyte ( pa , 0 ); { initialize ds1272 }&# 39 ; w &# 39 ;: beginwrite (&# 39 ; data to write = &# 39 ;); x := wherex ; y := wherey ; write (&# 39 ;!&# 39 ;); gotoxy ( x , y ); readln ( s ); da := datary ( s ); { transfer string to buffer } wbyte ( pa , sb shl 1 or $ f9 ); { send the comand byte } for i := 0 to pred ( ms ) do wbyte ( pa , da i ! ); { send data } end ;&# 39 ; r &# 39 ;: beginwbyte ( pa , sb shl 1 or 1 ); { send the command byte } for i := 0 to pred ( ms ) do da i ! := rbyte ( pa ); { get data } if da 0 ! & gt ; 31 then da 0 ! := 31 ; { limit length to 31 } for i := 1 to da 0 ! do if ( da i ! & lt ; byte (&# 39 ;&# 39 ;)) or ( da i ! & gt ; byte (&# 39 ; z &# 39 ;)) then da i ! : = byte (&# 39 ;.&# 39 ;); datary ( s ) := da ; { transfer data to string } writeln (&# 39 ; message received = &# 39 ;, s ,&# 39 ;!&# 39 ;); { display it } end ; end ; writeln ; end ; endend______________________________________ since the token is designed to be used as a removable tagging device , it can be viewed at the system level as a memory element plaqued by numerous cold solder joints . during either reading or writing operation , physical contact with the token may be broken . this in turn will cause either the received data to be erroneous or the transmitted data to be incomplete . the recommended way around these problems is as follows : step 5 -- use majority wins logic to derive data ( i . e . 3 out of 5 wins ) it will be recognized by those skilled in the art that the innovative concepts disclosed in the present application can be applied in a wide variety of contexts . moreover , the preferred implementation can be modified in a tremendous variety of ways . accordingly , it should be understood that the modifications and variations suggested below and above are merely illustrative . these examples may help to show some of the scope of the inventive concepts , but these examples do not nearly exhaust the full scope of variations in the disclosed novel concepts . for example , by including integrated circuits with more security features ( such as a ds1207 timekey ™ from dallas semiconductor corporation ), the innovative module bus architecture can also be used for applications where security is a high priority . advantageous applications of this type may include &# 34 ; smart cards &# 34 ;, personnel identification badges , and electronically verified currency . for example , the ram / rom hybrid cell of fig1 could alternatively be implemented with eprom - type transistors . in this case , the combination of fuse 1130 and transistor 1140 would be replaced by a single floating - gate transistor . for another example , the laser - blown fuses 1130 used in the presently preferred embodiment of fig1 could be replaced by electrically - blown fuses instead . for another example , many advantages can be obtained by adapting the disclosed innovative concepts to a module which included electrically programmable elements ( eeprom memory or eepal logic ) instead of battery - backed memory and logic . such a module would be more expensive , and would require a modified bus protocol ( so that the module could be powered from the data line while in contact with the host ). for another example , the board in the innovative module of fig1 can be flexible or rigid , and can be made of conventional or other printed - circuit - board construction . similarly , the one or more integrated circuits in the module can be packaged in a soic or other conventional package , or mounted using chip - on - board or chip - on - flex techniques , or mounted in other ways , as long as sufficient hermeticity is achieved . ( preferably the packaging technique is also selected to minimize cost .) for another example , the innovative system and method disclosed for interfacing an electronic token to an rs232 port can be applied to serial ports using other standards . even without exploiting the capabilities of uart chips , tokens can be interfaced to a very wide variety of serial ports , or to ports such as pins of the parallel printer port on a standard pc . the contents of the data field in the module can be chosen by the systems designer , and a wide variety of formats can be used . of course , some additional software would normally be used on the host side for data error checking . for example , cyclic redundancy check bits may be encoded with the stored data , using a variety of methods . of course , a much more accurate time base in the module can be provided by using a higher battery voltage . however , the use of the low battery voltage of the presently preferred embodiment is advantageous in providing low cost and low power consumption . it should be noted that ( in line with the discussion above regarding fig5 a and 5b ) that a more accurate time base could also be achieved by modifying the cmos processing to lower the transistors &# 39 ; threshold voltages v tp and v th . however , as is well known to those skilled in the art of cmos design , such a modification would carry its own costs ( e . g . increased subthreshold current ), and therefore is not presently preferred . however , it is important to note that some of the advantages of some of the disclosed innovations could be realized in such an environment . it must be understood that the many innovative teachings set forth herein can be used separately . for example , a symmetric tow - sided token package could be used instead , with a contact in the center of each face . this would not be as cheap nor as robust as the package of fig1 a , but many of the innovative teachings could be adapted for use in such an embodiment . for another example , the charge consumption due to precharge of columns which are not being read during a memory access could be reduced by configuring the memory as multiple subarrays . ( this might be particularly advantageous when using larger memory sizes .) for another example , the packaging of the module can be widely varied , even within the context of a module which interfaces to a one - wire bus . for example , it is contemplated that a standard connector configuration ( such as a subminiature 3 / 32 &# 34 ; phone plug ) could be used to define pin placement for a data module . while such configurations are believed to be as advantageous as the principal preferred package embodiments , such alternative package embodiments do not have their own advantages , and many of the innovative , teachings set forth herein can be used in such a context . as will be recognized by those skilled in the art , the innovative concepts described in the present application can be modified and varied over a tremendous range of applications , and accordingly their scope is not limited except by the allowed claims .