Home

CF1 Getting Started Guide - Persistor Instruments Inc

image

Contents

1. 272121 gt 1 gt 121 gt 721000900005 OO OD OO 219909 2095 3 JA J KI E OEC READ eee 9 0 0 0 0 0 0 oo 09 20 00 00 0 0 oouagnuudibhu gt 299 0 i 159 999 4 Lu 222220705 RESET C de A S Y SEEEEEEEEEEEEE EE LETT E eS ds B t QA A 9147 4 namgmmugagmBauugmuuauuuuuuu o o0oco0nnmumumumuumumuuuuuu o o0oco0nmnmumnumumuumuumuuuuu o o0oconmBumumuuumuumuuu o o0ocomnoumumuumumuumBuuuulu O O O 000000000 000000000 202222 0 0 0 000 000 0009000000000 0000900000000 2401318334 Hv 10151 324 Persistor Getting Started Guide 28 _ RS 232 PCF338 50 49 5 5 RSCTS RSTXD RSTXD 3 48 47 RSRTS RSRTS eo 46 Ae 45 44 ei CABLE 42 41 P BM 40 39 05 1 2 1 38 37 2 36 Face Views WAKE ATTN 34 2 33 dal
2. 2 Safe Single 12B Action Single Acion 14B Single Double Action Double H a 6 0 Double Time Base Bus 4 A Action Time Base Bus 3 B Output Compare and Toggle Toggle the I O pin on a timebase match and optionally interrupt Double Action Submodules The has eleven DASMs which all connect to I O pins from the In addition to the functions listed for the SASMs each DASM can perform one of the following functions Input Pulse Width Measurement Measure the time between leading and falling edges of the I O pin and optionally generate an interrupt on completion Input Period Measurement Measure the time between two successive leading or falling edges of the I O pin and optionally generate an interrupt on completion Output Pulse Width Modulation Generate a pulse width modulated waveform with selectable resolutions of 7 9 11 12 13 14 15 or 16 bits Persistor CF1 Getting Started Guide 27 OW o fol mn E o 506 50000000005 2000005006000
3. tools E Back Minimal CodeWarrior Specific None Do not map any file extensions Code armor for Windows Version 6 0 Setup Start Copying Files Review settings before copying metrowerks lt Back Cancel Setup has enough information to start copying the program files IF veu want review or change any settings click Back IF you are satisfied with the settings click to begin copying files Current Sethrigs Product Name CodeWarrior for Windows wersion 6 0 Installation directory C Program Files Metrowerks CodeWarrior CodeWarrior for Windows Version 6 0 Setup Setup Custom Install InstallShield Wizard Complete Program Group 8 The InstallShield Wizard has successtully installed for Windows 6 0 Before you can use the program vou must restart your computer ete C will restart my computer later Remove any disks from their drives and then click Finish to complete setup lt Hack Persistor Getting Started Guide 9 Installing MotoCross After you ve installed CodeWarrior insert the Persistor CF1 Tools CD and double click the Setup exe icon to run the MotoCross Installer If you followed the destination suggested by CodeWarrior our installer will just require a few clicks on the Next button to complete
4. PB2 1 A D CONVERTER 32 ANALOG 30 C3 4 7uF CJ2 LITHUM BACKUP HOLDER POWER C5 11 2 GND 1 C VREGX 2 _ 4 Persistor Persistor CF1 Getting Started Guide 29 Getting Started Guide Persistor Instruments persistor com aa Falmouth MA USA 508 563 7192 Tit Persistor Recipe Card PRC PLG a PicoLog Prototype Card jhg 55 98 05 28 TE 7 20 98 e gesgeospnc ricassen ase 29 0 185 NOTE All pins are 0 025 0 64mm gold plated phosphor bronze square posts all centered on a 0 100 grid CompactFlash Card BOTTOM 24 104 om 09 Persistor Getting Started Guide and PCB Pad Placement 2 180 il iA Ae A Aea E gt 535 Ug 050 1 750 550 30
5. 1 8105 Metrowerks and Persistor Instruments You 423 CFI PicoDD5 should also always assume that files the 0 514 Metrowerks directory will get deleted during CF1 PicoDOS C update installations TEE 8 CF1 PiceDDS Library 1 abject s El My Computer 2 Persistor Getting Started Guide 11 and First Run There are several jumper pins on the RecipeCard and these come pre configured to select default options that let you quickly try out your new system You ll need to insert the CF1 into the sockets the RecipeCard This 1 very difficult to do incorrectly If you have any doubts look at the picture on the front cover Insert the power and RS 232 cables into their respective headers These are shrouded and polarized to prevent incorrect insertion Connect the red lead of the power cable to your supplies positive terminal and connect the black lead to negative The power cabling uses Molex C Grid connectors and these are available from DigiKey and Allied among others DB9F CABLE The RS 232 cable adapts the RecipeCards 2x5 dip header to a S standard DB 9F that connects to standard PC comm port or extension cable The cable wires the 2x5 connector such that pin 1 RTSI of the DB9 connects to pin 1 of the 2 5 and all of the other 2x5 connections are setup such that they map correctly to a standard DCE as shown Face Views If you haven t inst
6. MODCIK Alternate Clock Source CLK G PIO B10K 6 RSTXD RS232 Transmit EIA UART RSO TXD RS232 Transmit CMO S UART Bo RTS RS232 RTS CMOS UART IRQ 3 CTS IRQ CTS CMOS UART 2 CLKIN is connected to the 68338 EXTAL input for the 40kHz crystal It is an extremely high impedance input and care must be taken not to make unintentional connection to this pin which would likely cause erratic behavior Contact the factory for information on using CLKIN with an external precision clock source 3 SHDN is an output signal controlled by the power management circuitry Your peripheral circuitry can monitor this signal but only with inputs having less than 100nA leakage and less than 100pF capacitance When low all of the CF1 circuitry is powered off Do not attempt to assert or load this line 4 WAKE is input to the power management circuitry and 15 pull high with 1M to the internal VBAK volage External circuitry coordinated with CF1 driver software may use this line to pull CF1 out of suspend mode 5 These lines must be left floating or asserted high at reset 6 This line must be floating or asserted high at reset for normal operation It may be pulled low during reset to disable the onboard PLL clock oscillator and insert an external clock Contact the factory for application notes 7 and CTS are inputs to the 68338 but are normally driv
7. Digital Signals to GND 0 3V to VREG 0 3V Operation 25 C to 75 Storage 2 40 C to 85 C FIN ge senses eee eee to 95 non cond Physical Specifications 2 180 PARAMETER 5 us Hi ws with CF Card ues 1 750 550 50 1 40 Electrical Characteristics PARAMETER CONDITIONS MIN UNITS 36 320 V 25s o 20 VW VBAT Operating Voltage 25 C 5 36 128 V 25 Ci430 Cot250m 84 V 25 757 0 60 V Teon VREG O perating Current 88 Operating Volage 30 v Operating Current Bacup Supeni 20 dA T o R Sy amp mChk 16 32766 3288 32 770 KHz Persistor CF1 Getting Started Guide Block Diagram and Signal Connections 128K x 16 KM6 16FV2000 27 IMB FLASH 512K x 16 Am29LV 8008 PLL QSPI EREEZE GUOT IFETCH D 5I LL ieerpsa PET DSACKT PEL aq unt un eu c gt ay 3333 A POS3 RCSQ t 52 5CK EET ium 39329993 To AD CTD27 Inu ONI Persistor Getting Started Guide DATA
8. e rus 29 CET Dimensions and PC B Pad Phocen Ie I e EE M eU 30 Persistor CF1 Getting Started Guide General Information Introduction This getting started guide describes how to setup and install the various components that make up your Persistor Starter Kit This printed manual stops at the point where you ve installed the online HTML and PDF documentation though we ve included some diagrams and tables that you may find handy in working with the Persistor The combination of a Persistor and RecipeCard let you quickly start working on your experiment goals without putting a lot of front end effort into wiring up the hardware In many cases this will be all you need for the initial prototype proof of concept or feasibility studies The RecipeCards come with complete schematics parts lists and design notes for when and if you decide to move portions to your custom board What s in the Kit Your CF1 Starter Kit should contain the following items PERCFIC Persistor CF1 8MB CompactFlash Card 1 PCFADAP PCMCIA Adapter Card PRCPDAQ PicoDAQ Analog RecipeCard CBLIOHIODB9 10 DB 9 Serial Adapter Cable 1 CBL30CG4TL 30 Power Cable to Tinned Leads 3 SHNTJMPS Shunt Jumpers 3 CGPINS Space C Grid Connector Pins MXWCFI MotoCross for 1 CD ROM Equipment Required 4 20VDC 100mA power supply PC running Win95 98 NT or Macintosh with System 7 or above with free serial port Metrowerks Cod
9. 13877 BH a Noms DATAS NS i BATAIO 12 E i m 14 cee 1 zm RN 1 is pe ps es De glo ain BBRE 10 DERT1 1 215184 1 13 12 14 Y gt DERIS 18 1E a 7 Ys OIE DERTS 15 21 Pin Descriptions Description O utput only signals that are always driven Type A thatcan operate in open drain mode The CF1 interfaces to your circuitry using three standard Does aubutuitiwesk nula during Teset Three state output that includes circuitry to pull up output before double row 0 1 headers Many CFI based systems will only high impedance is established to ensure rapid rise time need to access the signals on the 2x25 pin C connector Type B that can operate in open drain mode Has onboard pull up resistor of value xx which brings out pins on both sides of the board OEM versions may specify pins on only side or the other The RSI RS 232 EIA level input RS 232 EIA level output 2x10 A and connectors bring out the address and data bus along with control signals for system expansion EJ ADDR18 ADDR16 O A
10. Signal Desc ir Function Signal Desc ir Function DATA1 Data Bus 1 BUS DATAO Data Bus 0 BUS DATA3 Data Bus 3 BUS DATA2 Data Bus 2 BUS DATA5 Data Bus 5 BUS DATA4 Data Bus 4 BUS DATA7 Bus 7 BUS DATA6 Data Bus 6 BUS DATA9 Data Bus 9 BUS DATA8 Data Bus 8 BUS DATA11 Data Bus 11 BUS DATA10 Data Bus 10 BUS DATA13 Data Bus 13 BUS DATA12 Data Bus 12 BUS DATA15 Data Bus 15 BUS DATA14 Data Bus 14 BUS CSE Chip Select 8 BUS CS10 Select 10 BUS R W Read W rite BUS CLKIN 40kHz Clock Input CLK Persistor CF1 Getting Started Guide 22 Signal Desc Dir Function Type 1 DS Data Strobe Out BDM BUS B 8 3 GND Ground Pwr BDM PWR 5 PASS Pass Through not used 10 7 RESET Reset BDM BUS BoP820 9 VREG 3 3V Power to Circuitry In BDM PWR 11 VLIN 3 3V Regulator O uput O ut PWR 13 VBAT M ain Battery Input In PWR 15 52 SPI Chip Select 2 QSPI GPIO 9 17 53 SPI Chip Select 3 QSPI GPIO 9 19 51 SPI Chip Select 1 QSPI GPIO Bo 9 21 50 SPI Chip Select 0 5 9 23 CTD9 Double Action Timer TMR GPIO Ao 25 CTD8 Double Action Timer TMR GPIO Ao 27 CTD5 Double Action Timer TMR GPIO Ao 29 CTD4 Double Action Timer TMR GPIO Ao CTS18A S
11. did this here with a scope probe tip 0 037 diameter and a customer did it with a miniature DMM probe 0 044 diameter We both spent many frustrating hours searching for the source of bizarre problems The deformation damage 15 quite visible but only with the help of a microscope and no this would not be covered under the warranty Backup battery is required The CF1 depends on a separate PIC microcontroller to manage startup power off watchdogs suspend mode and CF card changes Even if you re not using the last three features you probably want the CF1 to start up when you apply power and that s not guaranteed unless there 1s voltage at the VBBK pin during power up If you really don t want to provide a backup cell you can connect separate 3 volt regulator between your main supply and VBBK Persistor CF1 Getting Started Guide 5 Installing CodeWarrior Your first step toward developing with the CF1 is installing Metrowerks CodeWarrior This section explains how to install CodeWarrior Release 6 for use with MotoCross libraries and support tools for the 1 Follow the instructions on these four pages mostly pictures then perform the simpler MotoCross installation If you follow these installation instructions to the letter vou should be running your first MotoCross program in less than an hour To use the MotoCross package you will need 1 Metrowerks CodeWarrior Pro Release 6 or later 2 32MB RAM 120MB Free Disk
12. this driver but if power conservation 15 your game you may need to use some of these low level calls to configure the UART a specific way to help meet your design needs We have attempted to cover all of the bases in this driver from normal operation to the lowest power modes System Clock and Wait State Management One of the easiest ways to conserve power in an embedded controller 15 to turn down the speed Power consumption in a processor varies almost linearly with speed and we provide functions for you to adjust the system clock anywhere from 160K Hz to 16MHz and beyond Right there you can reduce your power consumption by an order of magnitude Furthermore these functions provide a great level of control regarding the wait states and access speeds of the various bus peripherals If you are interested in measuring and characterizing the performance of your CF1 you may wish to see our example program called Hurry Up and Wait This program provides a great example of how to change the system clock and the number of wait states used with each peripheral Utility Functions Lastly there are functions that don t seem to fit anywhere else These functions include a hexdump function that can be extremely useful during development and other useful but difficult to classify functions Persistor CF1 Getting Started Guide 19 Specifications Absolute Maximum Ratings O 20 VREG and VBAT GND 20
13. with specialized capabilities Most of these are independent single action or double action counter timers that connect to a bidirectional I O pin on the The remaining modules cooperate to provide the four timebases used by the CTMs to perform their work A Single Clock Prescaler Submodule CPSM feeds one Free Running Counter Submodule FCSM and three Modulus Counter Submodules MCSM with six individually selectable clocks derived from the CPU system clock The FCSM and MCSM modules drive the four timebases from one of these clocks or from an external clock The FCSM has a fixed modulus of 65536 while the MCSMs have loadable modulus registers and load inputs for greater flexibility Single Action Submodules The CTM has eight SASMS six connect to I O pins from the CF1 while the other two are used internally by the CF1 for simple Each SASM can perform one of the following functions Input Capture Capture the timebase on either edge of the I O pin and optionally generate an interrupt Output Port Set or clear the I O pin Output Compare Set or clear the I O pin on a timebase match and optionally generate an interrupt MC68CK338 LOAD Single Modulus Action 24A 4 31 Single Action 24B Singl Modulus Ine e counter 30 4 sial bi p Tess 27 q bi E 28 Double 29 Time Base Bus 1 A 8 UJ uc
14. DDR14 ADDR12 t ADDR10O ADDR17 amp The first ten pins of connector C form a standard BDM ADDRI3 Background Debugger Mode connector block at the top of the CF1 and these are identified by a solid white silk screen In addition every fifth pin of connector C 15 marked with white to help quickly identify the proper pin wo uo Pin type designations are taken from the MC68CK338 Technical Summary and where appropriate suffixed with the value of onboard pullup resistors or special notes Static Sensitive CMOS of the CF1 pins connect to static sensitive CMOS circuitry You must take precautions to guard against damage to these parts from static electricity Signal Desc ir Function i Desc ir Function ADDR1 Address Bus 1 BUS ADDR19 Address Bus 19 BUS ADDR3 Address Bus 3 BUS ADDR2 Address Bus 2 BUS ADDR5 Address Bus 5 BUS ADDR4 Address Bus 4 BUS ADDR7 Address Bus 7 BUS ADDR6 Address Bus 6 BUS ADDR9 Address Bus 9 BUS ADDR8 Address Bus 8 BUS ADDR11 Address Bus 11 BUS ADDR10 Address Bus 10 BUS ADDR13 Address Bus 13 BUS ADDR12 Address Bus 12 BUS ADDR15 Address Bus 15 BUS ADDR14 Address Bus 14 BUS ADDR17 Address Bus 17 BUS ADDR16 Address Bus 16 BUS CLKOUT 5 CLock utput CLK ADDR18 Address Bus 18 BUS gt gt gt gt gt gt gt Im gt gt gt gt gt pm
15. HE Headers 0 Bg chlbios h 0 0 0 0 The default C project stationery contains Sa More Headers Pe simple bit of code that prints out the serial AB cfipatchh D D number of your as well as information B dienth 0 0 regarding the program build and the 2 versions of the BIOS and PicoDOS that are B h D burned into your Persistor s flash You may 5 dias wish to look at the file cfImain c before F 2 D D compiling it Once you are comfortable with EHE Application Source 178 139 BE cfimain c 178 133 the code you see select Project Make If everything 1s installed correctly this should 33 e z EEhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh Sw S build a binary executable that the MotoCross program can then load into your CF1 During the build the files and groups in your project window will update with information about the size of the code and data required for each module as shown These numbers reflect the worst case usage and the smart linker will generally reduce that by quite a bit Map files created by CodeWarrior and MotoCross give complete details on memory usage and mapping Persistor CF1 Getting Started Guide 15 You can run MotoCross double clicking the MotoCross exe file at the top of your project window s list of files Select MotoCross gt Post Link and Load then navigate to your project s bin directory and s
16. PERSISTOR Getting Started Guide Rev 8 Inc on epee OOOO 008 OO O O O O O O O O O O 0000 O O O O O O O O ON 0000 O O O O O O O O O C 4 42416412464642464646464 42 6 tote BERTA it ill TEE Instruments d ii Disa 27 220 o E r r Y ww LI s zi L 1 P a gt f a T j 1 E a Lad i 1998 2000 Persistor Instruments Inc rights reserved Standard Terms and Conditions of Use Life Support and Safety Equipment Persistor Instruments Inc hardware software and firmware pro
17. Space CD ROM 3 Pentium class processor recommended 80386 or 80486 4 Windows NT 4 Windows 95 or Windows 98 MotoCross requires that you install CodeWarrior using the Metrowerks CD installer with any of their options to build MacOS 68K projects If you have an existing installed CWPro and can compile MacOS 68K applications you can skip this section and resume with the 1 Getting Started Guide If you re using CodeWarrior solely for CF1 development you need only select the options checked in the screen captures below which will require about 160MB of disk space Keep an eye on the Space Required and if it varies lot from the screen snapshots carefully review your selections If you have trouble it s perfectly safe to reinstall CodeWarrior in part or whole and that generally will get you going CD Installation ol CodeWarrior Start by inserting the CodeWarrior CD most PCs you will automatically be presented with the installation dialog On some others you will have to double click on the CD 1 to get things Welcome to Code started Pay attention to the following note from gt the Metrowerks documentation 4 Explore CD The installation software on CodeWarrior Professional can t successfully install a new version of CodeWarrior if an older version of CodeWarrior already exists on your computer To remove the old version of CodeWarrior launch the Uninstall CodeWarrior prog
18. US Another Persistor Exclusive The Motorola QSPI bus is a powerful way to add peripherals such as A D converters and various other sensors to an embedded system Until now there hasn t been an intuitive managed yet performance oriented software layer to control and manage this bus but PicoBUS has solved this problem The API allows you to configure and manage your SPI devices Furthermore our internal library of device configurations 1 growing all the time We may already have done some of the groundwork for the device you want to use Real Time Clock Drivers The 68338 has an onboard Real Time Clock RTC that has its own precision crystal and its own power lines to allow ultra reliable operation and persistence through low power shutdowns and hardware reset cycles This suite of API functions gives you access to setting and reading this clock It also provides its own periodic interrupt much in the same way as the PIT but it 1s fixed at second intervals Furthermore it 1 worth noting that all of the ANSI C time related functions are linked in at a low level to the RTC so it is more than possible that you will never need to use these driver functions Serial Controller Interface Driver The serial controller interface SCI is the main line of communication with the outside world during development It consists of a low level driver for the onboard UART and line drivers Once again all of the ANSI C stdio functions are built on top of
19. alled MotoCross yet but already have a communications program on your PC you can give the Persistor a quick try by setting your communications program for direct connection 9600 baud no parity 8 data bits and 1 stop bit Apply power to the Persistor and you ll probably see something like the following Persistor Persistor Instruments Inc www persistor com SN 10945 gt PICODOS V220 BIOS V226 V2320 C 2000 Peripheral Issues www periph com Cee The PicoDOS prompt is a standard DOS like drive identifier when a flash card 1s installed When there s no card PicoDOS displays a warning that many functions are disable and reverts to the PicoDOS prompt From either prompt you can type the VERsion command with the Verbose option for system details as shown C gt VER V lt ret gt CF1 SN 10945 PicoDOS 2 26 BIOS 2 52 0 PBM 1 44 Typing HELP will always give you list of the available PicoDOS commands Persistor CF1 Getting Started Guide 12 C Programming Tutorial 50 you ve gotten your Persistor out of the box hooked up and ready to go Now it s time to find out what the CF1 can really do This tutorial assumes that you have followed the correct installation procedure for both CodeWarrior and MotoCross If CodeWarrior is not installed or MotoCross 15 installed improperly this tutorial will be of little utility Your First Project New X Project Object To begin launch C
20. bit D A channels and 32 individually programmable bidirectional digital I O pins n MAX3100 SPI UART o o ou IN 11 Channel 12 Bit A D 8 Bit Digital I O Port uPower 10 bit Octal DAC 8 Bit Digital Port 12 The table below lists some of the manufacturers of SPI compatible devices and their product offerings This 15 means complete but it does give you an idea of the 9 expansion possibilities just working the serial bus p p J 5 2 l SPI gt Devices Allegro MicroSystems mu 16 American Microsystems E 9 Analog Devices Atmel m Burr Brown E Catalyst E 5 Dallas Semiconductor m z A E Exel Microelectronics m a Fujitsu Microelectronics N Harris Semiconductor Linear Technology mi e Maxim ejee eejee Micrel Semiconductor 8 Microchip Technology Micro Linear EN Motorola B National Semiconductor 9 iun 5 ao Signal Processing Tech e 5 sc5 Thomson TT 5 Siemens Texas Instruments ee Persistor Getting Started Guide 26 The Counter Timer Module 15 actually a collection of separate timer modules
21. cation Source 33 files amp amp amp e 0 0 n a n a n a n a n a n a 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 n a n a n a n a n a n a n a n a n a n a n a n a n a n a n a n a n a n a n a n a n a n a 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Persistor API functions or PicoDOS you can find those files here Once again you can open the files by simply double clicking on them Application This 15 the folder where you can store all of your application source files You will notice that it already contains a file called cflmain c This is a starter file that we have provided to help make it easier for you to begin development It contains the all of the standard ANSI header file includes as well as all of the device specific includes that you will need to work with the CF1 Persistor CF1 Getting Started Guide 14 Once you become familiar with CodeWarrior and CF1 development you can begin to tailor the organization of projects to meet the specific needs of your application The format described above works well for most projects but just like the arrangement of files on your PC desktop it s really just an organizational convenience unnamed gt Metrowerks CodeWarrior has special H feature that allows multiple targets in one Files Segments Target
22. ducts are not warranted to operate without failure or designed with components or testing suitable for reliable use as critical components where failure to perform can reasonably be expected to cause loss of life or significant harm to humans Designers of diagnosis treatment life support or safety equipment systems for humans using products must take prudent steps to protect against system failures with the appropriate backup redundant or fault tolerant mechanisms Specifications Product features and specifications are subject to change without notice and Pii reserves the right to make any product improvements at any time 15 not responsible for errors or omissions in published documents Limited Warranty warrants that its hardware products against any defects in materials and workmanship under normal and proper use that would prevent them from meeting published performance specifications at the time of purchase for one 1 year from the date of purchase This warranty does not cover depreciation or damage caused by normal wear accident improper use or maintenance Persistor Instruments Inc warrants that its firmware and software products will perform substantially as described in published materials accompanying its hardware products for a period of ninety 90 days from the date of purchase If found defective by within the terms of this warranty the full extent of 11 liability and your exclusive remedy will be sole
23. e CF1 API also proved a chore management system for the PIT allowing you to perform more than one chore written in standard C with no special considerations other than speed on each interrupt and to shield the programmer from the necessity of writing low level interrupt handlers PicoDOS Library Functions Providing that PicoDOS is resident in flash in your particular application which is normally the case you can access most of the core functionality of PicoDOS from within your applications Also provided 1 a subsystem called CMD processor which provides a deep and valuable framework for setting up a command line interface to your program The CMD Processor allows your Persistor CF1 Getting Started Guide 18 program to accept commands from a user interactively over the serial port parse their arguments and dispatch the appropriate function This can be a huge time saver if you want your program to be interactive Power Management Drivers One of the more crucial features of the CF1 is its low power consumption with non executing power down modes as low as 5 uA The CF1 really is a low power panacea for the embedded system designer This driver section gives you access to all the different power modes and power conservation functions the CF1 has to offer There are many ways to reduce power in an embedded system In this API section we have attempted to provide an intuitive management scheme for these many and diverse options Queued PicoB
24. eWarrior and MotoCross for CF1 Warnings and Precautions We really don t want to dampen the excitement of exploring your new board but there s some stuff you really ought to know Even the old timers may find something new to worry about with this new 3 3 volt system and its lowest power suspend mode Just take a minute to skim this short section and save the possible embarrassment and expense of having to admit you leaped before looking Persistor CF1 Getting Started Guide 4 3 3V The is a 3 3 volt only system and cannot tolerate any voltages above 3 6 volts any of its or BUS lines except for the RS 232 signals RSTXD RSRXD RSCTS RSRTS Even momentary connection to 5 volt signals will likely result in permanent damage to the board s components Do not attempt to get around this by running the board at 5 volts as the RAM and especially the flash will suffer stress damage Suspend Mode When the goes into suspend mode all of the and BUS pins except for the RS232 WAKE and SHDN look like very low impedance current sinks with about a 1 3 1 8 volt forward drop CF1 I O or BUS lines being driven from off board peripherals will try very hard and succeed at pulling these levels low which is probably not what you want Any I O lines being pulled high to an external source will be pulled down to this forward voltage drop Both of these situations will consume lots of current which defeats the purpose of s
25. ect directly to any onboard components and is normally wired to VREG with an offboard connection to power the 1 VLIN O ut electronics This output connects to a 10uF tantalum filter capacitor This is the regulated 3 3 volts to the electronics It is normally wired to but may be driven by any VREG 3 3 volt supply VREG connects to an onboard 22uF tantalum filter capacitor It also connects to the 795 power supervisor which resets the CPU and switches over to VBBK when the input drops below 3 volts 2 85 to 3 00 This onboard only power signal feeds the CompactFlash header through a 10 ohm current limiting resistor to VREG It has its own 22uF tantalum filter capacitor VBBK VBAK This is the 3 volt backup battery supply input It feeds into the MAX795 power supervisor and runs the real time clock and 256KB SRAM when the main voltage drops below 3 volts RESET iE do rad This onboard only power signal comes from the MAX795 power supervisor and feeds the RTC and SRAM from VREG when main power is normal and from VBBK when the main voltage drops below 3 volts This open drain bidirectional signal resets the CF1 electronics This is pulled to VREG with an 820 ohm resistor Both the MAX795 power supervisor and the PIC power manager can assert this signal This is an output signal controlled by the power management circuitry Your peripheral circuitry can monitor this signal butonly with inputs hav
26. elect the file with the bin extension In a few seconds MotoCross will load the file into the CF1 and leave you in its terminal window where you ll see something like the following ES COH Motocross Ele Edit View Format Transfer Help 2 Bie E Program cflmain c 29 28858 11 19 33 Persistor CF1 SN 18545 8105 2 25 2 25 Fs 4 1 Arguments argw a This prompt indicates that the code was loaded into your CF1 and the G which was automatically sent by MotoCross 15 an abbreviation for the GO command that will launch your program At this point 1f you press Enter your program will execute What Happened Congratulations you have just compiled and run your first program for your CF1 When you chose the CF1 PicoDOS stationery and gave it the name FirstCF1 Project CodeWarrior created a new folder and populated it with the project file Project mcp a starter source file cfl main c a project data folder Project Data and a bin folder to hold compliled binary code CodeWarrior also automatically opened the project and added it to the list of recent projects so you can quickly open it again from the File menu When you chose Project Make CodeWarrior checked all of the file dependencies compiled all of the C source files then linked the C code with the libraries If it had found any errors it would have displayed an error w
27. en by the RS232 driver chip You can disable the RS232 driver under software control to allow the CF1 to run the UART at CMOS levels 8 DS comes out of reset as an active driving bus output but is not used by the CF1 except when connected to a debugger When your program gets control you can define this line as a BUS signal for decoding an input signal though you must not drive into it until you redefine it or an output signal The convenient location and the fact that it is less useful as a general purpose control line since it flails at reset makes this an ideal pin for diagnostics and timing or profiling your functions with a scope using the fast I O macros 9 of the QSPI PicoBUS signals revert to inputs at reset which means they may assume any state and that could be trouble for attached SPI devices which could interpret reset flailing as commands which in turn could have the SPI device do something the CF1 would not like You should add 10K to 100K pullups to the CS lines of your SPI devices to prevent trouble 10 The PASS pin does not connect to any circuitry on the CF1 and may be used to pass a signal from a top mounted expansion board to another bottom mounted board Persistor CF1 Getting Started Guide 23 Power Connections The CF1 has very flexible power management support circuitry to simplify integration with your electronics The onboard 3 3 volt linear regulator with reverse battery protection and
28. evels We ll go CPT PieoDOs C through the groups one by one ahead 1 MotoCross Support This group contains several libraries crucial to O x compiling projects for the CF1 unnamed lt S These files include a special version of the C standard library and math Files Segments Targets R amp special startup library that sets up amp MotoCross Support 0 Do m your C program to run in the CF1 4 Support 0 0 m environment You will generally EE Application Source _ U never make changes to this group or 33 files 0 0 to the files 1n this group Persistor CF1 Getting Started Guide 13 2 3 4 5 CF1 Support This group contains pair of C files that control runtime memory mapping and provide some interface support between the CF1 firmware and the standard C libraries You will generally never make changes to this group or to the files in this group Docs This group 1 the key to easy development on the CF1 In this folder are links to starting points for all of the on line documentation for the Bear in mind that you will need to have Adobe Acrobat as well as a modern web browser like Explorer or Netscape installed on your machine for this to work There are two HTML files accessible to you in the folder PersistorCF1UsersManual htm is the master link to the user s manual You ma
29. indow with a list of problems for you to fix by double clicking on the error message Documents sFirstCF1Project File Falder File Folder 3KB C Source File iBKB CodeWarrior Project main c Project File Folder File BIN File CodeWarrior Link AHS File AMP File APP File File AMP File Motocross Document E unnamed bir unnamed unnamed AH unnarmed AMP unnamed APP unnamed RH unnamed AMP unnamed AUN 10 objectis E Computer There were no errors so it created the binary file unnamed bin that thinks it is a Macintosh 68K executable along with a map file that specifies the locations of functions and global variables in a not so useful relative offset format Because CodeWarrior thinks in terms of creating Macintosh programs it also generated a few other items which you can safely ignore including a zero length file unnamed and a possibly invisible directory called Resource frk Persistor CF1 Getting Started Guide 16 When you ran MotoCross and post linked unnamed bin MotoCross created six new files that are the real targets for the The file with the extension RUN is a CPM68K binary file and it s what loaded into RAM and ran on the CF1 The APP 15 the same program but targeted to load into flash memory when you use the MotoCross gt Load CPM68K command The RHX and AHX files are also applica
30. ing less than 100nA leakage and less than 100pF capacitance W hen low all of the CF1 circuitry is powered off Do not attempt to assert or load this line This is the inputto the power management circuitry and is pulled high with 330K to the internal VBAK voltage External circuitry coordinated with CF1 driver software may use this line to pull the out of suspend mode SHDN WAKE Persistor Getting Started Guide 24 UART Connections The 68338 has a Serial Controller Interface 5 that provides standard UART functions at rates from 64 to 500 kbaud with advanced error detection circuitry The SCI supports full or half duplex operation double buffering optional parity generation and detection and wakeup on idle line or address detection The CF1 has an onboard MAX3222 dual EIA driver to interface directly to any standard RS 232 terminal or device Either or both the receive and transmit drivers can be disabled under software control to conserve power or allow connection to alternate RS 485 or RS 422 drivers BIOS UART Support The CF1 BIOS software handles port configuration polled or buffered receive and transmit and flow control with several dozen high level C functions One of the example projects that ships on the CF1 Developer s CD demonstrates how to stream incoming RS 232 data to a file on the CompactFlash card at any standard BAUD rate while automatically dropping to less than 2mA whe
31. ingle Action Timer TMR GPIO A CD29 Double Action Timer TMR GPIO Ao 35 CTD27 Double Action Timer TMR GPIO Ao CTD26 Double Action Timer TMR GPIO Ao EFE 5 Interrupt Request 5 IRQ GPIO 10 5 IRQ2 Request 2 IRQ GPIO B10K 5 RSRXD 85232 Receive In UART RSIP5KG 45 IRQ 4 RXD IRQ RS232 Rx CMOS In UART 7 47 RSRTS RS232 RTS EIA Out UART RSO GEE RSCTS RS232 CTS EIA In UART RSIP5 KG 1 DATA4 is pulled low with 10K during reset Signal Desc Function BERR Bus Error BDM BUS Breakpoint BDM FREEZE Freeze BDM DSI BDM Input BDM DSO BDM O utput BDM SHDN Shutdown PW R VBBK Backup Battery Input PW R SCK SPI Clock Q SPI G PIO MOSI SPI Data Out Q SPI G PIO MISO SPI Data In Q SPI G PIO CTD10 Double Action Timer TM R G PIO CTD7 Double Action Timer TM R G PIO CTD6 Double Action Timer TM R G PIO CTS14B Single Action Timer TM R G PIO CTS14A Single Action Timer TM R G PIO CTS18B Single Action Timer TM R G PIO CTD28 Double Action Timer TM R G PIO CTM31L External Timer Load TM R G PIO AP1M External W akeup PWR 4 IRQ7 Interrupt Request 7 G PIO 10 5
32. installation Here s what it should look like MotoLross Setup Thank vau for choosing software from Persistor Instruments Inc This program will install the Mate rass support software for Persistors into your CodeWarrior Pra development system Please answer the prompts that appear during the Installation Choose Destination Location cz The softw f PI directory vou specifie Checking system please walt the directory suggest Metrowerks suggest certain to prov C Program Files codewarnior a zBack gt MotoCross has been successtully installed anto your system run the MotoCross application select its icon from the CF1 program group in the Start There is alzo an Uninstall icon should ever wish to remove the software from your system Thanks again selecting products Persistor Instruments Inc Persistor CF1 Getting Started Guide 10 Location Location Location After installing CodeWarrior and MotoCross you should have something that looks like what s adjacent CodeWarrior 1s very fussy about the relative locations of its various All Folders components and the preconfigured MotoCross ECRIRE stationery makes similar location relative 0 CodeWarrior assumptions If things get moved around expect a Ee MotoC
33. itions of 2 ON 3 General Information 4 4 Egquipinent GQ sudant av 4 Warnthps and PLS CAUTIONS acs 4 Tastallis Code 6 cto cals sessed E _____ _____ _6_6__68__ 10 Location LocatlOBossci teneas Eos ____ _ 1 12 C Programming Tutorial 13 DOU VARS ven E 15 FRU OUP PEOPTOITI 252 15 What 16 SU0sy Ste MS 17 Appendices gt ___ _ 20 Block Diagram and Signal 21 Pin eee 2d ONC CE OMG tne Ud temen __ _______ 24 ERU C Orie CUO NS utei 25 B Siu Geni edi UU m 26 24 Bod Layo TT ETE 28 PRCPDAO Parts T 0catdon OMM 28 PRCPDAO Edu OE
34. ly at 5 option to either repair replace or refund the purchase price of the product that does not meet Pii s limited warranty provided that the defective product is promptly returned to Pii for failure analysis b a complete description of the failure accompanies the product and c no evidence is found of damage from accident neglect misuse or improper alterations of the product TO THE MAXIMUM EXTENT ALLOWED BY LAW THIS EXPRESS WARRANTY IS IN LIEU OF AND BUYER EXPRESSLY WAIVES ALL OTHER LIABILITIES OBLIGATIONS GUARANTEES AND WARRANTIES OF ANY KIND EXPRESS OR IMPLIED INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTY OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND ANY IMPLIED WARRANTY OF TITLE OR NON INFRINGEMENT THIS WARRANTY GIVES YOU SPECIFIC LEGAL RIGHTS AND YOU MAY ALSO HAVE OTHER RIGHTS WHICH VARY FROM STATE TO STATE Limitation of Liability TO THE MAXIMUM EXTENT ALLOWED BY LAW IN NO EVENT SHALL PII OR ITS SUPPLIERS BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING WITHOUT LIMITATION INJURY OR DEATH LOST OR INADEQUATE DATA OR INFORMATION LOST REVENUES OR PROFITS LOST USE OR BUSINESS INTERRUPTION REPLACEMENT OR RENTAL COSTS ARRISING FROM THE FAILURE OF OR INABILITY TO USE PII PRODUCTS IN NO EVENT SHALL PII S LIABILITY FOR ANY DAMAGES EXCEED THE PURCHASE PRICE OF THE PRODUCT Persistor CF1 Getting Started Guide 2 Table of Contents Preface Standard Terms and Cond
35. never the serial line idles This particular example is 180 lines of C code over 100 of which are just comments and formatting RS 232 Wakeup Call Both the RXD and CTS signals connect to interrupt request pins on the 68338 to allow wakeup from deep sleep modes from any UART activity However in the 10 SUSPEND mode power to the CPU is completely off so we add the simple circuit at right to yank on the WAKE line when a UART character comes in It may seem odd to tie the emitter of the NPN transistor to VREG but VREG actually looks like GROUND when the 15 in SUSPEND and this circuit keeps the WAKE line from flailing during normal operation 2nd UART borrowing spare drivers of the MAX3100 CMOS level UART signals are brought out to allow driver iE replacement and the RTS and CTS signals can be used for EIA level flow control or reassigned to work as RXD and TXD signals for a second external UART such as a MAX3100 SPI UART shown In the next section you ll see that this same technique can be used to expand to up to 14 additional UARTS ar MEE GND Persistor CF1 Getting Started Guide 25 QSPI Connections The 68338 has a powerful Queued Serial Peripheral Interface that allows simple hardware expansion to over five hundreds different SPI compatible devices The circuit at right demonstrates glueless expansion adding a second UART from the previous section 11 A D channels with 12 bit resolution 16 voltage output 10
36. odeWarrior Select File gt New Project A New window will appear allowing you to select from a list of stationery You will see options for several types of projects but for now just choose Persistor CF1 stationery Type the desired name we ll use FirstCF Project in the Project Name box click OK The next New Project window will ask to specify which type of CF1 project you want and you should expand the appropriate CodeWarrior version probably CWPro6 and choose CF1 PicoDOS and click Empty Project Project name 05 C Stationery Project 05 C Stationery ha Makefile Importer wizard Location 9 Persistor Stationery Documents Proje Set Adad ta Project Froject Hew Project Select project stationery Once the above steps are completed you will be presented with a CodeWarrior Project window There Project Stationery 4 for Ew Prod H far Prod for CA Prob are several groups within the project window These are merely organizational tools and do not reflect any on disk structure for the project When first opened 7 CF1 MpPico these groups are collapsed and you can click on their BIDS expander controls the boxes on the left to view the files in the groups The two snapshots at right show the 1 269005 same project with different expansion l
37. older directory Bue particularly bad place to C Program Filezhetrewerks Cadewarriar Browse keep your own projects as they can get inadvertently deleted when you upgrade to the next release of lt Back Cancel CodeWarrior This 15 covered more detail in the getting started documentation for Windows Yersion 6 0 Setup Setup Type CodeWarrior Choose the setup type that best suits your needs Select Components 22 me trowerks Click the type of Setup you prefer Using the screen snapshots as a guide 1 Setup Type a Click select 4 Custom Installation b Click Next gt 2 Select Components a Check CodeWarrior IDE b Check PPC 68K Development c Click Next gt 3 Select Program Folder Description 1 Full Install 2 C C Minimal Install 3 Java Minimal Install 4 Custom Installation Use this option to customize the Installation of the Codey arriar Development tools needed to write and compile source code with C and Java a Click Next gt 4 Select File Associations Option CodeWarrior for Windows Yersion 6 0 Setup a Choose Typical Selected Select Components CodeWarrior b Click Next gt Choose the components Setup will install gera metrowerks 5 start Copying Files Select the components you want to install and clear the components you da not want to a Click Next g
38. ram This program is available from the Start menu That done click the Launch CodeWarrior Setup button Then work your way through the next several information dialogs Persistor CF1 Getting Started Guide 6 for Windows Yersion 6 0 Setup x Welcome to the InstallShield Wizard for CodeWarrior For Windows Version 6 0 The Installs hield Wizard will install CodeWarrior Windows Version 6 0 on your computer To continue click Nest for Windows Yersion 6 0 Setup Please read the following license agreement carefully License Agreement CodeWarrior F for Windows Version 6 0 S metrovwerks Press the PAGE DOWN key to see the rest of the agreement Metrowerks Software License Agreement THIS METROWERKS SOFTWARE LICENSE AGREEMENT LICENSE IS AGREEMENT BETWEEN YOU AND METROWERKS CORPORATION METROWERES 1 METROWERKS I5 WILLING TO LICENSE THE ENCLOSED SOFTWARE YOU ONLY UPON THE CONDITION THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS LICENSE PLEASE READ THIS LICENSE CAREFULLY BEFORE USING THE SOFTWARE 45 BY USING THE SOFTWARE INDICATE THAT YOU AGREE BE BOUND BY THE TERMS THIS LICENSE IF YOU DO AGREE TO THE TERMS OF THIS LICENSE METROWERES 5 Do pou accept the terns of the preceding License Agreement IF you choose the setup will close To install CodeWarrior Far Windows Version 6 0 you must accept
39. ross Support your compilations to start failing NM 2 ig Configurations Fortunately you won t be doing much inside the Eg Does CodeWarrior directory All of your work should html be done in completely separate directories with 00014 EHE ConfigurableTimerModule whatever convention you find best For our 22 PersistorCF1LI sers anual projects we typically use E fog BIOS Examples You can even have projects scattered over many 0 Dg Examples directories or drives The main point is a CMD Demos fob PO SOW Gen Dungeon Don t put your projects in the Metrowerks rr directory rici nputs They will be lost when you install updated i Pj ifl 005 Examples versions of CodeWarrior and this is likely to MENU 0 PE PicoLog happen a couple of times a year Even though MEME 001 pO BS232LPBigBuf MotoCross installs and lets you run example programs in the Metrowerks directory it knows l Eoo you can recover them by simply reinstalling MotoCross This is not the case for your EMEN Bei 2 projects and the source files you create 424 Libraries Eg Stationery The only things that should go into the MENU B MotoCross Stationery Metrowerks directories are installations from Persistor Pb EG
40. s project file This allows us in our examples E e to keep related yet separate projects Bes MotoCross Support together in one file for organizational SE MotoCross exe ns P 3 E Bin Run amp pp 0 0 purposes i unnamed Bin n a n a E unnamed RUN n a n a To pick a particular target use the target i pull down menu the project window Bi CFI MsStartup Lib 3820 8 located beneath the Files tab at the top of the MSL C CPUS2 Lib 51808 Math CPLI3z Lib 16620 754 window The left edge of the menu has a Support 1K 1K bullseye with an arrow pointing at it gt 1 156 0 CFi PicaDO S MSLC c 2516 58 CF1 Patch Lib 9069 1016 Some multi target projects send the El Docs 0 0 8 PersistorCF1LIsersM anual htm n a n a 8 ConfigurableT htm n a n a CFlEsamples amp ppMotes htm n a n a CF ReleaseN otesladex htm n a n a compilers object and binary data to either a bin directory or into a directory named lt PROJECTNAME gt Data Point 0 0 MotoCross to one of these if you do not see Bee E8338ckts the binaries the main project directory AB nia However if you use our project stationery 1 s s this should not be an issue LT1521 pdr nia Bg MAXTAB pdf n a n a NE MASZ22 pdf n a n a Your first program
41. s The CompactFlash Low Level drivers cover programming needs specific to CompactFlash card management and use It is unlikely that you would ever use these but they are provided as an additional abstraction layer between the hardware and the ATA device drivers Checksums and Cyclic Redundancy Check Functions Because many CF1 applications involve the transfer of data between the CF1 and a host computer as well as any other mating systems there 15 often a need for error checking and data integrity tests These functions provide a built in mechanism for performing checksum verification and cyclic redundancy checks Chip Select Drivers One of the more interesting and distinguishing features of the 15 the ease with which you can add memory mapped peripherals The functions in the API subsection provide relatively high level mechanisms for mapping and configuring the two bus chip select lines that are available for your use Examples are also provided which make use of these functions for mapping in new I O See the examples folder in the User s Manual for more information on this specific example Persistor CF1 Getting Started Guide 17 Configurable Timer Module The uses the Motorola MC68CK338 processor as its main brain The 338 contains several hardware submodules that are specifically tailored to the common tasks in embedded computing One of these submodules is the Configurable Timer Module While it 1 one of the more complex subsy
42. stems in the 338 we have attempted to provide high level accessor function to all of the features of the CTM6 The CTM contains both Single Action and Double Action modules that can perform tasks such as period measurement and Pulse Width Modulation For a more detailed description of the CTM please see the included HTML documentation from Motorola which you will find in the same directory as your user s manual Flash Memory Functions The 1 has 1 of non volatile flash memory built in This 15 used to hold both the BIOS libraries and PicoDOS as well as other system internals However there is about 768K free for non volatile application storage or data storage 1f you find the need Because flash memory has special requirements and does not support random access unlike conventional RAM we have developed a suite of functions that perform the writing and erasing tasks on the flash as well as other maintenance chores and diagnostic utilities If you wish to develop programs that will make use of the Flash you will need to familiarize yourself with this section in the User s Manual Interrupt and Exception Vector Wrapper Functions We recognize that many applications in embedded computing are time sensitive or could be best serviced by a hardware or software interrupt mechanism These functions provide you with a simple easy to understand method for creating your own interrupt handlers written in C We also provide functions that install your ne
43. t install Description i Code arrior IDE b Walt for the d to complete s56 Development All of the development tools 6 Register CodeWarrior H Development that are needed to Compile Link Run and Debug source a Fill out the registration information Lu code developed for PowerPC Elgg standard and 68K processors using the b Click Next gt gg Sources C Language 7 InstallShield Wizard Complete EP Lu a Click Finish Sources 1 hg Libraries Space Required on C 161250 Space Available on C 904068 lt Back Persistor Getting Started Guide 8 for Windows Yersion 6 0 Setup Select Program Folder CodeWarrior Please select a program folder for Windows j metrowerks Setup will add program icona to the Program Folder listed below fou may type new folder select one from the existing folders list Click Nest to continue Program Folders gt 5 Adobe Acrobat 4 0 AppleWorks 5 BenchLink CodeWarrior Far Embedded Systems Hz MPTP 2 for BBE CaldFire Embedded Systems MPTP for BBE CaldFire Embedded Systems HZ MPT Pro 5 CodeW armar For Windows Version 6 0 Setup Select File Association Option metrovwerks ene The installer can map all necessary extensions to the Cadew
44. thermal current limiting that floats on CF1 board to allow you to bypass augment or reassign it to other circuitry Normally you simply wire your positive supply to the VBAT input then jumper VLIN the regulator output to VREG _ Power An onboard power supervisor ensures that CF1 will receive Manager wgak an orderly reset and that the memory and real time clock will be preserved in the event of a power disruption RESET A separate power managing controller lets the CF1 drop into SUSPEND mode where the system draws less than 10 microamps It can wake and resume after a programmed delay or on detection of WAKE signal or CompactFlash card change event Description Ce is the negative return for all of the power signals and digital ground for all of the CF1 logic This is the unregulated DC input voltage to the onboard LT1521 linear regulator The LT1521 will allow the CF1 to work with inputs from 3 6 to 20 volts and provides reverse power protection to 20 volts This input connects to a 1uF tantalum filter capacitor Leave this input unconnected if you are not using the onboard regulator VBAT This is the regulated 3 3 volts from the onboard 11521 linear regulator The T1521 has a rated output of 300mA maximum butthe actual continuous current will vary with temperature and input voltage Refer to the specifications on page 2 for operating limits The regulated output does not conn
45. this agreement CodeWarrior for Windows Yersion 6 0 Setup Welcome to Code armor for Windows Yersion 6 0 CodeWarrior windows Yes 6 0 metrovwerks Please read the following Welcome to CodeWarrior For Windows version Dear warrior Welcome to Cadew arnar H for Windows Version 6 0 On behalf of everbody at 79 like to thank you For your purchase of Codey For Windows Yersion 6 0 Metrowerks 12 proud to affer this latest version of L adew arror Far Windows which includes the following features HEW IDE v 41 k SHIT GI lt Back Persistor CF1 Getting Started Guide Destination Code armor for Windows Yersion 6 0 Setup E4 You re best off just accepting the Choose Destination Location CodeWarrior default directory offered by the Select folder where Setup will install files installer You can actually put metrowerks CodeWarrior anywhere though all of Setup will install CodeWarrior Far Windows Version 6 0 in the following Folder 2 the other documentation and install ta this folder click To install to a different folder click Browse and select another folder installers will reference locations to the standard default The actual location of the CodeWarrior program files does not matter a great deal as you will not actually be working in this directory In fact the Metrowerks estination F
46. tions but in Motorola S Record hex format The RMP and AMP files contain text listing the functions and global variables exactly as they are used on the CF1 You can open and read these maps directly from CodeWarrior Beyond Standard C Libraries As you may have read elsewhere the CF1 supports the ANSI C Standard Library This fact should put an experienced C programmer well on their way to writing more meaningful and useful programs for the 1 However it is unlikely that you bought the CF1 solely to write programs with the C Standard Library You probably want to take advantage of the CFI s I O features low power operation and more of its many specialty subsystems The following 15 a blow by blow description of the major hardware subsystems in the CF1 CF1 Hardware Subsystems The as an embedded controller is very diverse and agile It can do almost anything There are many different sections of APIs for accessing each of the internal capabilities The following 1 a list of the major subsystems that you will find described in further detail in the online User s Manual ATA Device Drivers The API has a suite of functions that allow you to manipulate ATA storage devices usually CompactFlash from within your programs Although most developers will never have a need to use these in light of the standard file routine compatibility they are nonetheless provided for your programming convenience CompactFlash Low Level Driver
47. uspend mode Static Sensitive CMOS Every component on the CF1 is CMOS and susceptible to immediate damage or worse premature field failures 1f you don t take precautions to guard against damage from static electricity Develop with a current limited power supply You can save yourself a lot of grief by running the board from a bench supply current limited to about 100mA Jumpers test probes and programming bugs make it very easy to send the CF1 into some horrible current sucking latchup and current limiting can keep spurious slip from destroying your board Develop at low voltage The CF1 onboard voltage regulator can handle 20 volt inputs but nothing else on the board can Just like current limiting developing at around 4 volts is a good way to keep a simple slip from destroying your board Floating Inputs Most of the I O lines on CF1 do not have onboard pull up resistors and most of these are left in their default input state at reset CMOS floating inputs draw current in somewhat unpredictable fashion nowhere near enough to do any damage but enough to defeat the gains of some of the power saving modes You should either pull unused I O lines to VREG or GND or force them to be outputs Don t Stick Probes in the Header Sockets The header strips used the RecipeCards are meant to accept 0 025 square posts Anything else 15 likely to permanently deform the connectors and cause your system to fail or behave erratically We
48. w interrupt handlers written either in C using our prototyping and definition tools or written directly in assembly language in to the Vector Table of the 68338 LED Signal Functions The has two dual color LEDs mounted near the sides of the Compact Flash header They can be used as simple indicators of program status as a visual watchdog or whatever else you can think of This set of simple almost self explanatory functions control the state and behavior of these LEDs making it easy for your programs to provide the most minimal of visual feedback Pin I O Drivers Functions and Macros These functions and macros allow you to control and manipulate the behavior of the CF1 s 33 general purpose I O lines Some of the pins on the CF1 have alternate functions related to other subsystems This section contains functions that allow you to manipulate these alternate functions and correctly manage the use of the I O pins on connector C on the 1 Furthermore there 15 a set of macros that provide ultra high speed access allowing you to perform basic pin operations in under a microsecond with certain restrictions Periodic Interrupt Timer Another hardware feature of the Motorola MC68CK338 is the Periodic Interrupt Timer or PIT The PIT allows the 338 to trigger an interrupt on a set period The period can be adjusted in increments of 100 microseconds from 100us to 25 5ms and in increments of approximately 5 1108 from 51ms to around 13s Th
49. y just double click that file directly in the window to launch your web browser and begin viewing the manuals ctm htm 15 a link to the Configurable Timer Documentation In addition in the Docs folder you should see a pdf folder This folder contains links to most of the hardware and part level documentation that we provide in PDF format that can be read with Adobe Acrobat Headers This folder contains links to the main header files used in development for the CF1 If you need to look up any function prototypes or typedefs used with any of the E FirstC Fl Project unnamed iz Files Seaments Targets E He ee bea L Ea MotoCrass Support MotoCross ere E Bin Run pp gt unnamed Bin unnamed RUN unnamed APP SIT A CFl MxStartup Lib A MSL C CPLI32 Lib HE Math CFLI32 Lib EE Support Bg CFi RunRam pp Cfg c CF1 PicoDO S MSLC c CF1 Patch Lib Docs i PersistorCF1 Users anual 8 Configurable T htm CFiExamples amp ppMates htm 8 CFiReleaseMotesindes htm aap di HE 68338ckts pdf pa genom pat simm pdf 11521 MAd 4E pdf MAMS 222 cflbios h B cfipico h B More Headers H8 dirent h H8 dosdrive h fonthh me68338 h HE stath termios h BE unistd h amp Appli

Download Pdf Manuals

image

Related Search

Related Contents

Microsoft Word - Franco Morini M1 Service Manual.doc  A-120 Owner`s Manual  Braun MQ745 Aperitive  1 Le défaut (Rapport belge) par Pauline COLSON  2 - Ricoh  Câmara AUTODOME Junior HD PTZ  Danby DFF123C1WDB Use and Care Manual  Samsung LE23R41B Bruksanvisning  TKR-750/ TKR-850  

Copyright © All rights reserved.
Failed to retrieve file