Home
DEMO9S08RG60 Board Operation
Contents
1. Connector Pin Power Option Selected 1 2 Regulated 3 0VDC to 3 3VDC from MCU Connector 2 3 On board regulator connected to input power PWR Terminal Block The PWR terminal block allows external voltage to be applied to the module Input voltage should be limited to between 5VDC and 12VDC Input voltage of 9VDC is typical The terminal block is a screw type connector that will accept a maximum 16 AWG wire 5 0VDC 12VDC OO Input GND 2 Position Screw Type Terminal Block PWR Connector Input MCU Connector Power may be applied to the board through the MCU_PORT connector pins J1 1 and J1 2 Use of this option requires a regulated voltage input limited to 3 3VDC 5 Care should be exercised not to over drive this input Reset Switch The RESET switch provides a method to apply an asynchronous reset to the module Pressing the RESET switch applies a low voltage level to the PTD1 RESET input A resistor tied to the high voltage rail will prevent spurious RESET input to the MCU Crystal Oscillator Crystal oscillator Y1 provides a 16 0 MHz base operating frequency to the MCU This provides an 8 0 MHz internal operating frequency The HCS08 uses dedicated oscillator inputs This crystal input is not routed to the MCU Port connector For More Information On This Product Go to www freescale com DEMO908GB60 Freescale Semiconductor Inc 02 06 04 Communications The DEMO9S08RG60 module provides a
2. 02 06 04 DEMO9S08RG60 STARTUP To start the DEMO programs install the PWR_SEL jumper across pins 2 3 then apply power to the module through the on board terminal block or the MCU_PORT connector There are three examples programmed into the DEMO9S08RG60 board The programs are 1 Debug monitor 2 Stop3 demo 3 Paced loop demo The Debug Monitor is the most important program loaded into the MCU residing on the Demo board In conjunction with software running on a host personal computer PC the debug monitor enables users to program FLASH and debug their programs This Demo requires CodeWarrior to be installed on the development PC The other demo programs offer examples of some simple uses of the Demo board The Stop3 Demo illustrates the low power capability of the MC9SO8RG60 microcontroller operating in stop3 mode The Paced Loop Demo demonstrates a framework that users can implement in their system to periodically execute user routines What Do the Demo Programs Do The Stop3 demo program executes by default at power up if no pushbuttons are held down This program demonstrates operation of the microcontroller in low power stop3 mode The program uses the real time interrupt RTI to recover from stop3 mode In stop3 mode clocks are halted and only IRQ KBI LVI and RTI interrupts can occur For this reason when using the serial debugger you can not trace through the demo code once you have reached a stop instruction
3. Monitor NOTES 1 When power is applied to the Demo board if none of the switches is held down the low power stop3 demo program executes by default For More Informatfon On This Product Go to www freescale com DEMO908GB60 Freescale Semiconductor Inc 02 06 04 2 When power is applied to the Demo board and SW2 is held down the paced loop demo program executes 3 When power is applied to the Demo board and SW1 is held down the serial Debug Monitor program will execute CodeWarrior must be running on the host PC to use the monitor program Connect a straight through DB 9 serial cable between COM port on the PC and SCI1 on the Demo board to allow communications DEBUG MONITOR OPERATION MEMORY MAP Table 2 Monitor Memory Map 0x0000 Direct Page Register Space 0x0045 See the 9508RG60 User Manual for details 0x0046 RAM memory space 0x0845 Initial Monitor Stack Pointer 0x107F 0x 0846 Lower flash block User application memory 0x17FF 0x1800 9508RG60 High Page Register block 0x182B 0x182C User Application Flash Memory OXFBCB OxFBCC User Interrupt Vectors OxFBFF See AN2140 for details on application OxFCOO Monitor Flash Memory Space Protected OxFFFF See the AN2140 application note on the monitor for complete details of operation Basic operation is provided in this manual The monitor occupies 1K bytes of flash memory and about to 50 bytes of stack space It
4. ED2 PTD3 27 For More Information On This Product Go to www freescale com DEMO908GB60 Freescale Semiconductor Inc 02 06 04 APPENDIX A DEMO9S08RG60 I O PORT CONNECTORS DEBUG PORT The Debug or BDM port is a 6 pin header compatible with a Motorola Background Debug Mode BDM Pod This allows the connection of a background debugger for software development programming and debugging in real time without using HCS081 O resources BGND PTGO GND See the HCSO8Reference Manual for complete N C RESET documentation of the BDM N C 3 3V MCU I O Port Connector This port connector provides access to DEMO9S08RGE6O0 I O ports except as noted 3 3V GND PTBO TXD PTB1 RXD PTCO KBI2P0 PTC1 KBI2P1 PTD6 TPMCHO PTB7 TPMCH1 PTC4 MOSI 40 PTD2 IRQ 39 PTD1 RESET 38 PTDO BKGD MS 37 PTB2 PTB3 35 PTB4 34 PTB5 33 PTB6 32 PTD4 ACMP Note User interface switches and LED signals are not routed to the MCU_PORT OONODOUAROM w o PTC5 MISO PTC6 SPSCK PTC7 SS PTEO PTE1 PTE2 PTE3 PTE4 PTES PTE6 PTE7 PTD5 ACMP PTAO KBI1PO PTA1 KB1P1 PTA2 KBI1P2 PTA3 KBI1P3 PTC2 KBI2P2 PTC3 KBI2P3 PTA4 KBI1P4 PTAS KBI1P5 PTAA6 KBI1P6 IRO For More Information On This Product Go to www freescale com DEMO908GB60 Freescale Semiconductor Inc 02 06 04 APPENDIX B Mechanical Details lt 1 500 0 150 2 PLACES 1 200
5. Freescale Semiconductor Inc DEMO9S08RG60 Demonstration Board for Motorola MC9SO8RG60 Axiom Manufacturing e 2813 Industrial Lane e Garland TX 75041 Email Sales axman com Web http www axman com Go to www freescale com DEMO908GB60 Freescale Semiconductor Inc 02 06 04 CONTENTS A O ONO TN 3 An IO 3 FEATURES insan als 4 GETTING STARTED indra asa a kaasaa naan aa aa kaka aaa k Raad saa nlanan a aadnan ia ata aaana andan ananannnnn annans n Nanndnnananananasnnnainnanbananninas bananutan aninana 5 REFERENCE DOCUMENTATION v Tu H t a a r an 5 DEMO9S0SRG60 STARTUP iia liinda 6 What Do the Demo Programs DO ooooonccicccionnnonnonnnnnnnnnonnncnno nono one ono bark nn ne aaa nn RR s asta E RO AE EVEA a alt aa ta Ska ET AEE EEE Sa 6 Executing the Demo Proo raS na raa s kanala ra vanta ka krana a kara saak lr REL kal 7 Selecting the Demo PrOgrdMs oi scssciessvescassaseseasaseuesisnsrdsesniasigsssselaasvudesadsessoecasssoed aaa Enia S aap Eas arin iaa SEE E naai 7 Table Demo Program Selecionar A a O ra a a E EE hs 7 DEBUG MONITOR OPERATION vr stssnihksns brli kstn db s l t lhvntto tlska nldski udslanvikssksdisusvekni 8 MEMORY MAP sast rrr 8 Table 2 Monitor Memory Mapassanscannasuhabnltoitlnsirna h susik asapunt nkkai ul suna aa ee Er SEEREN amp DEMO9S08RG60 Board Operation a anvnvnvvnvvvvvrverssssssssssssssasssssaanananan annan nananannnnnnnnnanannnnnnnnnnnnnnnnnnnnnnnnnnnnnnnna
6. IOSYL AE E HADX ZEZSH lend 91 LNS 9021 10109 191 M user AFI EZLOS epoyyen wog OvGLVa Wwood ADE Ayyoyos apoq 1NS sode sdeo m ZHINOO 91 19 soyeuosay 5080 M9L L GS WYO NI UOqUeD soy 5080 WYO yO UOqeDd say 5080 G Wyo y p uOged say 5080 S M9 L L WYO OEE UOqeD say 5080 A91 4N uoy deo 5080 AOS AN L uoy deo VINS Yue AOL no 9913 deo an J XIGNAddV yoked Gz Yea bc yoeal ez yoeo zz Yea zZ Yea L 02 Yea L 61 yoeag LL Yea gz 91 Yea G GI yoeag rl yoko EL yoked Z yoko LL Yea Ol Yea L 6 Yea L 8 Yea 4 yoeag 9 Yea Ss yoeog y yoeop yoeaG z Yea g tun AD wey For More Information On This Product Go to www freescale com
7. If you are using the serial debugger you press the go button in the debugger program and test 1 is entered No user switches pressed you will no longer be able to halt or trace the demo code This is because there are no clocks to the serial communications module With the Stop3 Demo running LED1 will flash approximately twice a second While the LED is off the MCU is in low power stop3 mode and will remain in stop3 mode until the next RTI RTI is generated periodically by an MCU timer During Stop3 Demo execution press and hold SW1 for at least 0 5sec LED1 will turn on for approximately 3 seconds Pressing SW2 for at least 0 5sec will cause LED2 to turn on The Software paced loop demo program executes when SW2 is held down at power up The software paced loop program blinks LED1 and LED2 LED1 will blink on and off every second LED2 will blink on and off every two seconds Both LEDs blink at a 50 duty cycle For More Informatfon On This Product Go to www freescale com DEMO908GB60 Freescale Semiconductor Inc 02 06 04 The Debug Monitor program is executed when SW1 is held down at power up The serial debugger when used with a host PC and CodeWarrior software enables a user to erase device FLASH memory program FLASH memory load application programs and debug the application programs The debug monitor dedicates SCI1 as its connection to the host PC and does not use the traditional background debug mode thus eliminating the neces
8. T pe ie CONNECTOR Lo 2 x 40 POSITION 0 1 SPACING 3 w AD Gy 0 617 gt vi pes 0 375 va L PCB THICKNESS 0 062 For More Information On This Product Go to www freescale com Freescale Semiconductor Inc saz sssa3 Abojouyos a104S UO V 39 4 10A 1 0c L WSS coze 1308193 eedorlesr 09980S69N N923cEcE lol 98 LLINOLO TINS S4S09LN9 044 OOSINTVOLNSESOBOVIA OLOMSOLV L6bL N d 4N 99 ueS auojshoy LI U E YOJIMS 3 S9 UOJJ09 SOJDN S ejoo oN IISJ U wyoy was EJ U E IUOSBUB d yaa jaway OWEN AIN GL Y3SN 10d Wag 138 YMd HOS YMd Lr INPON OW3A099 HY80S6IN dod MYL ND b Y9peay Uld ypXz UUOD ny 5419 h 1speay Uld XZ UUOD MYL 119 b Y9peay Uld EX UUOD JUNOW god WH Y d6 qnsq uuog NJU Wwgg s SO dZ Mg We UUOD LWS Anug woyog b MYL SSEd IPH 18490S 0ZXZ uuog JayseM anden SS peaH Ukd b L Oy p malas MPH v 439N 43SN c 439SN HASN TIS UMd 13838 ZMS LMS LEA Ln cN NE E 2031 tagl LA LA La 94 SH cH H SH PHY 19 90 v0 ED 119 019 80 GO LO 21969 ZO W 2U I J HY STVIGALVIN 40 1118 099480S60NA4Aa IV GLE PUL Ob b HOPUEIS X H MPH ub sOy Z JUNYS MPH ny 1 bs wwg gd MS DIOS 8 vuosz AS e OT B YA dd0 1b 099480S6IN NOW Ol D
9. a circuit trace connection between component pads The circuit trace may be cut using a knife to break the default connection To reconnect the circuit simply install a suitably sized 0 ohm resistor or attach a wire across the pads For More Informatfon On This Product Go to www freescale com DEMO908GB60 Freescale Semiconductor Inc 02 06 04 FEATURES The DEMO9S08RG60 is an evaluation or demonstration board for the MC9SO8RG60 microcontroller Development of applications is quick and easy with the included wall plug DB9 serial cable sample software tools examples and debug monitor The DEBUG port is provided for development tool application and is compatible with HCSO8BDM interface cables and software A 40 pin connector allows connecting the DEMO9S08RG60 module to an expanded evaluation environment Features MC9S08RG60 CPU 60K Byte Flash 2K Bytes Ram 40 1 0 lines 44 pin package Timer PWM SCI and SPI Communications Ports 12 Key Board Wake up Ports BDM DEBUG Port Analog Comparator 8Mhz Internal Bus Operation m mM V V CYC Q W pz O 8 High Current Pins 0 Power Input Selection Jumper OF 16 MHz Crystal Oscillator 22 Regulated 3 3V power supply Of RS 232 Serial Port w DB9 Connector o 2 Channel 16 bit Timer Pulse Width Modulator TPM with Input on Capture Output Compar
10. e and PWM capability OO On Chip Analog Comparator with internal reference and full rail to y rail operation User Components Provided 2 Push Switches PTAO PTA1 2 LED Indicators PTA7 PTD3 40 pin MCU I O Port connector provides access to most MCU I O signals Supplied with DB9 Serial Cable Documentation CD Manual and Wall plug type power supply Specifications Board Size 2 2 x 1 6 Power Input 5 to 16VDC 9VDC typical For More Information On This Product Go to www freescale com DEMO908GB60 Freescale Semiconductor Inc 02 06 04 GETTING STARTED The DEMO9S08RG60 single board computer is a fully assembled fully functional development board for the Motorola MC9S08RG60 microcontroller The module is provided with a serial cable for stand alone operation Support software for this development board is provided for Windows 95 98 NT 2000 XP operating systems Development board users should also be familiar with the hardware and software operation of the target HCS08 Refer to the MC9S08RG60 User Manual and Reference Manual for details The demonstration board s purpose is to promote the features of the MC9SO8RG60 and to assist the user in quickly developing an application with a known working environment Users should be familiar with memory mapping memory types and embedded software design for quick successful application development Application development may be performed by using the e
11. e MCU_PORT to power the module as only regulated 3 3V should be applied to this connection Five option jumpers and 3 cut traces setup module operation Enabling an associated option requires installing a jumper or shunt across the appropriate header pins Removing the shunt will disable the associated option An option that is enabled by a cut trace can be disabled by removing the circuit trace between the cut trace component pads Install a suitably sized 0 ohm resistor or piece of wire to re enable the option POWER SUPPLY Input power may be applied by external connection to a 2 position terminal block and 3 3V regulator or directly from connector J1 The input supply is selected by the PWR_SEL option PWR_SEL J umper The PWR_SEL jumper selects the source of power input to the DEMO9S08RG60 module The module may be powered from connections to a 2 position screw type terminal block or from 40 pin MCU connector Power input to the terminal block must be DC voltage between 5V and 12V Power input on the MCU connector must be regulated voltage between 3 0VDC and 3 3VDC Use of the MCU_PORT connector input allows use of batteries to power the module Damage may occur if the MCU_PORT power input pins are over driven Refer to the table below to determine correct PWR_SEL jumper setting For More Information On This Product Go to www freescale com DEMO908GB60 Freescale Semiconductor Inc 02 06 04 Table 3 PWR_SEL J umper Settings
12. mbedded serial interface monitor or a compatible HCSO8 BDM cable with supporting host software The included serial monitor provides an effective and low cost debug method Note that when a BDM cable is used for debugging the BDM pod should be powered from an external supply A serial debug monitor is provided in the MC9S08RG6O0 internal flash memory and uses some HCS08 resources for operation See application note AN2140 from Motorola for complete details User application may be executed by loading the program start address into the Reset Vector OxFBFE OxFBFF and loading the program into device Flash Memory The monitor remains in protected flash memory for future use if needed Reference Documentation Reference documents are provided on the support CD in Acrobat Reader format DEMO9S08RG60_SCH_A pdf DEMO9S08RG60 Module Schematic Rev A DEMOS08RG60_MAN paf DEMO9S08RG60 Board User manual this document MC9S08RG60 D paf MC9S08RG60 Device User Guide GetStartDEMO9S08RG60 pdf DEMO9S08RG60 Quick Start AN 2140 HCS08 Serial Monitor Application Note AN 2493 HCS08 Low Power Modes Application Note AN 2596 Using the HCS08 On Chip Debug System Application Note AN 2616 Getting Started with HCS08 and CodeWarrior Application Note AN2616SW zip CodeWarrior software zip file MON_PLUS_ DEMO_RG60 s19 Object Code for installed demo programs For More Information On This Product Go to www freescale com DEMO908GB60 Freescale Semiconductor Inc
13. ng does not assume any liability arising out of the application or use of any product or circuit described herein neither does it convey any license under patent rights or the rights of others 3 EMC Information on the DEMO9S08RG60 board a This product as shipped from the factory with associated power supplies and cables has been verified to meet with requirements of CE and the FCC as a CLASS B product b This product is designed and intended for use as a development platform for hardware or software in an educational or professional laboratory c In a domestic environment this product may cause radio interference in which case the user may be required to take adequate prevention measures d Attaching additional wiring to this product or modifying the products operation from the factory default as shipped may effect its performance and cause interference with other apparatus in the immediate vicinity If such interference is detected suitable mitigating measures should be taken Terminology This development board uses option selection jumpers A jumper is a plastic shunt that connects 2 terminals electrically Terminology for application of the option jumpers is as follows Jumper on in or installed jumper is installed such that 2 pins are connected together Jumper off out or idle jumper is installed on 1 pin only It is recommended that jumpers be idled by installing on 1 pin so they will not be lost Cut Trace
14. nnnnnnnnnnnnnann rm 9 PFOWER SUPPLY coord AAA 9 PWR SEL JUMP ic 9 Table 3 PWR SEL Jumper Settini S coi as a E R R cicle 10 PWR Terminal Block llar 10 MCU Connector b k kkr kj a k 10 RESET SWITCH ii ds 10 CRYSTAL OSCILLATOR 5 ain ava Silao Sts l S Van S ec dina Ses ode bd EE aa A a li lA A 10 COMMUNICATION Scotland 11 Table 4 SCH Connections nic ti k dos 11 S CEL GONE CIO lia ii A a k k sara 11 Figure LS CU CONNECTION sasa iran inet cantes kaa a eae tees 11 USER OPTIONS a eea A ra nets 12 LED Indicat rs oeiee o E EEEE ip 12 IRAN IA E TT 12 Table 5 User Option Jumper Settings vansan sasa nasa 12 APPENDIX A O ON 13 DEMO9S08RG60 I O PORT CONNECTORS 2aiaaiaiiaasas asan nsatnanananntunnnnananunanannnnnnaunannnunnnnananunannnnnnntanannananaunananunnnnananninnannans 13 DEBUG PORT oasis rip dede DO A EE ie s Sal ta a Sen aera bas 13 MCU NO Port EConnectoPszish BiocldaDnloa dkaktasb ktsv ka ll g a EE A rr a a iio 13 APPENDIX G i N T naka s anaandUaaanaaann ian nana nana nan annan nsa n inaa nal EE E R 14 MECHANICAEDETA DS eta dd 14 APPENDIX O E N T O T O O T E E E E E T E E T 15 DEMO9S08RG60 BILL OF MATERIALS enrera sla E aar 15 For More Informat on On This Product Go to www freescale com DEMO908GB60 Freescale Semiconductor Inc 02 06 04 Cautionary Notes 1 Electrostatic Discharge ESD prevention measures should be used when handling this product ESD damage is not a warranty repair item 2 Axiom Manufacturi
15. provides a binary command set via the SCI1 port COMMUNICATION The MCU supports a maximum 38 4K bps serial communication rate on the SCI1 interface port POWER ON or RESET PROMPT The monitor provides a binary prompt to the Demo board serial SCI1 port For More Informatfon On This Product Go to www freescale com DEMO908GB60 Freescale Semiconductor Inc 02 06 04 COMMANDS No user commands can be applied via the keyboard with software such as HyperTerminal or AxIDE The monitor commands are binary and not compatible with keyboard ASCII entry or display Host based software should interface with the monitor on the serial communication port to provide development support INTERRUPT SERVICE SUPPORT The monitor enables automatic hardware vector relocation in the MC9S08RG60 so user interrupt vectors appear from OxFBCC to OxFBFF Users do not have access to the SCI1 SWI and RESET vectors while the monitor is operating Programming the user Reset vector OXFBFE 0xFBFF will cause the monitor to execute the user program on Reset See the AN2140 application note for user interrupt application DEMO9S08RG60 Board Operation The DEMO9S08RG60 board provides input and output features to assist in application development Access to MCU ports is available through module the MCU_PORT connector The MCU_PORT connector may be used to interface power to the module as well as RS 232 communications signals Care must be exercised when using th
16. s to the HCS08 internal ro E 6 SCI1 serial port via the U2 RS232 transceiver It provides 7 RTS simple 2 wire asynchronous serial communications without RxD 3 flow control Flow control is provided at test points on the MEA CTS module 9 NC Pins 1 4 and 6 are connected together GND gt Q For More Informatibn On This Product Go to www freescale com DEMO908GB60 Freescale Semiconductor Inc 02 06 04 User Options LED Indicators Indicators LED1 and LED2 are enabled from HCS08 I O ports by the USER option bank The LED indicators will light with a logic low signal driven from the respective MCU 1 O port if the option jumper is installed MCU ports PTA7 and PTD3 drive LED1 and LED2 respectively The table below details the user jumper settings Pushbutton Switches Two push button switches provide momentary active low input for user applications Switches SW1 and SW2 are enabled to the HCS08 I O ports by the USER option bank SW1 and SW2 provide input to HCS081 O ports PTAO and PTA1 respectively These switches are also used for DEMO program selection during RESET or POR provided the DEMO program is installed in flash at start up The table below details the user jumper settings Table 5 User Option umper Settings Jumper On Off MCU PORT User 1 Enable SW1 Disable Sw1 PTAO 33 User 2 Enable SW2 Disable Sw2 PTA1 34 User 3 Enable LED1 Disable LED1 PTA7 44 User 4 Enable LED2 Disable L
17. single SCI communications port This port is connected to the MCU_PORT and to the SCI1 connector An RS 232 translator U2 has been provided between the SCI1 connector and the MCU Communication signals applied to the MCU PORT connector must be directly compatible with the HCS08 device no translation support is provided through this path As added development support handshake signals RTS and CTS are available at the output of U2 These signals are routed to vias located behind the SCI1 connector RTS has been biased properly to support 2 wire RS 232 communications Use of the MCU_PORT interface for RS 232 services requires disabling the on board RS 232 translator This is accomplished by opening cut traces CT1 CT2 and CT3 Simply remove the circuit trace between cut trace pads to open the circuit To restore the circuit install a suitably sized 0 ohm resistor or a short piece of wire across the cut trace pads See Cut Trace Setting above for details Table 4 SCII Connections HCS08Port COM Signal T O PORT Signal Disable Connector RS 232 Disable ASE SA PTBO TXD1 SCI TXD OUT PTBI RXD1 SCI RXD IN SCII Connector A standard 9 pin Dsub connector provides external connections for the SCI1 port The SCI port is used by default with the serial debug monitor Component U2 provides RS 232 translation services The figure below details the DB9 connector Figure 1 SC 1 Connector Female DB9 connector that interface
18. sity for a background debug mode cable Free software is available for execution on a PC as an interface to the monitor Refer to application note AN2140 for a full explanation for using the debugger Executing the Demo Programs Before you can run the demo programs configuration jumpers must be installed on the Demo board To run the Demo programs install all 4 User Interface jumpers User 1 through User 4 Install the PWR_SEL jumper as shown above to select the applied voltage source If neither push button switch is depressed during RESET or at power on the Stop3 Demo executes automatically As noted above this demo highlights the low power feature of the MC9S08RG60 MCU To execute the Paced Loop Demo press and hold SW2 then press and release the RESET switch To use the monitor program connect a straight through DB 9 serial cable between the COM port on the PC and the SCI1 connector on the Demo board CodeWarrior software must be installed on the host PC to support the serial monitor Selecting the Demo Programs Pushbutton switches are used to select between installed demo programs The switches are read at the rising edge of RESET Hold down the chosen pushbutton while applying power or while pressing the RESET switch The actions of the switches are shown in the table below Table 1 Demo Program Selection Switch SWx Demo Program Executed No Switch held down Stop3 Demo sw2 Paced Loop Demo SWI1 Debug
Download Pdf Manuals
Related Search
Related Contents
Recomendaciones Generales ゴロカイビンク取扱説明書 ` `・` Manual Bantam ー防爆栓の採用により、 安全性に配慮 Single Packaged Air Conditioner Copyright © All rights reserved.
Failed to retrieve file