Embedded Development
Total Page:16
File Type:pdf, Size:1020Kb
#160 November 2003 www.circuitcellar.com CIRCUIT CELLAR® THE MAGAZINE FOR COMPUTER APPLICATIONS EMBEDDED DEVELOPMENT Mixed-Signal Simulator All-Digital Amplifier Efficient Menu System WWW.GiURUMELE.Hi2.RO Future of FPGA 11> 7925274 75349 $4.95 U.S. ($5.95 Canada) WWW.GiURUMELE.Hi2.RO $30,000 ™ PSoC International Design Contest PSoC Mixed-Signal Array. www.cypress.com /a d /p s o c - cea1 It’ll change the way you think about embedded design. Now with instrumentation-quality programmable analog. Powerful new programmable analog and digital Microsystems, Inc. All other trademarks are the property of their respective owners. blocks with memory and MCU for less than $2. Winner of the EDN Innovation of the Year award, our PSoCTM Programmable System-on-ChipTM device is changing the face of embedded design. Replace 1,000s of fixed-function devices with a couple of keystrokes Dynamically reconfigure a PSoC device, changing functionality on the fly in any application Select from hundreds of predefined blocks in our mixed-signal library Already designed into 1,000s of applications; check out our online app note library © Cypress Microsystems, Inc. 2003. PSoC, Programmable System-on-Chip, Cypress Enhanced Analog and CEA are trademarks of Cypress Reduce board size and BOM up to 80% CYPRESS ENHANCED ANALOG™ (CEA™) • Rail-to-rail analog • Instrumentation amps • Lower voltage offset before after • Lower input leakage currents • Programmable gains • Better stability Front End with Adjustable Gain Difference Amp WWW.GiURUMELE.Hi2.RO PSoC Mixed-Signal Arrays with M8 Microcontroller CY8C27X CY8C24X CY8C22X Instrumentation Amp with Driven Shield CEA ANALOG BLOCKS 126 3 Instrumentation Amp 2 DIGITAL BLOCKS 844 HI REL SONOS FLASH 16 K 4 K 2K One of 1,000s of examples of programmable analog blocks. SRAM 256 256 256 COST low as $1.99 low as 99¢ low as 69¢ Check out our free online training and our 4-hour applications support: www.cypress.com/ad/psoc-cea1 Digital Oscilloscopes • 2 Channel Digital Oscilloscope DSO-2102S $525 • 100 MSa/s max single shot rate DSO-2102M $650 • 32K samples per channel Each includes Oscilloscope, • Advanced Triggering Probes, Interface Cable, Power • Only 9 oz and 6.3” x 3.75” x 1.25” Adapter, and software for • Small, Lightweight, and Portable Win95/98, WinNT, Win2000 • Parallel Port interface to PC and DOS. • Advanced Math options • FFT Spectrum Analyzer options Logic Analyzers • 40 to 160 channels • 24 Channel Logic Analyzer • up to 500 MSa/s • 100MSa/S max sample rate • Variable Threshold • Variable Threshold Voltage • 8 External Clocks • Large 128k Buffer • 16 Level Triggering • Small, Lightweight and Portable • up to 512KWWW.GiURUMELE.Hi2.RO samples/ch • Only 4 oz and 4.75” x 2.75” x 1” • Optional Parallel Interface • Parallel Port Interface to PC • Optional 100 MSa/s Pattern Generator • Trigger Out • Windows 95/98 Software LA4240-32K (200MHz, 40CH) $1350 LA4280-32K (200MHz, 80CH) $2000 LA2124-128K (100MSa/s, 24CH) LA4540-128K (500MHz, 40CH) $1900 Clips, Wires, Interface Cable, AC LA4580-128K (500MHz, 80CH) $2800 Adapter and Software $800 LA45160-128K (500MHz, 160CH) $7000 All prices include Pods and Software www.LinkIns4.com Link Instruments • 369 Passaic Ave • Suite 100 • Fairfield, NJ 07004 • (973) 808-8990 • Fax (973) 808-8786 WWW.GiURUMELE.Hi2.RO TASK MANAGER EDITORIAL DIRECTOR/FOUNDER CHIEF FINANCIAL OFFICER Tools and Techniques of the Trade Steve Ciarcia Jeannette Ciarcia MANAGING EDITOR CUSTOMER SERVICE Jennifer Huber Elaine Johnston TECHNICAL EDITOR ach year, we use the Embedded Development issue to feature the C.J. Abate ACCOUNTANT E Jeff Yanco newest methods and tools used to design hardware and software. This WEST COAST EDITOR month, we have a variety of compelling articles about developing embed- Tom Cantrell ART DIRECTOR KC Prescott ded applications. CONTRIBUTING EDITORS Ingo Cyliax When you’re working with both analog and digital signals, simulation GRAPHIC DESIGNER Fred Eady Mary Turek can get complicated if you have to handle the signals separately. But, what George Martin if you could simultaneously simulate both parts? Engin Ipek and Bruce George Novacek STAFF ENGINEER Jeff Bachiochi Land explain how to build a mixed-signal simulator that you can use to John Gorsky gather analysis for display on a monitor (p. 14). The simulator was origi- NEW PRODUCTS EDITOR nally designed for use with small Atmel AT90S8515-based projects, but the John Gorsky QUIZ COORDINATOR David Tweed source code can be modified to work with multiple processors. PROJECT EDITORS Aubrey Kagan provides a solution to another problem (p. 44). In Steve Bedford Ken Davidson embedded systems, space is often critical. By carefully organizing hierar- David Tweed chal menus, Aubrey devised a way to reuse software for displaying and changing parameters in order to save ROM space. This is especially use- ADVERTISING ful when your client’s requirements change; with a flexible menu, you can PUBLISHER Dan Rodrigues E-mail: [email protected] simply alter the flow of the hierarchy to modify the program. ASSOCIATE PUBLISHER/DIRECTOR OF SALES This month, we’re also showcasing the winners of the Motorola Flash Sean Donnelly Fax: (860) 871-0411 Innovation 2003 Design Contest (p. 22). The contestants worked with the (860) 872-3064 E-mail: [email protected] Cell phone: (860) 930-4326 HC08 Q-Family to develop a number of unique and exciting projects. For those of you who are interested in reading more about the winning ADVERTISING COORDINATOR Valerie Luster Fax: (860) 871-0411 designs, we have posted dozens of abstracts and full entries on our web (860) 875-2199 E-mail: [email protected] site (www.circuitcellar.com/fi2003). ADVERTISING ASSISTANT While you’re on the web site, you should also take the opportunity to Deborah Lavoie Fax: (860) 871-0411 check out the revised Author’s Guide (www.circuitcellar.com/authors). With (860) 875-2199 E-mail: [email protected] the editorial calendar, you will find definitions of our monthly themes and Cover photograph Chris Rakoczy—Rakoczy Photography suggestions for article topics. The issues fill up quickly, so it’s a good idea PRINTED IN THE UNITED STATES to send in your proposals as early as possible. (Note that the deadlines are CONTACTING CIRCUIT CELLAR for final materials. Proposals should be submitted in advance.) SUBSCRIPTIONS: INFORMATION: www.circuitcellar.com or [email protected] To Subscribe: (800) 269-6301, www.circuitcellar.com/subscribe.htm, or 2004 Editorial Calendar [email protected] PROBLEMS: [email protected] GENERAL INFORMATION: Issue Theme Deadline TELEPHONE: (860) 875-2199 Fax: (860) 871-0411 INTERNET: [email protected], [email protected], or www.circuitcellar.com January Analog Techniques October 1 EDITORIAL OFFICES: Editor, Circuit Cellar, 4 Park St., Vernon, CT 06066 February Wireless CommunicationWWW.GiURUMELE.Hi2.RO November 3 NEW PRODUCTS: New Products, Circuit Cellar, 4 Park St., Vernon, CT 06066 [email protected] March Embedded Applications December 1 AUTHOR CONTACT: April Robotics January 2 E-MAIL: Author addresses (when available) are included at the end of each article May Communications February 2 For information on authorized reprints of articles, contact Jeannette Ciarcia (860) 875-2199 or e-mail [email protected]. June Measurement & Sensors March 1 CIRCUIT CELLAR®, THE MAGAZINE FOR COMPUTER APPLICATIONS (ISSN 1528-0608) and Circuit Cellar Online are pub- July Graphics & Video April 1 lished monthly by Circuit Cellar Incorporated, 4 Park Street, Suite 20, Vernon, CT 06066 (860) 875-2751. Periodical rates paid at August Embedded Programming May 3 Vernon, CT and additional offices. One-year (12 issues) subscription rate USA and possessions $21.95, Canada/Mexico $31.95, all other countries $49.95. Two-year (24 issues) subscription rate USA and possessions $39.95, Canada/Mexico September Signal Processing June 1 $55, all other countries $85. All subscription orders payable in U.S. funds only via VISA, MasterCard, international postal money order, or check drawn on U.S. bank. October Data Acquisition July 1 Direct subscription orders and subscription-related questions to Circuit Cellar Subscriptions, P.O. Box 5650, Hanover, NH November Internet & Connectivity August 2 03755-5650 or call (800) 269-6301. Postmaster: Send address changes to Circuit Cellar, Circulation Dept., P.O. Box 5650, Hanover, NH 03755-5650. December Embedded Development September 1 Circuit Cellar® makes no warranties and assumes no responsibility or liability of any kind for errors in these programs or schematics or for the consequences of any such errors. Furthermore, because of possible variation in the quality and condition of materials and workmanship of read- er-assembled projects, Circuit Cellar® disclaims any responsibility for the safe and proper function of reader-assembled projects based upon or from plans, descriptions, or information published by Circuit Cellar®. The information provided by Circuit Cellar® is for educational purposes. Circuit Cellar® makes no claims or warrants that readers have a right to build things based upon these ideas under patent or other relevant intellectual property law in their jurisdiction, or that readers have a right to construct or operate any of the devices described herein under the relevant patent or other intellectual property law of the reader’s jurisdiction. The reader assumes any risk of infringement liability for constructing or operating such devices. Entire contents