Part Number Hot Search : 
64BDK07G ND1391 WM8781 ADP1101 AK9822M EPR1205G ZPY110 NKA0315D
Product Description
Full Text Search
 

To Download CYCLONE08UM Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  december 2002 mon08 cyclone user manual ?p&e microcomputer systems, inc., 2001, 2002; all rights reserved
purchase agreement p&e microcomputer systems, inc. reserves the right to make changes without further notice to any products herein to improve reliability, function, or design. p&e microcomputer systems, inc. does not assume any liability arising out of the application or use of any product or circuit described herein. this software and accompanying documentation are protected by united states copyright law and also by international treaty provisions. any use of this software in violation of copyright law or the terms of this agreement will be prosecuted. all the software described in this document is copyrighted by p&e microcomputer systems, inc. copyright notices have been included in the software. p&e microcomputer systems authorizes you to make archival copies of the software and documentation for the sole purpose of back-up and protecting your investment from loss. under no circumstances may you copy this software or documentation for the purpose of distribution to others. under no conditions may you remove the copyright notices from this software or documentation. this software may be used by one person on as many computers as that person uses, provided that the software is never used on two computers at the same time. p&e expects that group programming projects making use of this software will purchase a copy of the software and documentation for each user in the group. contact p&e for volume discounts and site licensing agreements. p&e microcomputer systems does not assume any liability for the use of this software beyond the original purchase price of the software. in no event will p&e microcomputer systems be liable for additional damages, including any lost profits, lost savings or other incidental or consequential damages arising out of the use or inability to use these programs, even if p&e microcomputer systems has been advised of the possibility of such damage. by using this software, you accept the terms of this agreement. ms-dos & windows are registered trademarks of microsoft corporation. motorola is a registered trademark of motorola, inc. ibm is a registered trademark of ibm corporation. p&e microcomputer systems, inc. p.o. box 2044 woburn, ma 01888 617-353-9206 www.pemicro.com manual version 1.07
mon08 cyclone user manual i p&e microcomputer systems, inc. 1 introduction ............................................................................................................3 2 mon08 cyclone hardware .................................................................................3 2.1 mon08 cyclone power supply ..................................................................................................... 3 2.2 rs232 communication.......................................................................................................... .........3 2.3 electromechanical relays..................................................................................................... ..........4 2.4 power connectors............................................................................................................. ..............4 2.5 jumper settings.............................................................................................................. .................4 2.6 optional oscillator .......................................................................................................... ...............5 2.7 target mon08 connector........................................................................................................ ......6 2.8 ribbon cable ................................................................................................................. .................8 2.9 target power management....................................................................................................... ......8 3 target mon08 header pinouts .......................................................................13 3.1 68hc908ab ................................................................................................................... ..............13 3.2 68hc908ap................................................................................................................... ...............14 3.3 68hc908as................................................................................................................... ...............15 3.4 68hc908at ................................................................................................................... ..............15 3.5 68hc908az ................................................................................................................... ..............16 3.6 68hc908bd ................................................................................................................... ..............17 3.7 68hc908ey ................................................................................................................... ..............18 3.8 68hc908gp................................................................................................................... ...............18 3.9 68hc908gr16 ................................................................................................................. ............19 3.10 68hc908gr4/8 ............................................................................................................... .............20 3.11 68hc908gt .................................................................................................................. ...............21 3.12 68hc908gz .................................................................................................................. ...............21 3.13 68hc908jb1/8 ............................................................................................................... ..............22 3.14 68hc908jb16 ................................................................................................................ ..............23 3.15 68hc908jg .................................................................................................................. ................24 3.16 68hc908jk .................................................................................................................. ................24 3.17 68hc908jl.................................................................................................................. .................25 3.18 68hc908kx .................................................................................................................. ...............26 3.19 68hc908ld .................................................................................................................. ...............27 3.20 68hc908lj.................................................................................................................. .................27 3.21 68hc908mr16/32 ............................................................................................................. ..........28 3.22 68hc908qt .................................................................................................................. ...............29 3.23 68hc908qy .................................................................................................................. ...............30 3.24 68hc908rf .................................................................................................................. ................30 3.25 68hc908rk .................................................................................................................. ...............31 3.26 68hc908sr .................................................................................................................. ................32 4 stand-alone programmer operation .......................................................33
ii mon08 cyclone user manual p&e microcomputer systems, inc. 4.1 mon08 cyclone buttons ......................................................................................................... ... 33 4.2 mon08 cyclone led indicators ................................................................................................ 33 4.3 example ..................................................................................................................... .................. 34 5 stand-alone programmer configuration .............................................35 5.1 command line parameters....................................................................................................... ... 36 5.2 port pin settings............................................................................................................. .............. 36 5.3 baud rate and security settings................................................................................................. .37 5.4 target power down/up delay in milliseconds........................................................................... 37 5.5 specify programming algorithm and s-record.......................................................................... 38 5.6 programming operations ....................................................................................................... ...... 38 5.7 image description ............................................................................................................ ............ 39 5.8 save image................................................................................................................... ................ 39 5.9 stand-alone operation procedure ............................................................................................... 39 6 pc-hosted debug/programming software..............................................40 6.1 p&e microcomputer systems software ...................................................................................... 40 6.2 metrowerks software.......................................................................................................... ......... 43 6.3 target connection and security dialog ..................................................................................... 48
mon08 cyclone user manual 3 p&e microcomputer systems, inc. mon08 cyclone 1 introduction the mon08 cyclone is designed to control the motorola 68hc908 targets in-circuit via the monitor rom (mon08 port). the cyclone acts as a debugging/programming tool. it communicates with pc through a standard rs-232 port. in addition, the mon08 cyclone can function as a stand- alone programmer. once configured properly, it can program target devices independent of a pc. some of the features that make the mon08 cyclone versatile are: a. software configurable port pin settings for monitor rom entrance. b. works with 3.3v and 5v targets with internal bus frequency ranges from 1mhz to 8mhz. c. automatically detects target internal bus frequency and sets communications baud rate. d. automatically cycles target power using electromechanical relays during security protocol. e. provides 5v 9.8304 mhz oscillator signal to overdrive target crystal and rc clock circuitry. 2 mon08 cyclone hardware 2.1 mon08 cyclone power supply the mon08 cyclone requires a regulated 5v dc center positive power supply with 2.5/5.5mm female plug. the mon08 cyclone derives its power from the power jack located beside the db9 female connector. 2.2 rs232 communication the mon08 cyclone provides a db9 female connector to communicate with a host computer through the rs232 communication (57600 baud, 8 data bits, no parity, 1 stop bit).
4 mon08 cyclone user manual p&e microcomputer systems, inc. mon08 cyclone 2.3 electromechanical relays inside the mon08 cyclone, two electromechanical relays are used to cycle target power. the specifications of the relays are as following: maximum switched power: 30w or 125 va maximum switched current: 1a maximum switched voltage: 150vdc or 300vac ul rating: 1a at 30 vdc 1a at 125 vac 2.4 power connectors the mon08 cyclone provides a target power supply input jack and a target power supply output jack with 2.5 mm pin diameter. the power jacks are connected or disconnected by two electromechanical relays. when connected, the center pin of the target power supply input jack is connected to the center pin of the target power supply output jack. figure 2-1: power connector locations 2.5 jumper settings the mon08 cyclone provides five jumpers to make the power management more convenient. the five jumpers are specified as follows, beginning with the jumper next to the target power supply input jack. jumper function 1 target voltage = 5 volts 2 target voltage = 3.3 volts 3 power in vcc connected to cyclone generated power (5v or 3.3v) 4 power in/out gnd connected to cyclone gnd
mon08 cyclone user manual 5 p&e microcomputer systems, inc. mon08 cyclone mon08 cyclone 5 power out vcc connected to mon08 connector pin 15 jumper 1 and jumper 2 notifies the mon08 cyclone of the target mcu voltage. either jumper 1 or jumper 2 must be shorted, but not both. jumper 3 and jumper 4 are provided to enable the target board to draw power from the cyclone so that the power in jack is not needed. in this case, the target power has to be either dc 5v (jumper 1) or 3.3v (jumper 2). jumper 5 connects pin 15 of the mon08 connector with the center pin of the target power supply output jack. if jumper 4 and jumper 5 are shorted the target may obtain power through the ribbon cable and the target power supply jack is not needed. 2.6 optional oscillator the mon08 cyclone provides a 5v 9.8304 mhz oscillator clock signal to pin 13 of the mon08 connector. if the target is a 5v system, the user may use this clock signal to overdrive the target rc or crystal circuitry. if this signal is not used, just leave pin 13 of the target mon08 header unconnected. please note that if the target already uses an oscillator as its clock, the cyclone will not be able to overdrive it. the clock should have sufficient drive to be used with a target system even if the target system has an rc circuit or crystal connected.
6 mon08 cyclone user manual p&e microcomputer systems, inc. mon08 cyclone 2.7 target mon08 connector the mon08 cyclone provides a standard 16-position 0.100-inch pitch dual row 0.025-inch square header. the mechanical drawing is shown in figure 2- 2 . figure 2-2: 16-pin header mechanical drawing the mon08 connector adopts the standard pin-out from mon08 debugging (as used on different ics boards) with some modifications. the general pin-out is as follows: pin 1 - nc gnd - pin 2 pin 3 - nc rst - pin 4 pin 5 - nc irq - pin 6 pin 7 - nc mon4 - pin 8 pin 9 - nc mon5 - pin10 pin11 - nc mon6 - pin12 pin13 - osc mon7 - pin14 pin15 - vo u t mo n 8 - pin16
mon08 cyclone user manual 7 p&e microcomputer systems, inc. mon08 cyclone mon08 cyclone the physical locations of the pins are displayed below: figure 2-3: mon08 connector pin location please note that nc designates that these pins are reserved for future p&e use. make sure you do not connect any signal to these lines . the mon4-mon8 signals are software configurable to support connections to different 68hc908 devices. depending upon the device, either the mon4 or mon5 pin is the single-wire communications line (which usually corresponds to porta0 or portb0). the rest of the lines are either no connect or are port lines which must be driven to particular values upon reset. the mon08 cyclone software lists the target processor types and their corresponding pin-outs for user references. the software also selects the single-wire communications line according to the target processor type.
8 mon08 cyclone user manual p&e microcomputer systems, inc. mon08 cyclone 2.8 ribbon cable the mon08 cyclone communicates with the target through a 16-pin ribbon cable with 0.100-inch centerline dual row socket idc assembly (not keyed). the ribbon cable is designed such that the cyclone mon08 connector and the target mon08 header have the same pinout. i.e. the pin 1 of the cyclone mon08 connector is connected to the pin 1 of the target mon08 header. figure 2-4 sketches the connection mechanism (looking down into the sockets). figure 2-4: ribbon cable diagram 2.9 target power management there are four target power management schemes available for mon08 cyclone users. the target board may derive power by the use of power jacks, or by the use of mon08 connector pin 15 and the corresponding jumper settings, or a combination of both. the options are explained in detail below. note: in order for the cyclone to handle power sequencing, the target power supply should not be provided to the target system directly in any of these configurations.
mon08 cyclone user manual 9 p&e microcomputer systems, inc. mon08 cyclone mon08 cyclone 2.9.1 using power in jack and power out jack the target power supply is connected to the power in jack of the mon08 cyclone. the power out jack of the mon08 cyclone is connected to the target system. figure 2-5 shows the connections. figure 2-5: via power in and power out jacks of cyclone in this configuration, either jumper 1 (5v) or jumper 2 (3.3v) is enabled, depending on the voltage of the target mcu. the rest of the jumpers are left open, as shown in figure 2-6 figure 2-6: jumper settings for (5v) target power connection via power in and power out jacks of cyclone 2.9.2 using power in jack and pin 15 output a center positive target power supply may be connected to the power in jack of the mon08 cyclone. the power out jack is connected to pin 15 of the
10 mon08 cyclone user manual p&e microcomputer systems, inc. mon08 cyclone mon08 cyclone via jumpers 4 and 5. figure 2-7 shows the connections. figure 2-7: via power in jack and pin 15 of cyclone in this configuration, either jumper 1 (5v) or jumper 2 (3.3v) is enabled, depending on the voltage of the target mcu. jumper 3 is left open. jumper 4 is enabled to provide a common ground of the center positive dc power input from the power in jack and the cyclone board. jumper 5 is enabled to connect the center pin of the power out jack to pin 15 of the cyclone connector. as shown in figure 2-8 figure 2-8: jumper settings for (5v) target power connection via power in jack and pin 15 of cyclone note: in this configuration, make sure that jumper 3 is left open, otherwise the mon08 cyclone may be damaged. 2.9.3 using cyclone board power and power out jack note: the user may need a center positive 5v dc power supply with higher current settings (1a) for this configuration.
mon08 cyclone user manual 11 p&e microcomputer systems, inc. mon08 cyclone mon08 cyclone the target power supply is not needed. the power out jack of the cyclone will act as either a 5v or 3.3v center positive power supply to the target system. figure 2-9 shows the connections. figure 2-9: via cyclone board power and power out jack of cyclone in this configuration, either jumper 1 (5v) or jumper 2 (3.3v) is enabled, depending on the voltage of the target mcu. jumper 3 and jumper 4 are enabled to provide the power out jack with a center positive 5v or 3.3v dc power. jumper 5 is left open. as shown in figure 2-10 figure 2-10: jumper settings for (5v) target power connection via cyclone board power and power out jack of cyclone 2.9.4 using cyclone board power and pin 15 note: the user may need a center positive 5v dc power supply with higher current settings (1a) for this configuration. the target power supply is not needed. pin 15 of the cyclone connector provides either 5v or 3.3v. the power out jacks of the cyclone connector are
12 mon08 cyclone user manual p&e microcomputer systems, inc. mon08 cyclone not needed. figure 2-11 shows the connections. figure 2-11: via cyclone board power and pin 15 of cyclone connector in this configuration, either jumper 1 (5v) or jumper 2 (3.3v) is enabled, depending on the voltage of the target mcu. jumper 3 and jumper 4 are enabled to provide the power out jack with a center positive 5v or 3.3v dc power. jumper 5 is enabled to connect the power to the pin 15 of the cyclone connector. as shown in figure 2-12 figure 2-12: jumper settings for (5v) target power connection via cyclone board power and pin 15 of cyclone connector
mon08 cyclone user manual 13 p&e microcomputer systems, inc. mon08 cyclone mon08 cyclone 3 target mon08 header pinouts this chapter details the mon08 connector signals according to the individual target mcu types. 3.1 68hc908ab figure 3-1: 68hc908ab family mon08 pinout the target gnd is connected to the pin 2 of the target mon08 header. the target reset line is directly connected to the pin 4 of the target mon08 header. alternatively, the user may pull up the reset line to target vdd. in which case the user does not need to connect this signal to the target mon08 header. the target irq line is directly connected to the pin 6 of the target mon08 header. porta0 from the target processor is connected to the target mon08 header pin 10, acting as the communications line. the mon08 cyclone pulls up this signal with a 10k ohm resistor to the target vdd. portc0, portc1 and portc3 are used for entering monitor mode. by default the user may directly bring these signals out to the target mon08 header. alternatively, the user may pull up portc0 and pull down portc1, and pull up/down portc3 for clock division. in which case the user does not need to connect these signals to the target mon08 header.
14 mon08 cyclone user manual p&e microcomputer systems, inc. mon08 cyclone 3.2 68hc908ap figure 3-2: 68hc908ap family mon08 pinout the target gnd is connected to the pin 2 of the target mon08 header. the target reset line is directly connected to the pin 4 of the target mon08 header. alternatively, the user may pull up the reset line to target vdd. in which case the user does not need to connect this signal to the target mon08 header. the target irq line is directly connected to the pin 6 of the target mon08 header. porta0 from the target processor is connected to the target mon08 header pin 10, acting as the communications line. the mon08 cyclone pulls up this signal with a 10k ohm resistor to the target vdd. porta2, porta1 and portb0 are used for entering monitor mode. by default the user may bring these signals out to the target mon08 header. alternatively, the user may pull down porta2 and pull up porta1, and pull up/down portb0 for clock division. in which case the user does not need to connect these signals to the target mon08 header.
mon08 cyclone user manual 15 p&e microcomputer systems, inc. mon08 cyclone mon08 cyclone 3.3 68hc908as figure 3-3: 68hc908as family mon08 pinout the target gnd is connected to the pin 2 of the target mon08 header. the target reset line is directly connected to the pin 4 of the target mon08 header. alternatively, the user may pull up the reset line to target vdd. in which case the user does not need to connect this signal to the target mon08 header. the target irq line is directly connected to the pin 6 of the target mon08 header. porta0 from the target processor is connected to the target mon08 header pin 10, acting as the communications line. the mon08 cyclone pulls up this signal with a 10k ohm resistor to the target vdd. portc0, portc1 and portc3 are used for entering monitor mode. by default the user may directly bring these signals out to the target mon08 header. alternatively, the user may pull up portc0 and pull down portc1, and pull up/down portc3 for clock division. in which case the user does not need to connect these signals to the target mon08 header. 3.4 68hc908at figure 3-4: 68hc908at family mon08 pinout
16 mon08 cyclone user manual p&e microcomputer systems, inc. mon08 cyclone the target gnd is connected to the pin 2 of the target mon08 header. the target reset line is directly connected to the pin 4 of the target mon08 header. alternatively, the user may pull up the reset line to target vdd. in which case the user does not need to connect this signal to the target mon08 header. the target irq line is directly connected to the pin 6 of the target mon08 header. porta0 from the target processor is connected to the target mon08 header pin 10, acting as the communications line. the mon08 cyclone pulls up this signal with a 10k ohm resistor to the target vdd. portc0, portc1 and portc3 are used for entering monitor mode. by default the user may directly bring these signals out to the target mon08 header. alternatively, the user may pull up portc0 and pull down portc1, and pull up/down portc3 for clock division. in which case the user does not need to connect these signals to the target mon08 header. 3.5 68hc908az figure 3-5: 68hc908az family mon08 pinout the target gnd is connected to the pin 2 of the target mon08 header. the target reset line is directly connected to the pin 4 of the target mon08 header. alternatively, the user may pull up the reset line to target vdd. in which case the user does not need to connect this signal to the target mon08 header. the target irq line is directly connected to the pin 6 of the target mon08 header. porta0 from the target processor is connected to the target mon08 header pin 10, acting as the communications line. the mon08 cyclone pulls up this signal with a 10k ohm resistor to the target vdd.
mon08 cyclone user manual 17 p&e microcomputer systems, inc. mon08 cyclone mon08 cyclone portc0, portc1 and portc3 are used for entering monitor mode. by default the user may directly bring these signals out to the target mon08 header. alternatively, the user may pull up portc0 and pull down portc1, and pull up/down portc3 for clock division. in which case the user does not need to connect these signals to the target mon08 header. 3.6 68hc908bd figure 3-6: 68hc908bd family mon08 pinout the target gnd is connected to the pin 2 of the target mon08 header. the target reset line is directly connected to the pin 4 of the target mon08 header. alternatively, the user may pull up the reset line to target vdd. in which case the user does not need to connect this signal to the target mon08 header. the target irq line is directly connected to the pin 6 of the target mon08 header. porta0 from the target processor is connected to the target mon08 header pin 10, acting as the communications line. the mon08 cyclone pulls up this signal with a 10k ohm resistor to the target vdd. portc0, portc1 and portc3 are used for entering monitor mode. by default the user may directly bring these signals out to the target mon08 header. alternatively, the user may pull up portc0 and pull down portc1, and pull up/down portc3 for clock division. in which case the user does not need to connect these signals to the target mon08 header.
18 mon08 cyclone user manual p&e microcomputer systems, inc. mon08 cyclone 3.7 68hc908ey figure 3-7: 68hc908ey family mon08 pinout the target gnd is connected to the pin 2 of the target mon08 header. the target reset line is directly connected to the pin 4 of the target mon08 header. alternatively, the user may pull up the reset line to target vdd. in which case the user does not need to connect this signal to the target mon08 header. the target irq line is directly connected to the pin 6 of the target mon08 header. porta0 from the target processor is connected to the target mon08 header pin 10, acting as the communications line. the mon08 cyclone pulls up this signal with a 10k ohm resistor to the target vdd. porta1, portb3, portb4 and portb5 are used for entering monitor mode. by default the user may directly bring these signals out to the target mon08 header. alternatively, the user may pull down porta1 and portb3, and pull up portb4, and pull up/down portb5 for clock division. in which case the user does not need to connect these signals to the target mon08 header. 3.8 68hc908gp figure 3-8: 68hc908gp family mon08 pinout
mon08 cyclone user manual 19 p&e microcomputer systems, inc. mon08 cyclone mon08 cyclone the target gnd is connected to the pin 2 of the target mon08 header. the target reset line is directly connected to the pin 4 of the target mon08 header. alternatively, the user may pull up the reset line to target vdd. in which case the user does not need to connect this signal to the target mon08 header. the target irq line is directly connected to the pin 6 of the target mon08 header. porta0 from the target processor is connected to the target mon08 header pin 8, acting as the communications line. the mon08 cyclone pulls up this signal with a 10k ohm resistor to the target vdd. porta7, portc0, portc1 and portc3 are used for entering monitor mode. by default the user may directly bring these signals out to the target mon08 header. alternatively, the user may pull down porta7 and portc1, pull up portc0, and pull up/down portc3 for clock division. in which case the user does not need to connect these signals to the target mon08 header. 3.9 68hc908gr16 figure 3-9: 68hc908gr16 mon08 pinout the target gnd is connected to the pin 2 of the target mon08 header. the target reset line is directly connected to the pin 4 of the target mon08 header. alternatively, the user may pull up the reset line to target vdd. in which case the user does not need to connect this signal to the target mon08 header. the target irq line is directly connected to the pin 6 of the target mon08 header. porta0 from the target processor is connected to the target mon08 header pin 8, acting as the communications line. the mon08 cyclone pulls up this signal with a 10k ohm resistor to the target vdd.
20 mon08 cyclone user manual p&e microcomputer systems, inc. mon08 cyclone porta1, portb0, portb1 and portb4 are used for entering monitor mode. by default the user may directly bring these signals out to the target mon08 header. alternatively, the user may pull up portb0, pull down porta1 and portb1, and pull up/down portb4 for clock division. in which case the user does not need to connect these signals to the target mon08 header. 3.10 68hc908gr4/8 figure 3-10: 68hc908gr4/8 mon08 pinout the target gnd is connected to the pin 2 of the target mon08 header. the target reset line is directly connected to the pin 4 of the target mon08 header. alternatively, the user may pull up the reset line to target vdd. in which case the user does not need to connect this signal to the target mon08 header. the target irq line is directly connected to the pin 6 of the target mon08 header. porta0 from the target processor is connected to the target mon08 header pin 8, acting as the communications line. the mon08 cyclone pulls up this signal with a 10k ohm resistor to the target vdd. porta1, portb0, and portb1 are used for entering monitor mode. by default the user may directly bring these signals out to the target mon08 header. alternatively, the user may pull up portb0, pull down porta1 and portb1. in which case the user does not need to connect these signals to the target mon08 header. the clock division is fixed div 4.
mon08 cyclone user manual 21 p&e microcomputer systems, inc. mon08 cyclone mon08 cyclone 3.11 68hc908gt figure 3-11: 68hc908gt family mon08 pinout the target gnd is connected to the pin 2 of the target mon08 header. the target reset line is directly connected to the pin 4 of the target mon08 header. alternatively, the user may pull up the reset line to target vdd. in which case the user does not need to connect this signal to the target mon08 header. the target irq line is directly connected to the pin 6 of the target mon08 header. porta0 from the target processor is connected to the target mon08 header pin 8, acting as the communications line. the mon08 cyclone pulls up this signal with a 10k ohm resistor to the target vdd. portc0, portc1 and portc3 are used for entering monitor mode. by default the user may directly bring these signals out to the target mon08 header. alternatively, the user may pull up portc0 and pull down portc1, and pull up/down portc3 for clock division. in which case the user does not need to connect these signals to the target mon08 header. 3.12 68hc908gz figure 3-12: 68hc908gz family mon08 pinout
22 mon08 cyclone user manual p&e microcomputer systems, inc. mon08 cyclone the target gnd is connected to the pin 2 of the target mon08 header. the target reset line is directly connected to the pin 4 of the target mon08 header. alternatively, the user may pull up the reset line to target vdd. in which case the user does not need to connect this signal to the target mon08 header. the target irq line is directly connected to the pin 6 of the target mon08 header. porta0 from the target processor is connected to the target mon08 header pin 8, acting as the communications line. the mon08 cyclone pulls up this signal with a 10k ohm resistor to the target vdd. porta1, portb0, portb1 and portb4 are used for entering monitor mode. by default the user may directly bring these signals out to the target mon08 header. alternatively, the user may pull up portb0, pull down porta1 and portb1, and pull up/down portb4 for clock division. in which case the user does not need to connect these signals to the target mon08 header. 3.13 68hc908jb1/8 figure 3-13: 68hc908jb1/8 mon08 pinout the target gnd is connected to the pin 2 of the target mon08 header. the target reset line is directly connected to the pin 4 of the target mon08 header. alternatively, the user may pull up the reset line to target vdd. in which case the user does not need to connect this signal to the target mon08 header. the target irq line is directly connected to the pin 6 of the target mon08 header. porta0 from the target processor is connected to the target mon08 header pin 10, acting as the communications line. the mon08 cyclone pulls up this signal with a 10k ohm resistor to the target vdd.
mon08 cyclone user manual 23 p&e microcomputer systems, inc. mon08 cyclone mon08 cyclone porta1, porta2 and porta3 are used for entering monitor mode. by default the user may directly bring these signals out to the target mon08 header. alternatively, the user may pull up porta1 and pull down porta2, and pull up/down porta3 for clock division. in which case the user does not need to connect these signals to the target mon08 header. 3.14 68hc908jb16 figure 3-14: 68hc908jb16 mon08 pinout the target gnd is connected to the pin 2 of the target mon08 header. the target reset line is directly connected to the pin 4 of the target mon08 header. alternatively, the user may pull up the reset line to target vdd. in which case the user does not need to connect this signal to the target mon08 header. the target irq line is directly connected to the pin 6 of the target mon08 header. porta0 from the target processor is connected to the target mon08 header pin 10, acting as the communications line. the mon08 cyclone pulls up this signal with a 10k ohm resistor to the target vdd. porta1, porta2, porta3 and porte3 are used for entering monitor mode. by default the user may directly bring these signals out to the target mon08 header. alternatively, the user may pull up porta1 and porte3, pull down porta2, and pull up/down porta3 for clock division. in which case the user does not need to connect these signals to the target mon08 header.
24 mon08 cyclone user manual p&e microcomputer systems, inc. mon08 cyclone 3.15 68hc908jg figure 3-15: 68hc908jg family mon08 pinout the target gnd is connected to the pin 2 of the target mon08 header. the target reset line is directly connected to the pin 4 of the target mon08 header. alternatively, the user may pull up the reset line to target vdd. in which case the user does not need to connect this signal to the target mon08 header. the target irq line is directly connected to the pin 6 of the target mon08 header. porta0 from the target processor is connected to the target mon08 header pin 10, acting as the communications line. the mon08 cyclone pulls up this signal with a 10k ohm resistor to the target vdd. porta1, porta2, porta3 and porte3 are used for entering monitor mode. by default the user may directly bring these signals out to the target mon08 header. alternatively, the user may pull up porta1 and porte3, pull down porta2, and pull up/down porta3 for clock division. in which case the user does not need to connect these signals to the target mon08 header. 3.16 68hc908jk figure 3-16: 68hc908jk family mon08 pinout
mon08 cyclone user manual 25 p&e microcomputer systems, inc. mon08 cyclone mon08 cyclone the target gnd is connected to the pin 2 of the target mon08 header. the target reset line is directly connected to the pin 4 of the target mon08 header. alternatively, the user may pull up the reset line to target vdd. in which case the user does not need to connect this signal to the target mon08 header. the target irq line is directly connected to the pin 6 of the target mon08 header. portb0 from the target processor is connected to the target mon08 header pin 10, acting as the communications line. the mon08 cyclone pulls up this signal with a 10k ohm resistor to the target vdd. portb1, portb2 and portb3 are used for entering monitor mode. by default the user may directly bring these signals out to the target mon08 header. alternatively, the user may pull up portb1 and pull down portb2, and pull up/down portb3 for clock division. in which case the user does not need to connect these signals to the target mon08 header. 3.17 68hc908jl figure 3-17: 68hc908jl family mon08 pinout the target gnd is connected to the pin 2 of the target mon08 header. the target reset line is directly connected to the pin 4 of the target mon08 header. alternatively, the user may pull up the reset line to target vdd. in which case the user does not need to connect this signal to the target mon08 header. the target irq line is directly connected to the pin 6 of the target mon08 header. portb0 from the target processor is connected to the target mon08 header pin 10, acting as the communications line. the mon08 cyclone pulls up this signal with a 10k ohm resistor to the target vdd.
26 mon08 cyclone user manual p&e microcomputer systems, inc. mon08 cyclone portb1, portb2 and portb3 are used for entering monitor mode. by default the user may directly bring these signals out to the target mon08 header. alternatively, the user may pull up portb1 and pull down portb2, and pull up/down portb3 for clock division. in which case the user does not need to connect these signals to the target mon08 header. 3.18 68hc908kx figure 3-18: 68hc908kx family mon08 pinout the target gnd is connected to the pin 2 of the target mon08 header. the user must pull up the reset line to target vdd with an external resistor. the target irq line is directly connected to the pin 6 of the target mon08 header. porta0 from the target processor is connected to the target mon08 header pin 8, acting as the communications line. the mon08 cyclone pulls up this signal with a 10k ohm resistor to the target vdd. porta1, portb0 and portb1 are used for entering monitor mode. by default the user may directly bring these signals out to the target mon08 header. alternatively, the user may pull up portb0 and pull down porta1 and portb1. in which case the user does not need to connect these signals to the target mon08 header. the clock division is fixed div 4.
mon08 cyclone user manual 27 p&e microcomputer systems, inc. mon08 cyclone mon08 cyclone 3.19 68hc908ld figure 3-19: 68hc908ld family mon08 pinout the target gnd is connected to the pin 2 of the target mon08 header. the target reset line is directly connected to the pin 4 of the target mon08 header. alternatively, the user may pull up the reset line to target vdd. in which case the user does not need to connect this signal to the target mon08 header. the target irq line is directly connected to the pin 6 of the target mon08 header. porta0 from the target processor is connected to the target mon08 header pin 8, acting as the communications line. the mon08 cyclone pulls up this signal with a 10k ohm resistor to the target vdd. porta7, portc0, portc1 and portc3 are used for entering monitor mode. by default the user may directly bring these signals out to the target mon08 header. alternatively, the user may pull up portc0, pull down porta7 and portc1, and pull up/down portc3 for clock division. in which case the user does not need to connect these signals to the target mon08 header. 3.20 68hc908lj figure 3-20: 68hc908lj family mon08 pinout
28 mon08 cyclone user manual p&e microcomputer systems, inc. mon08 cyclone the target gnd is connected to the pin 2 of the target mon08 header. the target reset line is directly connected to the pin 4 of the target mon08 header. alternatively, the user may pull up the reset line to target vdd. in which case the user does not need to connect this signal to the target mon08 header. the target irq line is directly connected to the pin 6 of the target mon08 header. porta0 from the target processor is connected to the target mon08 header pin 10, acting as the communications line. the mon08 cyclone pulls up this signal with a 10k ohm resistor to the target vdd. porta1, porta2 and portc1 are used for entering monitor mode. by default the user may directly bring these signals out to the target mon08 header. alternatively, the user may pull up porta1 and pull down porta2, and pull up/down portc1 for clock division. in which case the user does not need to connect these signals to the target mon08 header. 3.21 68hc908mr16/32 figure 3-21: 68hc908mr16/32 family mon08 pinout the target gnd is connected to the pin 2 of the target mon08 header. the target reset line is directly connected to the pin 4 of the target mon08 header. alternatively, the user may pull up the reset line to target vdd. in which case the user does not need to connect this signal to the target mon08 header. the target irq line is directly connected to the pin 6 of the target mon08 header. porta0 from the target processor is connected to the target mon08 header pin 8, acting as the communications line. the mon08 cyclone pulls up this signal with a 10k ohm resistor to the target vdd.
mon08 cyclone user manual 29 p&e microcomputer systems, inc. mon08 cyclone mon08 cyclone porta7, portc2, portc3 and portc4 are used for entering monitor mode. by default the user may directly bring these signals out to the target mon08 header. alternatively, the user may pull up portc3, pull down porta7 and portc4, and pull up/down portc2 for clock division. in which case the user does not need to connect these signals to the target mon08 header. please note that the mr4/8 is not supported by the mon08 cyclone. however, the mon08 multilink by p&e does. please refer to the mon08 multilink users manual for detailed information. 3.22 68hc908qt figure 3-22: 68hc908qt family mon08 pinout the target gnd is connected to the pin 2 of the target mon08 header. the user must pull up the reset line to target vdd with an external resistor. the target irq line is directly connected to the pin 6 of the target mon08 header. porta0 from the target processor is connected to the target mon08 header pin 8, acting as the communications line. the mon08 cyclone pulls up this signal with a 10k ohm resistor to the target vdd. porta1 and porta4 are used for entering monitor mode. by default the user may directly bring these signals out to the target mon08 header. alternatively, the user may pull up porta1 and pull down porta4. in which case the user does not need to connect these signals to the target mon08 header. the clock division is fixed div 4. please note that the cyclone will calculate the proper trim value for the device being programmed and program this trim value to $ffc0.
30 mon08 cyclone user manual p&e microcomputer systems, inc. mon08 cyclone 3.23 68hc908qy figure 3-23: 68hc908qy family mon08 pinout the target gnd is connected to the pin 2 of the target mon08 header. the user must pull up the reset line to target vdd with an external resistor. the target irq line is directly connected to the pin 6 of the target mon08 header. porta0 from the target processor is connected to the target mon08 header pin 8, acting as the communications line. the mon08 cyclone pulls up this signal with a 10k ohm resistor to the target vdd. porta1 and porta4 are used for entering monitor mode. by default the user may directly bring these signals out to the target mon08 header. alternatively, the user may pull up porta1 and pull down porta4. in which case the user does not need to connect these signals to the target mon08 header. the clock division is fixed div 4. please note that in stand-alone programming mode the cyclone will calculate the proper trim value for the device being programmed and program this trim value to $ffc0. 3.24 68hc908rf figure 3-24: 68hc908rf family mon08 pinout the target gnd is connected to the pin 2 of the target mon08 header.
mon08 cyclone user manual 31 p&e microcomputer systems, inc. mon08 cyclone mon08 cyclone the target reset line is directly connected to the pin 4 of the target mon08 header. alternatively, the user may pull up the reset line to target vdd. in which case the user does not need to connect this signal to the target mon08 header. the target irq line is directly connected to the pin 6 of the target mon08 header. porta0 from the target processor is connected to the target mon08 header pin 10, acting as the communications line. the mon08 cyclone pulls up this signal with a 10k ohm resistor to the target vdd. portb0 and portb2 are used for entering monitor mode. by default the user may directly bring these signals out to the target mon08 header. alternatively, the user may pull up portb0 and pull down portb2. in which case the user does not need to connect these signals to the target mon08 header. the clock division is fixed div 4. 3.25 68hc908rk figure 3-25: 68hc908rk family mon08 pinout the target gnd is connected to the pin 2 of the target mon08 header. the target reset line is directly connected to the pin 4 of the target mon08 header. alternatively, the user may pull up the reset line to target vdd. in which case the user does not need to connect this signal to the target mon08 header. the target irq line is directly connected to the pin 6 of the target mon08 header. porta0 from the target processor is connected to the target mon08 header pin 10, acting as the communications line. the mon08 cyclone pulls up this signal with a 10k ohm resistor to the target vdd. portb0 and portb2 are used for entering monitor mode. by default the user may directly bring these signals out to the target mon08 header.
32 mon08 cyclone user manual p&e microcomputer systems, inc. mon08 cyclone alternatively, the user may pull up portb0 and pull down portb2. in which case the user does not need to connect these signals to the target mon08 header. the clock division is fixed div 4. 3.26 68hc908sr figure 3-26: 68hc908sr family mon08 pinout the target gnd is connected to the pin 2 of the target mon08 header. the target reset line is directly connected to the pin 4 of the target mon08 header. alternatively, the user may pull up the reset line to target vdd. in which case the user does not need to connect this signal to the target mon08 header. the target irq line is directly connected to the pin 6 of the target mon08 header. porta0 from the target processor is connected to the target mon08 header pin 10, acting as the communications line. the mon08 cyclone pulls up this signal with a 10k ohm resistor to the target vdd. porta1, porta2 and portc1 are used for entering monitor mode. by default the user may directly bring these signals out to the target mon08 header. alternatively, the user may pull up porta1 and pull down porta2, and pull up/down portc1 for clock division. in which case the user does not need to connect these signals to the target mon08 header.
mon08 cyclone user manual 33 p&e microcomputer systems, inc. mon08 cyclone mon08 cyclone 4 stand-alone programmer operation the mon08 cyclone may serve as a stand-alone programmer for 68hc908 targets. in this configuration, a pc is first needed to configure the cyclone for a specific target processor. after this the cyclone may function independently. the target power management schemes remain the same. 4.1 mon08 cyclone buttons there are five (5) buttons on the top of the mon08 cyclone which are used for stand-alone programming. they are specified as follows. button function start start executing the tasks pre-configured into the cyclone. aux reserved for future use. toggle power toggles on/off the target board power. cancel cancel the tasks being executed and go back to the standby state. reset hardware reset of the mon08 cyclone. 4.2 mon08 cyclone led indicators the mon08 cyclone has eight (8) leds to indicate the current operation stage. led function target power on indicates that the target board power is connected. standby the mon08 cyclone is waiting for instructions. security the mon08 cyclone is trying to pass the target security and enter monitor mode. erasing the mon08 cyclone is erasing the target flash/ eeprom. programming the mon08 cyclone is programming the target flash/eeprom. verifying the mon08 cyclone is verifying the contents programmed. error the mon08 cyclone failed to execute the functions instructed. success the mon08 cyclone executed the functions successfully.
34 mon08 cyclone user manual p&e microcomputer systems, inc. mon08 cyclone 4.3 example when the mon08 cyclone is powered up, both the target power on and standby led are turned on. these leds are only valid in stand-alone mode. after the user programs the contents and procedures into the cyclone on- board flash, the cyclone may be used as a stand-alone programmer. suppose the user wants to perform the following instructions for a 68hc908 target: 1) erase module 2) blank check module 3) program module 4) verify module. when the start button is pressed, the target power on led will turn off and come back on again, indicating that the mon08 cyclone is powering down, and then powering up, the target board. then the standby led will turn off and the security led will turn on. here, if the target flash needs to be erased first to bypass the security, the security led will turn off and the erasing led will turn on. when the erasing led turns off, the cyclone attempts to pass security again. then, when the cyclone starts programming the module, the programming led is illuminated. after this is done, the programming led is turned off and the verifying led is turned on, designating that the cyclone is verifying the contents just programmed into the target. finally, if these operations have been performed successfully, the success led and the standby led are illuminated. one stand-alone programming cycle has just been completed.
mon08 cyclone user manual 35 p&e microcomputer systems, inc. mon08 cyclone mon08 cyclone 5 stand-alone programmer configuration the mon08 cyclone may act as a stand-alone in-circuit programmer for the 68hc908 targets. the cyclone_config.exe software is the simple user interface for configuring the cyclone. the cyclone does not require a target to be connected when it is being configured. however, the power of the cyclone must be turned on (typically the user can tell by seeing the target power on and standby led shining), and the pc serial port must be connected to the cyclone db9 female connector. figure 5-1: shows the configuration dialog with an example configuration. the configuration details are explained in detail below. figure 5-1: configuration dialog specifically, the following steps are needed to complete the configuration of
36 mon08 cyclone user manual p&e microcomputer systems, inc. mon08 cyclone the cyclone for stand alone programming. 5.1 command line parameters there are two command line parameters of interest. one is the v parameter, which will ignore the object file s-record address range check. the other is the ? parameter, which allows the cyclone configuration status window stay after its operation. this enables you to take a look at the procedure and see that everything is ok, or, for you to find out at which step it is experiencing difficulties. 5.2 port pin settings the following sections of the configuration dialog concern port pin settings. figure 5-2: port pin settings - 68hc908ab family 5.2.1 target type the user should choose the target type that best describes the target mcu to be programmed. for example, choose ab for a 68hc908ab32 device, and choose gr16 for a 68hc908gr16 device. the mon08 header connections are shown on the right hand side for user reference. please refer to chapter 4 for detailed information. 5.2.2 clock selection the user may choose to use the cyclone clock to overdrive the target rc or crystal circuitry. in this case the 9.8304 mhz oscillator signal of the cyclone is connected to the target mon08 header pin 13 through the ribbon cable. the user should connect the target mcu osc1 pin to pin 13 of the mon08 header. if the user chooses to use the target clock, nothing is needed for the pin 13 of the target mon08 header. the 9.8304 mhz oscillator signal of the cyclone will be disabled.
mon08 cyclone user manual 37 p&e microcomputer systems, inc. mon08 cyclone mon08 cyclone 5.2.3 clock division the user may freely choose the clock division (if the target supports) as long as the target bus frequency stays within specification. if the port pin that determines the clock division is not connected to the target mon08 header, the user can safely ignore this selection. typically the clock division does not affect the communications between the mon08 cyclone and the target. normally a smaller clock division leads to faster target bus frequencies, and faster communications between the mon08 cyclone and the target, which in turn leads to a shorter programming time. 5.3 baud rate and security settings figure 5-3: baud rate and security settings dialog section this configuration field provides faster monitor rom entrance for known baud rate and security bytes. if the use specified baud rate and security bytes checkbox is checked, the baud rate and security bytes that are specified in this field are tried first when the cyclone contacts the target. if the target enters the monitor mode successfully, the cyclone will execute the instructed programming operations immediately. if use specified baud rate and security is not checked, or if the target fails to enter the monitor mode using the specified baud rate and security bytes, the cyclone will automatically detect the communications baud rate, ignore the security, enter the monitor mode, erase the target device, power cycle the target, and re-enter the monitor mode using blank security bytes. 5.4 target power down/up delay in milliseconds figure 5-4: target power down/up delay dialog section the user needs to take into account the power discharge time for the power down delay. the reset driver delays, power stabilization time, and the target clock stabilization time should be considered for the power up delay.
38 mon08 cyclone user manual p&e microcomputer systems, inc. mon08 cyclone 5.5 specify programming algorithm and s-record figure 5-5: specify programming algorithm and s-record dialog section the user may either type in a path, or use the button to specify the programming algorithm for the target. similarly, the user may either type in a path, or use the button to specify the s- record to be programmed into the target. 5.6 programming operations figure 5-6: programming operations dialog section in this field, the user may specify the operations to be carried out. erase device if erase device is checked, the cyclone will perform an erase module on the target device after entering the monitor mode. please note that when use specified baud rate and security is not checked, this option is not available - the target device will always be erased. blank check device if blank check device is checked, the cyclone will perform a blank check module on the target device after the erase device function (if checked). program device if program device is checked, the cyclone will perform a program module on the target device after the erase device function (if checked) and the blank check device function (if checked). verify device via crc-8 if verify device via crc-8 is checked, the cyclone will perform a verify crc checksum on the target device. this operation can be substantially faster than verifying the device via the byte-by-byte comparison. verify device via byte-by-byte comparison if verify device via byte-by-byte comparison is checked, the cyclone
mon08 cyclone user manual 39 p&e microcomputer systems, inc. mon08 cyclone mon08 cyclone will perform a verify module on the target device. every byte of the target memory to be verified is read and compared with the contents within the cyclone. 5.7 image description the cyclone configuration utility allows the user to summarize the purpose of current configuration for future reference. the description will be either programmed into the cyclone or saved into a file (encrypted). this field will not affect the cyclone operations with the target. 5.8 save image save image to cyclone allows the current configuration to be programmed into the cyclone. the cyclone will then be ready for operations. the pc serial port specifies which com port the pc uses to communicate with the cyclone to program the configurations. save image to file allows the user to save the configuration into a file, which may be used for future reference, e.g., comparing the cyclone contents with the file to see if they are the same. 5.9 stand-alone operation procedure the following steps must be followed in order for the cyclone to operate properly: 1. turn off the target power supply if the power in jack is adopted. 2. turn off the mon08 cyclone board power. 3. set the correct jumper settings. 3.1 choose the target voltage (jumper 1 for 5v targets or jumper 2 for 3.3v targets). 3.2 if applicable, set the jumpers 3, 4, and 5 to obtain target power from the mon08 cyclone. 4. connect the target power supply to the power in jack, if applica- ble. 5. connect the power out jack to the target board power, if applica- ble. 6. connect the mon08 header ribbon cable to the target mon08 port. 7. turn on the mon08 cyclone board power. 8. turn on the target power supply, if applicable.
40 mon08 cyclone user manual p&e microcomputer systems, inc. mon08 cyclone 9. press the start push button on the cyclone. you will see the leds light up as specific functions are being executed. when the success led lights up, you have successfully programmed your target. 6 pc-hosted debug/programming software free or low-cost software options for interactively programming and debugging 68hc08 mcus from the pc are available from p&e microcomputer systems ( www.pemicro.com ) and metrowerks ( www.metrowerks.com ). p&es ics08 interface software packages are available at no charge from their web site. metrowerks codewarrior development studio for 68hc08, special edition, is available at no charge from the motorola mcu web site ( www.motorola.com/semiconductors/mcu ). you must register for the license key for this software. note: the user should make sure they have the most recent version of these software kits. the latest updates can be downloaded from the web pages listed in section 6.1.1 latest updates - p&e software and section 6.2.1 latest updates - metrowerks software . 6.1 p&e microcomputer systems software p&es ics08 software packages contain the winide integrated development environment, which pulls together an assembler, in-circuit simulator, flash memory programmer, and in-circuit debugger. the programmer and debugger work with any mon08 hardware interface, including p&es dedicated hardware interfaces. the mon08 multilink is a class v device, and the mon08 multilink is class vii. figure 6-7: hardware selection in p&e prog08sz 6.1.1 latest updates - p&e software the most recent updates of p&es 68hc08 software products are available to download, after a brief registration, at http://www.pemicro.com/ics08.
mon08 cyclone user manual 41 p&e microcomputer systems, inc. mon08 cyclone mon08 cyclone 6.1.2 in-circuit debugger the icd08sz in-circuit debugger uses the pcs serial port to communicate with the mon08 cyclone, which further controls the target 68hc08 device via the mon08 connection. with the icd08sz in-circuit debugger you can load code into the on-chip ram, run code out of ram or flash (already programmed by the in-circuit programmer), and set many software breakpoints and a single hardware (meaning in flash) breakpoint. the main advantage of using the icd08sz is that your application runs in real-time at the full bus speed of the processor. figure 6-8: icd08sz debugger screen snapshot debugger features include: ? full-speed in-circuit emulation ? breakpoints with counters on the nth execution ? variables window showing multiple data types ? real-time execution as well as multiple tracing modes ? startup and macro files for automating the debug process ? context-sensitive help for all commands ? support for symbolic register files ? full source-level debugging
42 mon08 cyclone user manual p&e microcomputer systems, inc. mon08 cyclone when connecting to the target, the user will be prompted to make selections from the target connection and security dialog. for more information, please see section 6.3 target connection and security dialog . 6.1.3 in-circuit programmer the prog08sz in-circuit programmer is a general-purpose programmer which allows the user to program any 68hc908 device with on-chip eeprom/flash, either from an object file (motorola .s19 format), or byte by byte. figure 6-9: prog08sz programmer screen snapshot when connecting to the target, the user will be prompted to make selections from the target connection and security dialog. for more information, please see section 6.3 target connection and security dialog . the prog08sz is simple to operate: after clicking the contact target with these settings button, if the programmer successfully contacts the target it will ask you for the algorithm you wish to use during programming. select the proper algorithm for the device you are attempting to program. then simply select the s-record object you wish to program using the ss command. now the setup of the prog08sz is complete and you are ready for operations on the target eeprom/flash. you may choose em C erase module to erase the target eeprom/flash. then use bm C blank check module to see if the target eeprom/flash is indeed erased. after that, you may choose pm C program module to program the s-record object into the target. finally, you
mon08 cyclone user manual 43 p&e microcomputer systems, inc. mon08 cyclone mon08 cyclone may use vc C verify crc checksum to verify that the contents are properly programmed in the target memory. 6.1.4 command line programmer cprog08sz is a command line programmer that allows quick turn-around time for programming target mcus. the user may create a script file to instruct the software to execute specific commands in sequence. please refer to cprog08sz.pdf for more information. 6.2 metrowerks software the special edition of metrowerks codewarrior studio offers absolute assembly and provides debugging capabilities based on p&es programming and debug technologies. 6.2.1 latest updates - metrowerks software the most recent updates of metrowerks codewarrior software is available at: http://www.metrowerks.com/mw/support/download/ default.htm?did=find&vers=cwhc08&submit=find. 6.2.2 metrowerks codewarrior a programming or debug session with the project-based codewarrior ide may be launched by double-clicking on the project name (format is projectname.mcp) from your file storage. starting a new project is a little more challenging, but the tutorials, faqs, and quick start guides are easy to follow and have you building a new project, using pre-built templates, in a short time. (see www.metrowerks.com/mw/develop/ and select codewarrior development studio for hc08 for microcontrollers.) the following example illustrates how to program and debug an m68hc908 mcu from within the codewarrior ide. here are the main steps in programming the flash with codewarrior and starting a debug session. 1. a. launch the codewarrior cw08 software and create a new project, or b. double-click on your project file (projectname.mcp)
44 mon08 cyclone user manual p&e microcomputer systems, inc. mon08 cyclone the project manager window appears. see figure 6-10 . figure 6-10: codewarrior project window 2. click the + sign to expand the sources folder. 3. modify the source file if necessary. 4. click the debug icon (green arrow). the true-time simulator and real-time debugger launches. see figure 6-11 .
mon08 cyclone user manual 45 p&e microcomputer systems, inc. mon08 cyclone mon08 cyclone figure 6-11: true-time simulator & real-time debugger window 5. select the pedebug pull-down menu and navigate to the appropriate device as shown in figure 6-12 . 6. likewise, in the pedebug pull-down menu, select mode: in-circuit debug/programming.
46 mon08 cyclone user manual p&e microcomputer systems, inc. mon08 cyclone figure 6-12: pedebug pull-down menu the prog08sz attempting to contact target and pass security window appears. 7. select the appropriate class in target hardware type (class vii for mon08 multilink and class v for mon08 cyclone). 8. click contact target with these settings 9. follow the power cycle dialog instructions. 10. click yes in confirm window. ( figure 6-13 ) 11. click yes in erase and program flash window. ( figure 6-14 ) 12. follow the subsequent power cycle dialog instructions as the scripted procedure automatically establishes communications, erases the flash if necessary, and programs the flash.
mon08 cyclone user manual 47 p&e microcomputer systems, inc. mon08 cyclone mon08 cyclone figure 6-13: confirm window figure 6-14: erase and program flash window at this point, the flash memory is programmed and ready for debug. the true-time simulator & real-time debugger integrates the debugger tools from p&e microcomputer systems in this example. the windows look slightly different between the icd08sz and true-time tools but the same basic debugger (icd08sz) drives both.
48 mon08 cyclone user manual p&e microcomputer systems, inc. mon08 cyclone 6.3 target connection and security dialog the following is an explanation of each part of the target connection dialog. for information on passing security mode, read this topic carefully, and refer to section 6.3.5 68hc08 security mode . figure 6-15: initial target connection and security dialog box 6.3.1 target hardware type this section of the dialog allows you to select the type of hardware configuration to which you are trying to connect, as well as modify specific protocol settings. note: if you select class v, vi, or vii in the target hardware type selection box, the second section of the target connection and security dialog changes. please refer to figure 6-19 and section 6.3.1 target hardware type for a depiction and description. 6.3.1.1 class of target board there are several different configurations of target boards, and p&es mon08-based applications communicate to each type of hardware a little differently. the options are:
mon08 cyclone user manual 49 p&e microcomputer systems, inc. mon08 cyclone mon08 cyclone class i ics board with processor installed. this is the standard and most common configuration of the ics08 boards. in this configuration, the processor is resident in one of the sockets on the ics board itself. the processor can be debugged and programmed in this configuration, and an emulation cable containing all the processor i/o signals can be connected to the users target board. in this configuration, the ics board hardware can automatically power up and down the processor in order to pass security in the simplest fashion. the user has to be sure not to provide power from the target, up through the emulation cable, to the processor pins themselves, when this dialog appears. this is so that the software, when attempting to establish communications, can fully power the processor down. the software running on the pc controls power to the target via the serial port dtr line. this configuration can be specified at startup in the software by using the ics08 command-line parameter; otherwise the software will remember the hardware configuration from session to session. class ii ics board without processor, connected to target via mon08 cable. in this configuration, there is no processor resident in any of the sockets of the ics board itself. the processor is mounted down in the target system. the connection from the ics board to the target is accomplished via the 16-pin mon08 connector. in this configuration, since the ics does not control power to the processor, the user will be prompted to turn the processors power supply on and off. turning off the power supply is necessary in order to be able to pass the initial security mode check and access the flash on the processor. a simple reset is not enough; to pass the security check, you must first force the processor to encounter a por (power-on reset) which requires that the processors voltage dip below 0.1v. once security has been passed, resetting the device or re-entering the software should be easier. this configuration can be specified at startup in the software by using the mon08 command-line parameter; otherwise the software will remember the hardware configuration from session to session. class iii custom board (no ics) with mon08 serial port circuitry built in. in this configuration, the ics board is not used at all. the user must provide a serial port connection from the pc, and provide all hardware configuration necessary to force the processor into mon08 mode upon reset. this includes resets both internal and external to the processor. in this configuration, because the software does not directly control power to the processor, the user will be prompted to turn the processors
50 mon08 cyclone user manual p&e microcomputer systems, inc. mon08 cyclone power supply on and off. the use will also be prompted to turn power on and off to reset the target processor, as the pc doesnt have control of the target reset. turning off the power supply is necessary mainly to be able to pass the initial security mode check and access the flash on the processor. a simple reset is not enough; to pass the security check, you must first force the processor to encounter a por (power-on reset) which requires that the processors voltage dip below 0.1v. once security has been passed, resetting the device or re-entering the software should be easier. this configuration can be specified at startup in the software by using the nodtr command-line parameter; otherwise the software will remember the hardware configuration from session to session. the class iii selection also applies to use of the ics board with the two-pin blank part programming connector. class iv custom board (no ics) with mon08 serial port circuitry and additional auto-reset circuit built in. in this configuration, the ics board is not used at all. the user must provide a serial port connection from the pc and all hardware configuration necessary to force the processor into mon08 mode upon reset. in addition, the user must include an extra circuit which allows the reset line of the processor to be driven low from the dtr line of the serial port connector (pin 4 on a db9). the following diagram shows the additional connection needed to reset from a db9 serial connector. figure 6-16: additional connection to reset from db9 in this configuration, because the software does not directly control power to the processor, the user will be prompted to turn the processors power supply on and off. turning off the power supply is necessary in order to be able to pass the initial security mode check and access the flash on the processor. a simple reset is not enough; to pass the security check, you must first force the processor to encounter a por (power-on reset) which requires the processors voltage to dip below 0.1v. once security has been passed, resetting the device
mon08 cyclone user manual 51 p&e microcomputer systems, inc. mon08 cyclone mon08 cyclone should be facilitated by the above circuitry. this configuration can be specified at startup in the software by using the nodtradd command-line parameter; otherwise the software remembers the hardware configuration from session to session. class v p&e mon08 cyclone connect to target via ribbon cable. allows auto- baud and auto-power. figure 6-17: mon08 cyclone mon08 interface and stand-alone programmer p&es mon08 cyclone is a stand-alone automated programmer and mon08 interface. this unit can be used as a debug and programming interface with p&e software applications on the pc, or it can be pre-programmed and used in stand-alone mode. class vii p&e mon08 multilink cable connect to target via ribbon cable. allows auto-baud and auto-power. figure 6-18: mon08 multilink interface cable the mon08 multilink is an interface cable whose purpose is to allow debug and programming of 68hc08 devices via the mon08 debug port.
52 mon08 cyclone user manual p&e microcomputer systems, inc. mon08 cyclone the mon08 multilink connects the target to the pc via a standard parallel port. note: if you select class v, vi, or vii in the target hardware type selection box, the second section of the target connection and security dialog changes. please refer to figure 6-19 and section 6.3.1 target hardware type for a depiction and description. also: for the simulator, the /sim08 command-line parameter causes the software to disconnect from the target and enter simulation only mode. for information on passing security mode, read this topic carefully and also refer to section 6.3.5 68hc08 security mode .
mon08 cyclone user manual 53 p&e microcomputer systems, inc. mon08 cyclone mon08 cyclone 6.3.1.2 class v, vi, vii options if you select class v, vi, or vii in the target hardware type selection box, the second section of the target connection and security dialog changes to appear as below. figure 6-19: class v, vi, vii target and security dialog the options presented to the user are as follows: device type figure 6-20: device type selection box
54 mon08 cyclone user manual p&e microcomputer systems, inc. mon08 cyclone the device type selection box allows the user to specify what type of hc08 they are communicating with. the dialog will then display the appropriate pinout to be implemented on the mon08 connector, so that the p&e interface can talk to it properly. the values given (1 or 0) are for informational purposes only and are driven by the p&e interface. device power figure 6-21: device power dialog the device power selection allows the user to specify whether the target is 2, 3, or 5 volts, and whether this power is switched/generated by the p&e interface or if it is separately supplied to the target and under user control. if it is under user control, the software will use dialog boxes to ask the user to power the target up and down when necessary (similar to class ii-iv). device clock figure 6-22: device clock selection box the device clock menu allows three options: 1) p&e provides clock to target 2) the target has its own clock (1-32mhz) 3) the target has a slow crystal (30khz-100khz) with pll circuitry. p&e tries to enable the pll to allow programming and debug at higher speeds. baud there is no need to set baud rate for class v, vi, or vii targets, as it is auto- detected from the target.
mon08 cyclone user manual 55 p&e microcomputer systems, inc. mon08 cyclone mon08 cyclone 6.3.1.3 advanced settings dialog the advanced button brings up a dialog which allows the user to set specific protocol settings. the following is an explanation of each part of the advanced settings dialog. figure 6-23: target hardware type: advanced settings dialog tpd and tpu timing these timing parameters are mostly designed for class i boards, although the delays are valid for all classes of boards. many of the ics boards and user target boards need time to power down and power up. whenever power is automatically switched off, or is manually requested to be switched off, the software waits for an amount of time equal to the tpd delay time before proceeding to the connection protocol. this is because a board or power supply may have capacitance which holds the power up for a short time after the supply has been switched off, but the supply voltage must reach less than 0.1v before it is turned back on if a power-on reset is to occur. whenever power is automatically switched on, or is manually requested to be switched on, the software waits for an amount of time equal to the tpu delay time before attempting to contact the 68hc08 processor. this is to allow time not only for power to be fully available, but to wait until any reset driver has finally released the reset line. on many ics08 boards (such as the ics08rk, m68ics08jl3, m68ics08jljk, and ics08gp20) the tpu can be decreased to as little as 250ms with no adverse effects. target has reset button (class iii boards only): the software occasionally needs to get control of the target. on systems which are class iii boards with the monitor mode circuitry built-in (including rs-232 driver), there is no means to reset the target to gain control. if the board has a reset
56 mon08 cyclone user manual p&e microcomputer systems, inc. mon08 cyclone button, the software can use this to gain control of the target system. if this option is checked, the software will prompt the user to push the target reset button when a reset of the target system is desired. if the option is unchecked, the software will ask the user to power cycle the target system to achieve a reset. mon08 cable connection communications type (class ii boards only) this selection box is valid only for class ii hardware configurations using the mon08 cable. it allows the user to specify the sequence that the software uses to power up the ics system. when the software tries to create a power-on reset condition, two events must occur: 1. power of the target mcu must go below 0.1v. this means that the processor can not be receiving power from its power pins, nor can it have a significant voltage being driven on port pins or the irq line, as these will drive the mcu power back through these pins. it is crucial, therefore, to have the ics and the target both powered down at some point in time. 2. the processor mon08 configuration pins, including irq, must be properly driven when the target processor resets to drive it into monitor mode. if these pins are not set up properly before the processor powers up, the processor may start up in user mode. power down ics, ask the user to power down their board, power up ics, ask the user to power up their board this is the default option and should work for most, if not all, ics08/target board solutions. refer to the manual addendum under startup for the settings for a specific ics board. it requires the user go through two dialog stages, and requires more time than simply cycling the power. 1. software automatically powers down the ics. 2. software asks the user to power down the board as follows: figure 6-24: power down dialog 3. software automatically powers up the ics, which configures the processors mon08 configuration pins.
mon08 cyclone user manual 57 p&e microcomputer systems, inc. mon08 cyclone mon08 cyclone 4. software asks the user to power up the board as follows: figure 6-25: power up dialog powerdownics,asktheusertopowercycletheirboard,powerupics this option will work for many ics boards as well, but relies on the fact that while the ics is powered off, it will hold the target in reset until it is powered up itself and has configured the mon08 configuration pins. the sequence of events in this mode is: 1. software automatically powers down the ics. 2. software asks the user to power cycle their board as follows: figure 6-26: power cycle dialog 3. software automatically powers up the ics, which configures the processors mon08 configuration pins. 6.3.2 target mcu security bytes one of the steps that is necessary to properly bypass security is to provide the proper security code for the information that is programmed into the part. this holds true even when the part is blank. the security code consists of the 8 values which are currently stored in flash locations $fff6 - $fffd of the processor. the prog08sz flash programming software continually records any changes to these security bytes and stores them in the file security.ini. the information in this file is shared with p&e's in-circuit debugger and in-circuit simulator software, and will appear in the dialog box. this allows the user to specify which security code to use to pass security.
58 mon08 cyclone user manual p&e microcomputer systems, inc. mon08 cyclone this dialog can also be used by the user to manually enter the proper security bytes via the user setting, or to load the security bytes from the same .s19 file which was programmed. the bytes are loaded from an .s19 file by clicking the load from s19 button. ignore security failure and enter monitor mode this checkbox can be used to cause the software to ignore a failure to properly pass the 68hc08 security check. if the checkbox is set, the software will attempt to establish monitor mode communications regardless of the security status. as long as the baud and port are correct, and the device has been properly powered, this will allow monitor mode entry. note that by ignoring the security check failure, you may use monitor mode, but the rom/flash will not be accessible. the checkbox can be set to be checked on startup via the forcebypass command-line parameter, which will cause the software to ignore security check failure. this checkbox can be overridden to be un checked on startup via the forcepass command-line parameter, which will cause the software to pop-up the connection dialog when the security check has failed. note that if a connection is not established for a reason other than security failure, the connection dialog will always appear. 6.3.3 status the status area consists of one status string following the status: label, and seven items which list the state of the last attempt to connect to a target and pass security. the description for these items is as follows: 0 C ics hardware loopback detected: every ics or board which supports mon08 has a serial loopback in hardware which, by connecting the transmit and receive lines, automatically echoes characters from the pc. a valid character transmitted from the pc should be echoed once by the loopback circuitry on the board and once by the monitor of the target processor itself. this status indicates whether or not the first echoed character from the hardware loopback was received when one of the security bytes was transmitted. if the status is n, which indicates that the character was not received, it is most likely due to one of the following reasons: 1. wrong com port specified. 2. the baud rate specified was incorrect (probably too low). 3. the ics/target is not connected. 4. no power to the ics. if this status bit responded with an n, you must correct this before
mon08 cyclone user manual 59 p&e microcomputer systems, inc. mon08 cyclone mon08 cyclone analyzing the reset of the status bits. 1 C device echoed some security bytes: the monitor resident in a 68hc08 device automatically echoes every incoming character when it is in monitor mode. a valid character transmitted from the pc should be echoed once by the loopback circuitry on the board and once by the monitor of the target processor itself. this status indicates whether or not the second echoed character from the monitor response was received when one of the security bytes was transmitted. if the status is n, which indicates that the character was not received, or not received properly, it is most likely due to one of the following reasons: 1. the baud rate specified was incorrect. 2. the part did not start the monitor mode security check on reset. signals to force monitor mode may be incorrect. 3. no power to the ics. if this status bit responded with an n, you must correct this before analyzing the reset of the status bits. 2 C device echoed all security bytes: in order to pass security, the software must send 8 security bytes to the processor. the processor should echo each of these eight bytes twice. if all 8 bytes did not get the proper two-byte echo, this flag will be n. reasons for this include: 1. the part did not start the monitor mode security check on reset. signals to force monitor mode may be incorrect. 2. the baud rate specified was incorrect. 3. the processor was not reset properly. check the target hardware type and if you are connecting to a class ii board, check the mon08 cable communication connections type in the advanced settings dialog. 3 C device signaled monitor mode with a break: once the processor has properly received the 8 bytes from the pc software to complete its security check, it should transmit a break character to the pc signaling entry into monitor mode. this break should be sent regardless of whether the security check was successfully passed. if a break was not received from the processor, this flag will be n. reasons for this include: 1. the baud rate specified was incorrect. 2. the processor was not reset properly. check the target hardware
60 mon08 cyclone user manual p&e microcomputer systems, inc. mon08 cyclone type. if you are connecting to a class ii board, check the mon08 cable communication connections type in the advanced settings dialog. 4 C device entered monitor mode: once the software has received, or failed to receive, a break from the processor, it attempts to communicate with the monitor running on the 68hc08 processor. it tries to read the monitor version number by issuing a monitor mode read. if the processor fails to respond properly to this command, this flag will be n. 5 C reset was power-on reset: if the device properly entered monitor mode (4), the software will read the reset status register (rsr). this read does not affect the security sequence, and occurs purely for diagnostic reasons. the reset status register indicates the conditions under which the processor underwent the last reset. for the software to pass the security check properly, it must first cause the processor to undergo a power-on reset. the software reads the reset status register to determine if the last reset was indeed caused by power-on. the result of the reset status register is indicated in parentheses after the flag value. if the highest bit is not set then the reset was not a power on reset, and the flag will indicate n. reasons for this include: 1. the processor did not power all the way down because power was being supplied to the processor through either the port pins, irq line, reset line, or power pins. 2. the voltage driven on the power pin of the processor did not go below 0.1 volts. 3. the processor was not reset properly. check the target hardware type. if you are connecting to a class ii board, check the mon08 cable communication connections type in the advanced settings dialog. 6 C rom is accessible (un-secured): if the device properly entered monitor mode (4), the software reads locations $fff6-$ffff to determine if the processor passes the security check. memory locations which are invalid or protected read back from the device as $ad. if all bytes from $fff6-$ffff read a value of $ad, it is assumed the device is secure, and the flag value is an n. if all flags 0-5 register a value of y and flag 6 register a value of n, then the reset process has gone correctly except that the security code used to pass security was incorrect. specify the correct security code and try again, or ignore the security failure and erase the device. once you erase a secured device, you must exit the software and restart it in order to pass
mon08 cyclone user manual 61 p&e microcomputer systems, inc. mon08 cyclone mon08 cyclone security. 6.3.4 additional dialog buttons the following buttons are also available: contact target with these settings C this causes the software to attempt to cause a power on reset of the target, and to attempt to pass security with the settings in this dialog. simulation only C this button is only visible in in-circuit simulation. this causes the in-circuit simulator not to use the target and, instead, to do completely software-based simulation. the /sim08 command-line parameter has the same function. halt C this causes the software to terminate and return to the calling environment. 6.3.5 68hc08 security mode monitor mode is a special mode on the 68hc08 device which allows an external host to control the 68hc08 microcontroller via an asynchronous serial interface. this feature allows a host computer to query and modify the state of the processor including to load, debug, and program code. without any protection mechanism, this same feature could be used to read out the internals of the microcontrollers rom. the m68hc08 microcontrollers have a additional built-in mechanism to protect a programmed device from being read and disassembled. the mechanism allows a user who knows the security unlock code to enter monitor mode and access the internal rom/flash. this is often desirable to allow real- time debugging of a programmed device. the icd08sz allows just such functionality. the security mechanism also allows a user who doesnt know the security code to enter monitor mode, but doesnt give them access to the rom. upon failing the security protocol, the rom/flash is removed from the memory map until the next power-on reset, in which case the host has to bypass security again. the advantage of this is that even though any on-chip flash is not read accessible, it is erasable. forgotten what you programmed into your device? the answer is simple: erase it. a device is automatically protected in this manner. the 8 bytes from address $fff6 to $fffd constitute the security unlock code which can be used to pass the security check and get access to the rom/flash. hence, if a user knows what has been programmed into a device, they implicitly know the security unlock code. in order to facilitate passing the security check on a 68hc08 device, the
62 mon08 cyclone user manual p&e microcomputer systems, inc. mon08 cyclone prog08sz software continually records any changes to these security bytes and stores them in the file security.ini. the information in this file is also shared with p&e's in-circuit debugger and in-circuit simulator software. this allows the user to reset the device and still have access to the monitor mode. sometimes the case comes up where the software cant pass security mode. the target connection and security dialog section has a status section which describes the different failures and what to check in each case. the most common reasons for not passing security are: - you are not choosing the proper security code to pass security. - on a power on reset, the device is not powering down to below 0.1 volts. with a class i board (ics with processor), you may be driving the pins on the emulation header while the device is being powered down. this back-drives current through the ports and doesnt let the device fully power down. on other classes of boards, when prompted to power down the device, the supply voltage might not be dropping lower than 0.1v which it must to have a power-on reset. - make sure the target hardware type is set to the proper class of hardware. there are several ways you can specify the proper security bytes: - if you know the programmed security bytes, i.e. the bytes from $fff6-$fffd, you can enter them in the edit box listed user: and click ok(retry). - you can use the load from s19 to specify the s-record file which contains the object information currently programmed into the mcu. p&es software will automatically extract the security information from this file and use it to pass security. once you have specified the s-record file, click the ok(retry) button. - you can erase the device. run the prog08sz application, and when the above box appears, select the ignore security failure option and click ok. use the choose module command to select the appropriate programming algorithm, and select erase module. this should erase the device. you will have to execute the choose module command again before you can access the blank device. note: on some older revisions of silicon, you cant ignore the security failure, and it will bring this box back up every time you click ok(retry). if this is the case, you should obtain the latest silicon revision from motorola.


▲Up To Search▲   

 
Price & Availability of CYCLONE08UM

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X