. .

Using the PCMCIA Standards in Space

Douglas W. Caldwcll Jet Propulsion Laboratory, California institute of Technology Pasadena, California 91109

even thicker card (such as for disk drives). As 1. Abstract “” hccame a popular concept, PC Cards’ provide examples of software services were acldcd to standardize the commercial technologies and standards which interface bet wcen u scr soft ware and the cards. can be exploited for spacecraft electronics Today, some 500 companies are members of elements. The technology offers a very compact PCM(~IA and a similarly large number of and mature packaging approach, a simple commercial products arc available. communications interface which supports fault- isolation, and an existing product base which 3. Overview of the Standard supports rapid prototyping and module This section provides a synopsis to development. This document describes the introcl(ice the reacler to the PCMCIA standards. origins of the PCMCIA standards, the high-level The complete standards [1] are available from characteristics of the interface specification, the PCMC:IA. A more readable introduction is benefits possible for space applications, and an available from PCMCIA and may be also found overview of some of the many modules presently in tec}lnical bookstores [2]. available. A recent addition, Cardbus, which marries the PCMCIA form-factor and the PCI 3.1 l%ysical Characteristics high-speed parallel is discussed. The PC Card Standard, 1995 Release, [1] is the most current revision of the standards. 2. History As stated above, three physical form factors are The Persona] Computer defined. Table 1 lists ‘in;portant dimensions of Industry Association (PCMCIA) originated to the three form-factors. In all cases, the card serve the manufacturers of memory expansion guide rib is 3.3 mm tall, Approximate] y products for the nascent notebook computer 45x70nml is actually available for internal industry. As such, they were required to bc low circuits although circuit boards are often double- power and very small; the first cards were sided and some cards contain multiple boards. 54x84x3.3 mm, almost exactly the size of three Table 1. Mechanical Form Factors stacked credit cards. Soon, innovators took advantage of the availability of the “expansion slots” provided for menlo~ cards and implemented other functions such as fax- and adapters. New functionality sometimes required additional height and a “Type form factor was added. Later, a “Type III” Eq3W 11”was added to codify the practice of taking The electrical interface is across a 68-pin advantage of two adjacent slots to provide an (2 x 34) connector on the narrower end of the card. In the terminology of PCMCIA, a card ] PC Card is a trademark of PCMCIA, the phlgs into a sockcj which is managed by a Personal Card International hardware element called a socket controller. The Association. socket controller is part of a hosf adapter which bridges from 11OSI environment to PC Cards. complexity, it also increases system fault Table 2 lists the various types of pins in the tolerance as will bc described shortly. Since interface and the quantity associated with each. most I’CMCIA hosts support exactly two card Although these signals look like the signals sockets, many socket controller ICS provide two commonly found on a parallel bus, I!E _k??___C.@ sets of socket pins, one each for the two filt erfac.c i S. .not_a ..b!l s_i_ntect12ce. Supporti ng live- independent sockets. insertion requires independent, isolated connections between the a controller and each socket. While this increases the wiring

Table 2. Electrical ]ntcrfacc Overview Pin Functions l’in Mnemonics Pins in Pins in Memory Mode 1/0 Mode—. Address AO..A25 26 26 Data DO..DI5 16——.-———— 16 —. Power Vcc, Vppl ..2 4 _—— —.— — 4 - Ground GND 4 _—— ————— 4 Card Detect CI)I..2 2———--————. 2 Card Selects CEI ..2, OH, WWPGM 4 4 — Card Status WAIT 1 ———.———— 1 -. Battery Detect BVD1 ..2 2——--—.—— — Memory WP, RDY/BSY 2 Control —-.———— — 1/0 Control 10RD, IOWR, 101S 16, - 6 IREQ, INPACK, STSCHG Other 1/0 SPKR 1-— Othcr Control RESET, R13G, RFSH 3 ‘—--—--—”—-- ——-— 3 .-. —— — Reserved RFu 4 1

would allow SW at 5V. Most cards draw less Vcc is the primary card supply and may than IW. be either 3.3V or 5V. The newest standard PC Cards al c generally housed in metal supports two even lower voltages. Cards may be cases and, if ungroul Ided, such cases can allow individually powered-down so Vcc may also drop static charge buildup in a radiation environment. to ground. Vpp was originally a programming The standard does not specify case grounding voltage (e.g., for Flash EEPROM); it can be used although it would seem necessary to avoid static as a general-purpose secondary supply but its use buildup even for terrestrial applications and to is limited because most host adapters provide meet the standard’s static discharge tests. only low-current Vpp supplies (< 50 mA). Vpp The interface is capable of supporting may be 12V, equal to Vcc (default), grounded, or transfer rates of at least 20 MB/s. (The standard non-existent. Single-chip power switches now specifies memory read and write timing down to exist (e.g., TI TPS2201 IDF, [3]) which provide 100 ns. Data transfers can be 8-bit or 16-bit.) power multiplexing of Vcc and Vpp for two independent sockets. The standard specifies 3.2 Software: Card and Socket Services current-carrying capacity of 0.5 A/pin which The PCMCIA standards do not stop with mechanical and electrical compatibility; software

2’ . .

is required to implement a plug-and-play system. 4. P(;MCIA in Space Socker Services is the device-driver software layer. It presents a hardware-independent 4.1 Advantages interface to the next-higher layer of software, The most readily apparent benefits of PC Card Services. This allows Card Services to Cards arc their small size (23 cnl~ for Type 11) remain independent of the details of the actual and consequent low mass (< 30 gm, typical for socket controller used in the host adapter. In Type 11). Their functional density is on par with practice, socket controllers are relatively simple that achievable with MCMS for most and the register set of the original Intel 82365 has applications (at substantially lower cost). Their become something of a de jiacto standard. While primal y use in batter-y applications (notebook not eliminating the need for Socket Services, the computers and personal digital assistants) has usc of a such a register-compatible socket lead to intrinsically low-power designs which are controller can save Socket Services development furthel augmented by reduced-power modes (e.g. costs. standby, idle, or reduced-functionality). Typical Card Services provides generic PC Card cards draw between 0.1 W and 1 W. The functionality such as detecting (and signaling) inclusion of supporl for supply voltages below card insertion, determination of voltages and 3.3 V will further reduce power. The cards’ use compatibility, and querying of the Card in portable applications (i.e., the battery These generic Information Structure (CIS). applications listed above) and their frequent functions are provided to developers who write handlitlg during card swapping requires to handle particular PC Card Applications robust Iless. The stanclard specifies an operating Cards. ]n a plug-and-play systelm, the socket vibration level of 15 g RMS and shock of 50 g controller first detects the insertion of a card and (six axes) although many cards can withstand signals the host with an interrupt. Socket significantly higher levels (e.g., 1000 g shock). Services fields the interrupt and signals Card As mcntionccl earlier, supporting live Services. Card Services then queries the CIS to insertion of PC Cards simultaneously provides determine what kind of card has been inserted fault containment. Although called “hot and invokes the appropriate Card Application as swappi rig”, this is from the host’s perspective; a task. Through the Application, the PC Card the socket is usually “cold” when a card is and associated software become an integral, inserted. This requires power switching for each possibly transient, part of the system. individual socket. Further, since signal lines Although the use of PC Cards does not should not be connected to unpowered circuits, necessitate implementing the standard software all the signal lines are tri-state buffered on the layers, their use in custom systems should not be host side. The signal lines are switched on only dismissed. Shielding hardware from software after a card is detected and powered (with Vcc). with device drivers isn’t necessary either, but The use of current limiting and current sensing software engineering practice established on the power supplies for each socket (as is suggests that such functional partitioning is a typical ) supports over-current detection. The good idea, even in a custom system. While point-to-point, non-bus nature of the interface individual projects could benefit from PC Card results from these considerations. The side-effect technology, widespread use of the software layers of all of this is that any faulted card can k would encourage reuse from system to system, isolated from the rest of the system, either even for spacecraft. permanently or temporarily (to isolate faults or to perforl n hard reset). This capbility also allows cold-s~)aring or card-wise power reduction to be trivial 1 y implemented. Although no signal-level fault tolerance is supported (e.g., not even parity!), this may be a price that must be paid for the many other cost bcnefhs. A new Although some industrial grade (-40 - +85”C) specification augmenting the attributes of PC cards are produced, they are not common, Cards with fault tolerance features would negate Additionally, there is often not a high- the majority of the benefits of using the standard conductivity thermal path from devices to the as-is. It is unlikely that developing such a case. This is sonmwhat mitigated by the very standard would be cost-effective. low power consumption of the devices. One The physical and functional advantages simple technique for largely resolving this get us past the hurdles of technical acceptability problems is to simply remove a card’s cover, within the space community. The real advantage apply thermally-conduct i ve epoxy to each device of the PCMCIA standards is their cost reduction to bridge the gap to the cover, and then replace potential. An industrial-grade 175 MB (1 Gb) the cover. Cover rmnoval may also be required card costs around $5000 (qty. 1). to replace materials (e.g., a plastic card frame) A 360 MB (3 Gb) hard disk costs about $1000. which are not vacuuln- compatible. Hermeticity Most 1/0 cards are $200- $1000. Clearly, if requirements can [m accommodated similarly. these off-the-shelf items can be useci (without An example of an industrial device which has substantial upgrading or qualification), been upgraded for thermal conductivity and significant savings could be realiz,ed, Large hcm~eticity is Raymond Engineering’s Sentinel production volumes allow manufacturers to memory card (although this device unfortunately amortize their (large) development costs across violat(x the standard by stretching the package many units and would also be expected to yield by about 10 mTn). in this case, the result is higher quality products. approximately twice as heavy as the “bare” However, even if existing cards cannot comnlercial dcvicc. be used, the standards can and should be Card retention is normally achieved by leveraged. Virtually all the reasons for using the friction of the pins. For space applications, standards [4] are applicable: knowledge reuse, additional folce is required but the mechanisms industrial infrastructure, long-term used to ensure thermal conductivity will of(en maintainability and upgradeability, etc. A large add sufficient retcmtion forces. Of more concern number of vendors have already wrung out the are tile external 1/0 connections which must be stanclard; it is mature. A large infrastructure made opposite the 68-pin connector for supports development, prototyping, and comnmnications, data acquisition, antennas, etc. production of the cards; a knowledge base exists. At plesent, there are no standards for these Existing commercial software and test hardware cables. Some are permanently affixed to their can be used for developing aerospace-unique cards, others are attached with connectors (which cards. The size of the industry and the lack of generally have no positive retention). As with credible competitors suggests that the standards any awemb]y, cable harnesses present a problem will be supported for a significant time. which cannot be ignored. However, although Considering that VM13 has been around since the irritating, the connectors and cables do not late ’70s and is still strong, and that PCMCIA is appear to present intrinsic problems. less than five years old, it would seem reasonable Some minor issues should be mentioned to predict its viability for at least the next ten to for completeness but which do not detract from fifteen years. the standard. The point-to-point nature of the interface incurs a penalty in interface circuits. 4.2 hSUCS The penalty is not severe because of the relatively Thermal issues present the most obvious small number of connections (-60) and the problem with using PC Cards in a space availability of single-chip dual-socket controller environment. While a typical space temperature chips; this is a small price to pay for the fault range is -34 - +71 ‘C [5], the standard requires tolerance gained. Radiation is an ever-present only the commercial range of O - +55°C. issue but has nothing to do with the standard; it applies to all commercial electronics. Finally, no

4 PC Cards have ever flown in space; the (56,64 ) Reed-Solomon code protects data. The consequent distrust of “unproven” harclware is, use of’ an abstract (ciisk) interface allows the again, not unique to PC Cards and is, device to hide details from the user such as fortunately, easily rectified. physical sector mapping, error detection and correction, block erasing and writing, and storage 4.3 Memory elemmlt replacenmnl (remapping). This, in turn, A lat-gc number of memoty cards are obviates the need for wear-leveling operations in available. The simplest of these are accessed as software as part of the operating system (Flash linear memory and provide from 64 KB to 4 MB File System or FFS.). In fact, because SunDisk of mcnlory. Their primary applications are was fl cc to implement internal details, the device memory expansion (DRAM), “solid-state floppy” perfoj ms no wear-leveling. Cells arc allowed to (SRAM and I:lash), and software distribution decay until their performance is no longer (ROM and OTPROM). These are of limited acceptable; the RS code is then used to correct interest in spacecraft systems. errors and the 64. bit sub-block is remapped Nowhere is the power of evolutionary elsewl]ere. ‘]’bus, one mechanism is used to improvement more evident than in the $10011 accon lmodate wear-leveling, random bit failures, hard disk industry. Rapid improvements in linear and ] manufacturing defects (which effectively recording density and simultaneous reductions in improves chip yiekis). SunDisk’s aggressive platter and head sizes have enabled traditional technology has been so successful that the rotating media to fit into the PCMCIA fornl- majority of such clisks which are on the market factor. Presently, 320 MB disks are available arc actually rc-]abclcd SunIlisks. Raymond (MiniStor, 94Q4); only 6 months previously, the Ekgincering’s Sentinel card is a ruggedized largest drives were only 80 MB (94Q2). Since StrnDisk, these drives are used in portable applications, In 1994, :ibout 2 million PC Car-cls wet-e they must withstand more abuse than desk-bound sold [7]. The memory card market alone is disks. As an example, the MiniStor 340 MB projected to bc 8M units and $1 B in 1997. Both drive can withstand 200 G operating and 900 G Flash and disk vendors are anticipating an annual non-operating. Although they use rotating media, cloubling of available density although SunDisk the angular momentum of the devices is typically also projects an additional factor of two from ’96 low because of their small size. While the first to ‘97. l’he base factor of two for Flash is PC Card hard disks were only found in Type 111, appar~mtly due to increases in packaging ability as of early 1995, they are also available in the while the additional factor is due to increases in ‘1’ype 11 form-factor. actual chip density. Table 3 shows capacities of Relatively new to the scene are very high existing devices and projections for the next capacity Flash disks, ranging from 2 MB to 175 coupl(: of years. MB (April 1995). These solid-state devices ‘1’able 3. I’C Card Memory Capacity and present the user with an interface which is Projections. identical to a hard disk and similarly non-volatile (and S}313 immune). in this way, a great deal of Memory Type ’94 ’95 ’96 ’97 internal sophistication can be incorporated into and l’ackagin J [MB] [MB MB MB] the devices which cannot be used in traditional Flash,.— Type B __?{!_.. 80 175 500 linear memories. The SunDisk line. of Flash Flash, Type 11~ _ _!l!~L_.. 175 350 1000 disks [6] are accessed either as a linear array of Disk-d Type II _ U?!?__.. 170 nl nl logical blocks or as ATA (AT Attachment) disks Disk, Type III 120 260 500 nl Data compiled froul [7] and various other sources. complete with “sectors”, “heads”, and ‘- ‘: ‘: ktrrla Not Applicable (cards did not exist). “cy]indcrs”. Blocks (sectors) are 512 bytes. The rrlg Not Given (presco~er did not discuss). 28 1994 volues cm actuals to this author’s knowledge. logical addressing scheme allows 2 blocks to be 1995 v,dcres reprc.wnt rccrntly (as of April 95) releised products addressed or 237 bytes (128 GB or 1 terabit). A (Flmh) and soon-to-he released prodocts (disks). Other y,zws m vendors’ projections [7].

5 .

4.4 Other Functions cards and an appropriate power supply would In addition to memory cards, a large occup~’ about 750 cnl~. number of 1/0 and communications adapters are available in the commercial marketplace which could be useful in space applications. Typical 6. Conclusions data acquisition cards support 8 to 16 channels The PCMCIA PC Card standards ddine of 8- to 12-bit analog inputs at up to 100 kHz, a specifications which support small, rugged, low- small number of discrete (digital) Iincs (e.g., 8 power hardware modules. Additionally, the inputs and 8 outputs), and one or two counter- interf:ice intrinsically supports fault isolation and timers. Some cards support digital-to-analog the supporting software standards encourage true conversion. At least one vendor provides a 33 interol)erability. ‘l”he acceptance of the standard MFLOPS DSP with 4 MB of DRAM and audio- by ttlc large pollablc electronics industry quality analog 1/0 in a Type 111 package. provides a rich infrastmcture and virtually ]ntegratcd GPS receivers are available which guarantees its longevity. The few minor issues of require only an external antenna. Available conce] n in space applications can be readily collll~ltll~icatiorls cards support RS-232, MIL- addressed. Existing dense, low-power, non- STD- 1553B, SCSI-2, Mhernct, GPIB (IEEE volatile mass memory modules may be 488), CAN. Various modems and wireless immediately exploited. The spacecraft avionics adapters, both infrared and spread-spectrum indus[ry should adopt this standard, learn to radio, also exist, mitigate its few deficiencies, and reap the benefits of an established standard which supports the 5$ r~~tcnsions type of miniature electronics form-factor needed The SLICCCSS of the PCMCIA standards to reduce mass in a cost-effective fashion. has lecl to a number of follow-on standards, derivative products, and technologies which 7. Acknowledgments leverage the investment of the PCMCIA vendors. This work was performed at the Jet The 1995 release defines a new card Propu Ision Labor at m-y, California Institute of architecture called Card Bus which is Techrlology, under a contract with the National fundamentally different from the 16-bit PC Card Aeronautics ancl Space Administration. interface. A simple characterization of CardBus is that it might be seen as an answer to the 8. Bibliography question “how would one fit the essence of the PC1 Bus into the 68 pins of a PC Card while [1] PCMCIA .Ytandards. Personal Computer maintaining the plug-and-play philosophy?” The Memory Card International Association. solution is very similar to the 32-bit address/data Sunnyvale, CA. version of PCI. The use of CardBus cards would allow [2] Michael T, Mori, W. Dean Welder. modular systems to be built around a simple PCMCIA Developer’s Guide, 2rtd backplane and card cage. This will enable Edition. S y(:ard Technology. 1995. implement at ion of desktop-performance computers but which occupy a fraction of the [3] lPS22011Db: Dual-Slot PC Card volume. Using today’s packaging technology, (PCMCIA) Power lrrterj$ace Switch. for example, a processor card, expansion DRAM Texas instruments. 1994. (e.g., a couple of 8 MB Type II cards), a couple of large secondary memories (e.g., 350 MB of [4 Douglas W. Caldwell. The Role of Flash), and some external interfaces (e.g., Slandards in Spacecraf[ Avionics. AIAA Ethernet, SCSI, and 1553) would occupy about Computing in Aerospace 10. San ten Type 1 I slots. A card cage containing these Antonio, TX. 28-30 March 1995.

6