7
I 'J)botj -.L FOCUS ON: MICROCONTROLLER DEVELOPMENT SYSTEMS In this day and age, it is difficult, if not impossible, to think of electronics without microcontrollers. This article discusses some of the development tools marketed for the more popular microcontrollers. These tools fall into three categories: hardware only, software only, and mixed hardware/software. By our editorial staff. O NE of the technical characteristics by which microcontrollers are classi- fied i s the size (width) of their internal registers, which is usually 4, 8 01' 16 bits. However, there are also microcontrollers with combined register widths, such as 8/16 bits, wbile 32-bit types are on their way to ua. The diversity of devices being enor- mous, 'it is not possible to cover all micro- controllers on the market in this article. Only the most popul ar devices will be discussed in relation to the development tools available for them. These devices are typically 8-bit or 16-bit register types. Four-bit register controllers are not covered here because they appear to be used for very special applications cnly, while 16-bit and 32-bit register de- Simulator Bronz 'IOXAMPLE\HI vices are still few and far between. From a point of view of accessibility and general availabihty, four families of microcontrollers are of particular inter- est to the electronics enthusiast: ~the 80xx series from Intel, which was the first to be available in large quarrti- tics, and are currently second-sourced by many manufacturers, including Philips and Siemens; - the ST62 series from SGS-Thomson Microelectronics; ~the PIe series from Arizona Mierechip Technology, with its famous derivative, the 'Basic Stamp' from Parallax Inc.; ~the 68HCll series from Motorola, which is very popular with amateurs and professionals alike. The 803x1805x series from Intel has the largest number of members. Philipe, Siemens and others have developed ex- tended control1ers on the basis laid by Intel. An example is the Siemens SAB80C535. The aim of this article is to provide an introduction to development tools avail- able for, among others, the microcon- troll er families mentioned above. Like the microcontroller fami lies, these tools fall into categories: hardware only (rare), software only, and mixed hardware/soft- ware. Software in mixed systems Nearly all development tcols for micro- controllers make use of a program, used alone, or in combination with other pro- grams, or in combination with certain hardware (which will be reverted to fur- ther on). The software aspect i s formed by: - cross assemblers - cross compilers - fuH-page editors - linkers; - simulators; - debuggers; - format converters. Most of these programs are available in versions for different operating systems: DOS or Windows for the PC platform, or Unix for larger systems. The two most popular programming languages used for development systems are BASIC and C. In particular the 8051 and it derivatives have established a cer- tain basis as regards programming in C. Although BASIC interpreters have been developed for the 8051 family, the use of a compiler is generally preferred. In most cases, the software supplied with an evaluation kit has the following functions and features: - communication with the host computer; - uploading and downloading a program to/from the host computer; - symbolic debugging; - single-step debugging; - setting breakpoints, doing 'sn.apshots', register freezing, register tracing, set- ting watchpoints, etc. - offering an on-line assembler; - offering an on-line disassembler. Many microcontroller manufacturers and other suppliers of development tools sell a product referred to as Integrated ELEKTOR ELECTRONICS APRIL 1995

J)botj -.L IFOCUS ON: MICROCONTROLLER …cdn.eleinfo.ir/el1990-1999/pdf/1995/e954020.pdfthe 'Basic Stamp' from Parallax Inc.; ~the 68HCll series from Motorola, which is very popular

Embed Size (px)

Citation preview

Page 1: J)botj -.L IFOCUS ON: MICROCONTROLLER …cdn.eleinfo.ir/el1990-1999/pdf/1995/e954020.pdfthe 'Basic Stamp' from Parallax Inc.; ~the 68HCll series from Motorola, which is very popular

I 'J)botj -.L

FOCUS ON: MICROCONTROLLERDEVELOPMENT SYSTEMS

In this day and age, it is difficult, if not impossible, to think ofelectronics without microcontrollers. This article discussessome of the development tools marketed for the more popularmicrocontrollers. These tools fall into three categories:hardware only, software only, and mixed hardware/software.

By our editorial staff.

ONE of the technical characteristicsby which microcontrollers are classi-

fied is the size (width) of their internalregisters, which is usually 4, 8 01' 16 bits.However, there are also microcontrollerswith combined register widths, such as8/16 bits, wbile 32-bit types are on theirway to ua.

The diversity of devices being enor-mous, 'it is not possible to cover all micro-controllers on the market in this article.Only the most popul ar devices will bediscussed in relation to the developmenttools available for them. These devicesare typically 8-bit or 16-bit registertypes. Four-bit register controllers arenot covered here because they appear tobe used for very special applicationscnly, while 16-bit and 32-bit register de-

Simulator Bronz

'IOXAMPLE\HI

vices are still few and far between.From a point of view of accessibility

and general availabihty, four families ofmicrocontrollers are of particular inter-est to the electronics enthusiast:

~the 80xx series from Intel, which wasthe first to be available in large quarrti-tics, and are currently second-sourcedby many manufacturers, includingPhilips and Siemens;

- the ST62 series from SGS-ThomsonMicroelectronics;

~the PIe series from Arizona MierechipTechnology, with its famous derivative,the 'Basic Stamp' from Parallax Inc.;

~the 68HCll series from Motorola,which is very popular with amateursand professionals alike.

The 803x1805x series from Intel has thelargest number of members. Philipe,Siemens and others have developed ex-tended control1ers on the basis laid byIntel. An example is the SiemensSAB80C535.

The aim of this article is to provide anintroduction to development tools avail-able for, among others, the microcon-troll er families mentioned above. Likethe microcontroller fami lies, these toolsfall into categories: hardware only (rare),software only, and mixed hardware/soft-ware.

Software in mixed systemsNearly all development tcols for micro-controllers make use of a program, usedalone, or in combination with other pro-grams, or in combination with certainhardware (which will be reverted to fur-ther on). The software aspect is formedby:

- cross assemblers- cross compilers- fuH-page editors- linkers;- simulators;- debuggers;- format converters.

Most of these programs are available inversions for different operating systems:DOS or Windows for the PC platform, orUnix for larger systems.

The two most popular programminglanguages used for development systemsare BASIC and C. In particular the 8051and it derivatives have established a cer-tain basis as regards programming in C.Although BASIC interpreters have beendeveloped for the 8051 family, the use ofa compiler is generally preferred.

In most cases, the software suppliedwith an evaluation kit has the followingfunctions and features:

- communication with the host computer;- uploading and downloading a program

to/from the host computer;- symbolic debugging;- single-step debugging;- setting breakpoints, doing 'sn.apshots',register freezing, register tracing, set-ting watchpoints, etc.

- offering an on-line assembler;- offering an on-line disassembler.

Many microcontroller manufacturersand other suppliers of development toolssell a product referred to as Integrated

ELEKTOR ELECTRONICS APRIL 1995

Page 2: J)botj -.L IFOCUS ON: MICROCONTROLLER …cdn.eleinfo.ir/el1990-1999/pdf/1995/e954020.pdfthe 'Basic Stamp' from Parallax Inc.; ~the 68HCll series from Motorola, which is very popular

FOCUS ON: MICROCONTROLLER DEVELOPMENT SYSTEMS

Fig. 1. Typical example of a microcontroller system development tool. This is a mini-emulator(courtesy Raisonance).

Development Environment, or IDE. TheIDE is aimed at giving the user ready ae-cess to any development tool he 01' shewishes to use. The number of IDEs run-ning under Windows is increasingrapidly. These are the features whichshould be offered by a good developmentenvironment:

- an easy-gaing and efficient user inter-face, which assumes the use of

- a multi-windows editor;- mouse contral;- a quasi-automatie assembler-to-objectcode translator;

- an interactive on-line help function;- a notepad to record useful jottings dur-

ing the development phases.

Most assemblers corne complete with abinary-to-Intelffex file format converter.The IntelHex format is the standard formost development systems and evalua-tion boards.

Cross assemblers, like the CRoss-32meta-assembler from Isit, are capable ofcompiling object code for many types ofmicrocontrolJer (which are then calJedtarget devices). The advantage ofworkingwith a cross assembler is that it allowsyou to work with more than one type ofmicrocontroller.

Hardware in mixedsystemsAlthough nearly a11 development toolsfor microcontrollers include some hard-ware, systems based on hardware onIyare very rare. The hardware may be clas-sified as folIows:

- development eards;- evaluation eards;- kits and starter kits;- emulators.

In general, an emulator should have thefollowing abilities:

- trace in real time;- set breakpoints;- oparate in single-step mode;- measure periods;- visualize memory usage.

Spread throughout this article are sereensnapshots of emulator programs runningunder DOS and Windows.

The iCIBI is an example of a very power-ful in-circuit emulator. Depending on theplug-in socket 01' adaptor used, the iel81emulates almost anything from a Z80 to

~$an 8085, not forgetting the HD64189,- RC51 - sx

~oiect Debug Options Window tlelp 68HCll, 80C552, 515, 517, 31/32, 535,..' ~ ... ,o~J;TolfllW= sx SERIE.A51 ~ -

=1 sx MESU.C li...~f.-"Jl;;j MEN - P"thRnd~. laI Wlndnwa ·,sx "., B," ... I,IDD~' '0. MemDry !;onngure W!nd_ Hdp

1::-..;.; .... >!II!iieSc:>

3-CHANNEL RE . Emuta.OI SI•• us (C"t~u> .. . Re !s'e,s <CI.!>R> ·~"... "'"c ... ,. .. ......un •• I~,INI"I';I ••":I ..I:; Fic C 1<0 2J&7II.N" • • , '< • •File: SX_MENU (menu dr Model

Da. ~~~~ .. ~ ~~Date : 12/92 o I.iny ""nI< .. N " sc ~ .. H '" ~

Au' -" ~ 1: ec " ec ~ .. ..tn Auteur : FURaisonance ""nk 2 .. ~~ " ec " ~

Obj O~mallIkml< J ce ~ .. " cc ac ce "in --- Objet : KRX example

Ce ======================= @!..aJgee et d \

O.!:!.ugeTS

#include <reg552.h> . ·rIt! Priltinclude <stdio.h> Debug - m&8s~emble4 Code <Ctrl.O> .· - Stad: <CI,hK> ·

N"...... " •• on · ·ltindude <KRDCLH> ~~ .~,

"l!i~~ 6"

~~~, .." ~J"P -, 7..H 65

#include <SX.H> 181 S.I!.mb -"--",,, .. ,~ . TIH ....~" ,,~ ~ ... ~" ..DUne.

N., "" ~ 71.A ~" ..~

~. ~ ~B c ~" "N" 5 .. ~. 7.. .~..l"8l Type.

.... .... gUBB A,.64 .~~".. ~" ~ ... .00 N"" 6..... .., A.I ..e .00 ..l -, ~"8" ~UBR A,188 ... ... sx_menu <RC> _. seaa ,~ J' '"" "init <RC> DEFINE _2 --"2, .,- - A, • ..., ~::". sx_

_.25"14 ." A.74 se_." - .... .~.,_." - A,eR8 "" ".~. GeH ~ J' '5H j 6119B\iA ...;I'" .n. "",7" ~~~:::eesc .= - ~.. ·. . '2H "" ·- Command. <CIIIIC> . ·

Fig. 2. A couple of screendumps showing ~r!.!.,~~h .. hhin a .... l ... n·

development software running Windows. ""da ~E-..1.to>" .... da i. ..,

Above: Re51 for the 8051. To the right: ·pathFinder for the 68HC11 and the 8051.

ELEKTOR ELECTRONICS APRIL 1995

Page 3: J)botj -.L IFOCUS ON: MICROCONTROLLER …cdn.eleinfo.ir/el1990-1999/pdf/1995/e954020.pdfthe 'Basic Stamp' from Parallax Inc.; ~the 68HCll series from Motorola, which is very popular

COMPUTERS AND MICROPROCESSORS

H8/500 senes: HB/520, HB/532, HB/534,HB/536, H8/534S, H8/536S, HB/538,H8/51 0

4-bit MicrocontrollersOKIOLMS64K seties: MSM64162, MSM64164C, MSM64172, MSM6416r,MSM64169', MSM641521L, MSM64153/L, MSM64155/L, MSM64158/L,MSM64431, MSM644481, .ToshibaTLSC-42 series:TMP42COOY, TMP42(C)40P, TMP42(C)50N, TMP42(C)60N,TMP42C66P, TMP42(C)70N,

8.bit Mlcrocontroller.Motorola68HCXXX seties: 68HCll, 68HC711, 68HC811 and their derivatives.6XOX seties: 6809, 6309,

IntelMCS®51 series: 8X31, 8X51, 8X32, 8X52, 8XC54, 8X5B, BX152,MCS®-96 series: BXC194, BXC196,

AtmelAT89 settes: ATB9C51, 8XC51, ATB9C52, ATB9C2051, AT89052

Philips SemiconductorsMAß84XX seties.PCF84CXXXA seties.PCD33XA series.8XXXX series: 8051, 8XC750, 8XC748, 8XC751, 8XC749, 8XC752, 80C31,8XC51,8XC451,8XC550,8XC851,8XC542,83C852,8XC575, 83C055andmany others.

SGS-Thomson MicroelectronicsST6 series: ST621 0, ST6215, ST6220, ST6225, ST6240, ST6242, ST6245,ST6260,ST6265.

National SemiconductorCOP800 seties: COPC912, COPC820, COPC840, COPC880, COPC8780128,COPC8620, COPC8640.COP888 settos.

ToshibaTLCS-870 seties: TMP87PHOON/F, TMP87PH20/F, TMP87PM40N/F,TMP87PH40N/F, TMP87PH46N, TMP87PH47U, TMP87PS64F,TMP87PM78Fl KTLCS-90 seties: TMP91 P640, TMP90PM40, TMP90P802AP, TMP90PH48F,

Siemens8X5XX series: SAB80515, SABBOC535, 83C515A-A, SAB80C517, SAB80C537,SAB83C517A-5.C500 settes: SAB-C501/502/503,

Arizona Microchip TechnologyPIC16CXX series: PIC16C54, PIC16C55, PIC16C56, PIC16C57, PIC16C5BA,PIC16C64, PIC16C71, PIC16C74, PIC16C84,PIC17CXX series: PIC17C42

Dallas SemiconductorSoffMicro settes: OS5000(T)-X-Z, OS2250-X-Z, OS2251-X-Z, OS2252-X-ZThese are special devices. The first x in the type number lndlcates the slze of

the memory in kKBytes, The zindicates the clock speed inMHz, Thus a OS5000T-32-16has 32 KBytes 01 internalRAM, and runs at 16 MHz..These devices co me in a 40-pin SIMM enclosure, and havean 8051 compatible inter1ace,a non-volatile RAM 01 8, 32 or64 KByte, and a builHn se rialbootstrap loader.DS8XCXXX series: OS80C320,OS87C520, OS80C530

HitachiH8300 series: H8/322,H8/323, H8/324, H8/325,H8/3256, H8/3257, HB/326,H8/327, H8/328, H8/329,H8/330, H8/3332, H8/3334,H8/336, H8/337, H8/338,H8/350

FIg. 3. Wllh Ils 16 Kbyte. 01 EPROM,.25 Kbytes 01 SRAM ond oU Ihe resl, IheS87C520 Irom DaUas Semlconduclor ts

an ultra-modern version of the generie8051 (courtesy DaUss Semlconduclor).

OKIOLMS65K series: MSM65511,MSM65512, MSM65513, MSM65514,MSM65516, MSM65524, MSM65544,MSM65,227, MSM65352,MSM65355,MSM644481.

Texas InstrumentsTMS370 series: TMS370C010,TMS370C31 0, TMS370C311,TMS370C610, TMS370C710,TMS370C020, TMS370C022,TMS370C320, TMS370C322,TMS370C622, TMS370C722,TMS370C032, TMS370C332,TMS370C732, TMS370C040,TMS370C042, TMS370C340,TMS370C342, TMS370C642,TMS370C742, TMS370C050,TMS370C056, TMS370C058,TMS370C150, TMS370C156,TMS370C250, TMS370C256,TMS370C350, TMS370C052, TMS370C352, TMS370C356, TMS370C058,TMS370C358, TMS370C756, TMS370C75B,

Fig. 4. Members of Toshlba'TLCS-870 10mUy 01 conlroUers(courtesy To.hlba),

8/16-bltMI.ra.anlraUersIntelMCS® 251 series (8/16/32 bit reqisters).

OKIOLMS66K settes: MSM661 01, MSM66201, MSM66417, MSM66507,MSM66509,

SGS·Thomson MicroelectronicsST9 series: ST9020, ST90R26, ST90(')27, ST90(,)28, ST90(')30, ST9036,ST90(,)40, ST90R50, ST90R51, ST92(')91, ST92(,)93, ST92(,)94

16-bit MicrocanlrollersIntelMCS®96 seties: 8,C196

FujitsuF2MC-8U8LC series: (MB89'xx): MB89121, MB89123A, MB89125A,MB89P131, MB89131, MB89P131, MB89133A, MB89135A, MB89144,MB89145, MB89146, MB89147, MB89151/A, MB89152/A, MBB9153/A,MB89154/A, MB89145/A, MB89161/A, MB89163/A, MB89165/A, MB89173,MB89181, MB89182, MB89183, MB89191, MB89191A, MB89193,MB89193A, MB89623, MB89625, MB89626, MB89627, MB89635, MB89636,MB89637, MB89643, MB89645, MB89646, MB89647, MB89653A,MB89655A, MBB9656A, MB89657A, MB89663, MB89665, MB89673,MB89675, MB89677A, MB89816, MB89821, MB89823, MB89846, MB89855,MB89857, MB89665, MB89667, MB89675.

SiemensC16X seties: SAB-C165, SAB-C167SAB8XC166 series: SAB80C166 SAB83C166-5, SAB883C166·5SAß-CI67 series: SAB-C167-LM, SAB·C167-1 RMSAß-CI65 series: SAB-C165·LM

OKIDLMS67K series: MSM67620

ToshibaTLCS·900 senes: TMP96C141 F, TMP96C041AF, TMP97C241 F, TMP97PS40F,TMP97CS40F

PhilipsSeries based on 68000 •

"Processor based on 32-bits architscture.

ELEKTOR ELECTRONICS APRIL 1995

Page 4: J)botj -.L IFOCUS ON: MICROCONTROLLER …cdn.eleinfo.ir/el1990-1999/pdf/1995/e954020.pdfthe 'Basic Stamp' from Parallax Inc.; ~the 68HCll series from Motorola, which is very popular

FOCUS ON, MICROCONTROLLER DEVELOPMENT SYSTEMS

Fig. 5. The iC166 is areal-time emulator tor the 80C166. The unit sports 256 KBytes of emu-lator memcry, and 128 KByte for hardware breakpoints (courtesy iSystem).

537, Z180, 182, and many more.Impressive.

gards the popular MCS-51 family, Intelseems to rely on the expertise brought inby other, specialized, companies. Samerelevant products are mentioned below.The list 18not exhaustive!

For the 80""Intel itself supplies a development kit forthe devices in the 8XC196 family, con-taining an assembler (ASM-96),a Sä-bitfloating point library, a locator/relocator(RL-96), IC-96, PLM-96 and a converterwhich turns object code into hexadeci-mal. Also available is an iee (in-circuitemulator) system with a window inter-face, and a family of evaluation cardssold under the name Ev80c196Kx. As re-

Keil supply a wide range of extremelypowerful products for the Mcs51® andMcs251® 'families, including an assem-bler, compiler (c51 and c251J, areal-timeexecutive, a simulator and a starter kit,Also available 1Sa macro assembler, A51(or A251).Hitex offer a simulator, a ROM monitor,

Fig. 6. Examples of microcontroller develop-ment software running under DOS.

ELEKTOR ELECTRONICS APRIL 1995

an evaluation card and an emulator.Inform is into development systemsbased on fuzzy logic, more of which fur-ther on.

The :MX51from Hitex is an ICEwhich op-erates in conjunction with a developmentenvironment called HTTOPwhich hassome very sophisticated functions.

The 'TELETEST-51', also from Hitex, iscapable of tackling more than 60 proces-sors (status: September 1993), from the8031 to the 83C851, and including sorne'rare birds' like the 80CL410 and83C662. 'I'his system is based on differ-ent probes (interfaces) for the processorssupported.

Contrary to wh at you may associatewith its name, 'TELEMON8051' is a sys-tem designed to develop applications forthe 8051, although its monitor calls for a80C37.

Based on the TELETEST 51, the Tx51may be used with the ROM-less membersof the 8051 family. This system is con-nected to the parallel port of the hostcomputer.

The AX166from Hitex is an in-circuiternulator specifically designed for the80C166 family of controllers. It is backedby the HITOP development interface.HlTOP166 and TELEMON166 togetherform a very effective debugging utility.

HISIM166is a powerful simulator forInte!'s 80C166 controller.

The MCB-167 evaluation card showsan interesting approach to developmentsystems for the 80C166/STlO controller.Actually, it contains an 80C167 whichuses its bootstrap loader to copy the mcn-itor - the 166 for dScope - into itsRAM. The 166 is a source debugger con-sisting of a simulator and a target debug-ger.

FUZZYTEC~ 1Sthe latest approach basedon fuzzy logic, marketed by Inform. The

Page 5: J)botj -.L IFOCUS ON: MICROCONTROLLER …cdn.eleinfo.ir/el1990-1999/pdf/1995/e954020.pdfthe 'Basic Stamp' from Parallax Inc.; ~the 68HCll series from Motorola, which is very popular

COMPUTERS AND MlCROPROCESSORS

fuzzy development environment drawsheavily on graphics interfaces likeWindows. FllZZYTEC~ is available inversions for the 196, 166, 51 and otherprocessors.

Siemens, like Intel, seems to leave de-velopment systems for theu- microcon-trollers to others. Siemens produces,among others, the SAB80C51O/2/3,SAB80C53517, SAB80C515/15N17 andSAB83C515N17A, which are supportedby a range of development tools from var-ious suppliers based on Keil products.Raisonance (France) offers a number ofemulators for Siemens microcontrollers.

Boston Systems Office (BSO)suppliesdevelopment tools for theSAB80C166/167 and 165.

Ashling supplies emulators for theSAB80C166/167/165 from Siemens.

,'1\,

>l•\,

For the ST62 familySGS-Thomson has different starter kits Fig.7. Contents 01 the PICSTART-16C kit fram Microchip Technology.for their microcontroller products:

- ST6220 Starter Kit for theST6210/15/20/24;

- ST6240 Starter Kit for theST6240/42/45;

- ST626x Starter Kit for tbe ST6260/65.

The ST9 family is supported by

- ST9040 Starter Kit; this relatively low-cost system allows you to develop appli-cations for the ST9 series of controllers,and contains hardware, software, apower supply, and components, to de-velop applications based on tbeST90(x)xx.

lnterestingly, there 18also a FuzzyTEC!fIDversion for the ST6215.

For PIe controllersArizona Mierechip has a range of tools todevelop applications on the basis of theirpie family of devices.

Tbe PICMASTER™·16B, for example, isan in-circuit system emulator forPIC16C71 controllers. Running underWindows on a pe, it contains the pro-grammer PROMATETM. assembler MPASM,logic simulator MPSfM,a few sam ples, ademonstration board, extensive docu-mentation, an active probe card for thePIC16C71 and a programming socket.Impressive!

Similar products are the PICMAS-TER™-16Cfor the PIC16C84, the PICMAS-TER™-16D for the PIC16C54154N55/56/57 and 58A, the PICMASTER™-16Eforthe PIC61C64, the PICMASTER™-16Fforthe PIC16C74, and the PICMASTER™-17for the PIC17C42. All of these are just ascomplete as the 16B version of the PIC-MASTER TM. The contents of these kits isexemplary, and should set a standard inmicrocontroller land. Not surprisingly,

an increasing number of designers comesup with really interesting applications ofPIe controllers (witness some recent ar-ticles in this magazine).

Arizona Microchip also offers a num-ber of development kits fbr its PIC prod-ucts. These are the PICSTART™-16b kitfor the PC16C54/54N55/56/57 and 58A,PIC16C71 and PIC16C84; and the PIC-START™-16C for the PIC16C64 andPIC16C74. These development kits con-tain a programmer board fOT the relevantcontroller, an assembler, a sirnulator andhost system software (including commu-nication tools etc.), a few sam ples, apower supply, an RS232 linking cableand, last but not least, extensive docu-mentation which, again, is so good andextensive that it sets a standard.

FuzZYTEClfID-MP is a set of develop-rnent tools for tbe PIC16C5x, 16C6x and17C42. These tcols include a demonstra-tion board, a hardware proteetion key, anRS232 connecting cable, sam pies of thePIC16Cxx, a multi-purpose power supplyand documentation.

On a different tack, but still fromArizona Microchip, is the PROMATE™ kitwhich enables all members of thePIC16C5X, 16Cxx and 17Cxx to be pro-grammed. Apart from a versatile pro-grammer, the kit also contains apowersupply, software which combines thefunctions of assembler and simulator forthe PIC16cxx and PIC17Cx:x, an RS232connecting cable, and extensive docu-mentation.

The PICPROBE™-16 and PICPROBE™-17 series from Arizona Mierechip con-tains adaptor modules which allow thePICMASTER™ emulator systems to be setup for the different members of thePIC16117 families. The kits include aUthe relevant hardware, software and doc-

umentation.Microchip's PICDEM-l and PICDEM-2

are simple plug-and-play boards aimedat demonstrating the capabilities of thePIe microcontrollers.

Finally, contained in so me of the kitsmentioned above is an assembler for thePIC16C5x/Cxx and PIC17C42, and/or asimulator for the PIC16C5xJCx:x. The as-sembler is capable of generating a nUID-

ber of output file formats.

Par-alfax Ine. supplies the BasicStamp~" a single-board computer basedon a 16C5x PIC controller, as weil as arange of other products related more gen-erally to the PIC microcontroUer. Abriefoverview of these exceLlent products 1Sgiven below.

• Assembler for PIC16CxxThis product converts the source code ofa program written in assembler languageinto a block of object code which may beused by simulators and programmers.

• Logic simulator for PIC16CxxThis piece of software simulates the exe-cution ofPIC programs on a PC screen. Itis possible to do this in step-by-stepmode, or by setting breakpoints and thenchecking what actuaUy happens insidetbe processor by studying the data pre-sen ted in a wiudow. Many software de-velopers use this simulator forexperiments, and to da the initial debug-ging rounds. The simulator may also beused in conjunctian with I10 simulators,and other in-circuit emulators.

• PIC16Cxx programmerThis piece of hardware enables you toprogram, read and verify PICs. A aingle-screen control program greatly simplifies

ELEKTOR ELECTRONICS APRIL 1995

Page 6: J)botj -.L IFOCUS ON: MICROCONTROLLER …cdn.eleinfo.ir/el1990-1999/pdf/1995/e954020.pdfthe 'Basic Stamp' from Parallax Inc.; ~the 68HCll series from Motorola, which is very popular

FOCUS ON, MICROCONTROLLER DEVELOPMENT SYSTEMS

.....

Cleerview=~::!-._- ---In·Ci,cuit Emulatol fol PIC15Cu R-R.4LLAX :

Fig.8. The ClearView in-circuit PIC16Cxx emulator trom Parallax Inc. can run at a clock speedbetween 32 kHz and 20 MHz.

the programming work.In spite ofits small size, the program-

mer has an extension connector which al-lows the use of different types of adaptor,an 18/28 or 40-way ZIF socket, an 18/28-way SOIC socket, OT a 20/28-pin SSOPcontact. Actual1y, this programmer Is allyou need to get started with these fasei-nating devices called PIes.

t Backfiraft.I?" is the latest program-mer launched by Parallax for thePICI7C42.

• Unloader for PIC16C5xThis device acts as a ROM emulator forthe PICI6C5x, which it replaces in thetarget system. The unload operation isthe 2-second equivalent of a much langer'real world' cycle which normally com-prises programming, c1earing and remov-ing the device from the board.

• TrueFlight, a programmer/unloader forthe 7l/84This unit forms a novel approach, com-bining a programm er with an unloader

Fig. 9. This miniature programmer fromParatlax is eapable of programming allPIC16xx devices, as weil as reading and verl-fying PICI6C5x, PIC16C64174 (with an adap-tor), PIC16C71 and PIC16C84 devices(courtesy Parallax Ine.)

ELEKTOR ELECTRONICS APRIL 1995

for the PICI6C7l and PICI6C84. It con-tains an UV light source for olearing(window-type) PICs before they are pro-grammed again. The TrueFlight 1S the'Swiss Army Knife' for PIC developmentsystems.

• Reflection, an I10 simulatorThis system actually replaces the PIC ina circuit, and operates as a kind of I10extension to the logic simulator. Undersoftware contrcl, the hardware part ofReflection reads the inputs arnong theI10 lines.iand similarly writes to the out-puts. Since the software simulates pro-gram execution on a PC, the hardwareproduces the corresponding action on theI10 pins of the circuit under teat.Pushing the limits of the circuita. thissystem allows problems to be detectedwhich would normally be very hard to 10-cate. This emulation technique is rela-tively slow because it is controlled by aPC. But then, one must never be too hur-ried when developing a microcontrollerbased application.

Parallax supplies another in-circuit emu-lator, ClearView '5X™, which handlesnearly all PICs. This tool is marked by aninterchangeable osciilator capable of np-erating at any frequency between 32 kHzand 20 MHz. The ClearView 'xx™ usesextension modules to adapt itself to dif-ferent types of PIC controller.

C compilers are available, one for thePICI6Cxx, and ancther for thePICI6C/17xx, at reasonable cost.

The BASIC Stamp comes with a few util-ities contained in the programming kit: acable to conneet the Stamp to the PC, aprogram editor, and documentation.

Among the many other suppliers of 'toolsfor the PIC trade' are AdvancedTransdata Corp., who make program-

mers, ICEs, and combination systemscomprising of an unloader, emulator anda programmer, as weil as real-time emu-lators (RICE,real-time in-circuit emula-tor) .

Advin Systems, Inc. is on the mar-ket with universal programmers.Application Solutions, Inc. supply aprogramming/demonstration card. Othermanufacturers of programmers are BPMicrosystems, Citadel Products Ltd.and Data UO. As an aside, most oftoday's mu.lti-device programmers arecapable of 'burning' PICs.

For the 68HCxx familyThe flagship of Motorola's 'srnall' rnicro-controller series, the 68HCl1, is sup-ported by a number of development toolsfrom different manufacturers.

Mecalogic, for instance, supplies theMHC811EME'embedded emulator' whichallows any program to be fine-tunedwirhin the application circuit, requiringno other tool than a PC hooked up to theRS232 interface. This product, in the de-velopment package vcrsion, is actually aboard containing its own microcontrollerand, depending on the exact version, dif-ferent types ofmemory, zero-power RA.M:and/or EEPROM linked to a sou.rce edi-tor, an assembler which supplies objectcode, a direct debugger, an RS232 cableand a mains power adaptor.

Also from Mecalogic is the HC711D3card, aimed at the MC68HC7llD3 con-trcller. This card, which is much largerthan the MHC811EME,comes with asource code editor, an assembler and areal-time emulator.

I.S.I.T. offers several emulators, in-cluding the WICE68HCll, a low-cost butvery powerful 68HCll emulator, and thele181 professional multi-family emula-tor.

And others ...For the Texas Instruments TMS320 con-troller, for instance, Convergie (Fr-ance)offers aversion of FuzzyTECH.

Software-only productsOne of the most spectacular ways of de-signing a microcontroller system is with-out doubt the 'software-only' method. Asfar as we have been able to ascertain, theonly product in this field is The Realizerfrom Actum Solutions.

As illustrated by the screendumps inFig. ll, all functions offered by theRealizer are based on software only.Since many of you may me unfamiliarwith the concept of system design basedon software only, abrief rundown of thebasic operation of The Realizer is givenbelow.

Having chosen an existing project, orgiven a name to a new project, you canget to work. The first phase consists ofdrawing the logic diagram of the circuitwith its sub-units. Next, you go through

Page 7: J)botj -.L IFOCUS ON: MICROCONTROLLER …cdn.eleinfo.ir/el1990-1999/pdf/1995/e954020.pdfthe 'Basic Stamp' from Parallax Inc.; ~the 68HCll series from Motorola, which is very popular

Some useful addresses:Microchip Technology, Inc., 2355 West ~Chandler B1vd., Chandler, AZ 85224-6199,U.S.A. Te1. (+1) 602 786 7200, faxe (+1) 602 V8999210.UK Headquarters: Unit 6, The Courtyard,Meadowbank, Furlong Road, Bourne End,Bucks SL8 5AJ. Te1. (01628) 851077; fax(01628) 850 259.Parallax, Inc., 3805 Ahterton Rcad, #102, ..l(

Rock1in, CA 95765, U.S.A. Te1. (+1) 916 624-8333. Fax: (+1) 624-8003. BBS: 624-7101. 10 Ikthe UK , ccntact Milford Instruments, Tel.(01977) 683665, fax (01977) 681465.

Fig.10. The WICE68HC11 emulator can be fitted with one of three pods to connect to dlfferj'" /Actum Solutions, P.O. Box 373, NL-17QO-AJ 1~ent types of mieracontroller application circuits. -\.V Heerhugowaard, The Netherlands. Tel. (+31)

220745553.Keil and Hitex products: Hitex (UK) Ltd.,Warwiek University, Science Park, Covencry

Realizer 2.0 supports the fol1owing CV4 7EZ. Te1. (01203) 692066, fax: (01203) lprocessors and microcontrollers: 8051 69213l.and its derivatives, the ST62 family, the I .2.rossware Products, Melbourn, Royston,PIC16 family, the 68000 family, and the \:'perts SGB 6BA. Tel. (01763) 261539, fax: )(ANSI-C code. (01763) 262983, BBS: (01763) 261716.

The Realizer comes with a library con- MicroAmps Ltd., 66 Smithbrook Kilns,taining some 60 symbols to help you de- Cran1eigh, Surrey GU6 8JJ. Tel. (01483ll/sign the most up-to-date of circuits. Tbe 268999, fax (01483) 268397.program allows you to design custom sym, 'j3.H. Systems Ltd., Lighthouse Buildings,bols, and implement their functions in as- \JRattray head, Peterhead, Aberdeenshire ..(sembIer. Tbe Realizer offers you a ehoiee AB42 7HB. TeUfax (01346) 532236.between (1) keeping the size of tbe RAM _ IJohn Morrison, 4 Rein Gardens, 'I'ingley, W. .sz.used by the target program as small as \[).yorks WF3 1JR. Tel./fax (01532) 537507.possible, (2) the same for the size of object Raisonance, Z.I. Rue des Sources, F-38920 fIl

code or (3) non-used (sleeping) code, or (4) L. qrolles, Prance. Te1. (+33) 76 081816, fax:tuning the softwäre for the highest possi- \J.(+33) 76 080997.ble speed. On~line belp is avaiJabJe alJ tbe. jlieca10gic Concept, BP 24, F-13540 Aix- -I.time tn the Wmdows versron. fb1Puyricard,France. Tel. (+33)42 922644,fax

(+33) 42 922645.ata 1/0 Corporation, 10525WillowsRoad.E., P.O. Box 97046, Redmond WA 98073-746, U.S.A. Tel. (+1) 800 332-8246, fax. (+1)06869-7423, BBS (+1) 206-882-321l.dvanced Transdata Corpora tion, 14330 d--idway Road, Suite 104, Dallas TX 75244.

e1. (+1) 214-980-2960, fax (+1) 214-980-2937,BS (+1) 214 980-0067.P Microsystems, Inc., 1000 N.Post Oak '"oad, Heuston TX 77055, U.8.A. Tel. (+1)-713-88-4600, fax. (+1) 713 688-0920, BBS (+1)13 688-9283.Itadel Products Ltd., 50 High Street, ~dgware, Middx HA8 7EP. Tel. (0181) 951848, fax (0181) 9515857 .dvin Systems, Ine., 1050-L East Duane tive, Sunnyva1e CA 94086, U.8.A. Tel. (+1)08-243-7000, fax (+1) 408 736-2503, BBS (+1)08737-9200.

UK diarributors: Quarndon Eleetronics,el. (01332) 32651, fax (01332) 360922.pplication Solutions Ltd'l Tel. (01273)6608, fax (01273) 478888.S.I.T, Z.L des Poumaderes, F-32600L'lsle

\ fourdain, France. Tel. (+33) 62 072954, fax (/'V+33) 62 072953.

COMPUTERS AND MJCROPROCESSORS

an analysis phase, during which the pro-gram checks tbat everything is in accor-dance with the design rules. Next, theprogram does a simulation round, show-ing the states of outputs, and the value ofvariables) using graphics if so required.

Once you bave your 'ok' for the differ-ent stages of the process, it is time to se-lect the hardware configuration you wishto implemerrt, in other words, the targetprocessor for which the code should bewritten. This is done durmg the final de-sign phase, with the aid of an assemblerfor the relevant processor/controller.

A new version of The Realizer, v2.0,runs under Windows. It is still being de-veloped, and Actum hope to release itlater this year. Like the DOS version, the

- Rullze, 6rgn~e - EXAMPLE - - h{S" fdll Qlsplay Action Ollieet Analyse .5J", .. lale W\ndDW .Qpll" ... t1elp

ta4C1 r"']?1I1C4li'lf11l' I -I ~ CIIWlbll- C:\FIEALBRONI,EXAMPI..E\HEAllNG.SCH - - 2.~

~.~

- s ... olm..-tiD", B

o en .. ... ,-- B-- De""np'ID".. . SI!I""'8d=

~ ~;~~ tanc12 I nls ks a!WO inpul M ...... >\NDhin.m~'Yll8Inh.N!"""~"..,,,

~b<Jnp..:1c=hange 7~... . .

~.,--~ ".n,ji!'Pn.._----- _.~ ~~.

G"OISIw t8J....~ . I CAn<.t !.- -.-"""'---- lFU A

• ~ 'V4

..".,-,,_ ............. ""'"Prepared by Actum Solutions

~ - ~- T~::'~~':'~"".'101I'-' __

A..... ,......,....... ,"' ,-......... .- .. . 47O"b~~od I.

Fig. 11. The Realizer trom Actum Solutions in action.

The program reports on the results ofa simulation run by means of visualiza-tion objects such as switches, fuses, scopescreens and signal generators.

(950019)

ELEKTOR ELECTRONICS APRIL 1995