Home

Fujitsu MB91360 Network Card User Manual

image

Contents

1. 5 6 ansa OND ET LND 2TINo ATO TT LIND x CM amp IN2 i 1143 152 os St oP zt t Bz SE et ot Tt ez x OT IM 2143 e x959 TE ez x sa 0143 one ONS d sz SE 13534 PZ 4 ETE d st Er TIE E E Coe O08 ONS nr OLNI ener 34 rz OC ax HNES ener JXL 9 5 MIZH liiOzH NITH LllIOT3 MIZL 20 Tb T2 o 55AH ZTSS 55 ZWT HWM 08420 ZXUTuH EWT Ah 2 1143 THEN T MT MP d Sugao Hgoo 18930 ONS TOGGQAH o zzdr zZXxX TuH Zoho 48
2. S i ll ll ll C bl S ME MEME CH 45 dddddddd HINZHNIININIMZZILOO 222929 437 x8 HddddHddddHddddHddddH o oo5595250 255555525552414141 58 992222958 2 TIT T T LET odds ra g ec 2 2 did Ar 0 22 DOT DOT DOT DOT 1 DOT DOT Dor 5 22 TTS PTO zanr o 0 1531 en 41 1531 Zdl SOSH ONS znr zor ONS O OM vo un 497 zar UG 910006 13 33 Fujitsu Microelectronics Europe GmbH STARTERKIT MB91360 Chapter 7 Appendix FUJITSU 45345666T snae HINOHIX3 3O08HIH NSLirna ONS XB 07442 099 BOARS Jetta S22 JM x952 EEEF xt22 MESO 5 6990 6 STEW ansa 6990
3. wy HINOHIS3I3OHHIM ASLINA 07143 JT4529 0211 Coz 07443 Coe Oo ST45259 13535 L z OJlN2 Coe oo Che 054 071 EEEE ONS ec z2 zHbht ane ane zr zr 22h im m n 5 Poe 5 Cee OI1N Coe 019 CFE odad CBT X T6 8 2 9 S t E Z 1 0 ng L L LiL L L L L L L L L L LiL L LL z TA MINIHI NI 01919 2191919191912 222122222222 1 amp 2 sje 1 z I et tts T T T zroz ZTIO0SStig5X 555555555 HI HEXX 210 8886 59811 6660 555555555 d I 1811 1111 2222 2 4 0004 OXAXXXXXX 111 4 1 3252 848225522 iE 531 r 5 5437 383 7299953 5 2 bra Pda 2221 DDA Z9d 8TH 8 037 SERI
4. NEN 4 7 4 5 7 5 5 5 Me Me 5 Me 05 0000 05 07FC E e 06 0000 0 0000 Code Area 0000 448 k 0000 0000 Debugger Kernel 16 0000 Kcti spen 4000 8000 Startup Code Constants and Interrupt Vectors 48 OF 10 0000 10 07FF CAN 0 2 C87 Ext C852 Reset Request C52 20 0000 2I FFFF 30 0000 37 FFFF 38 0000 Code Area 448 k 512K SRAM Mirror C82 Startup Code Constants and 3F FFFF Figure 5 Memory Mapping Single Chip Mode Monitor Mode Fujitsu Microelectronics Europe GmbH 29 UG 910006 13 FUJITSU STARTERKIT MB91360 Chapter 7 Appendix 7 1 2 MODE 001 External Bus User Mode MB91F362 Memory Map 10 10 10 10 01 FFFF 01 03 FFFF 03 04 04 05 05 08 FFFF OF 10 10 20 FFFF 27 30 FFFF 37 40 0000 0400 OTFF 1000 0000 Cunu 0000 0000 0000 0000 0000 0000 0000 4000 8000 0000 OFFF 0000 0000 0000 Reset Request C52 Free for user s application use C83 C58 Recommended Mappings 3 000 Stack Area 2 ene se Data Area 10k 3 FFFF 08 0000 Code Area 448 k Debugger Kernel 16 OF 0000 Startup Code Constants and OF 4000 I
5. d JP16 Analog Ports AD DA 15 PWM and Pulsgen outputs ceno ooo c0 JP20 INTs x 00605 ICU 509 5V Regulator JP14 Serial Interfaces ui d ER j hc ee LT JP25 Addressbus and Therese 6 Reset Circuit and Reset LED Power on LED User LEDs 5232 driver MELE di F User buttons on and connector ham cH 45552 wx external Ints 0 1 24 Databus CAN tranceiver and 201 5 m nooo oo gt JOD DO OD D 666 G an AA eg eee eme eue e ee ODDO O e O D ih w ha a e x a LCD on Port UG 910006 13 22 Fujitsu Microelectronics Europe GmbH STARTERKIT MB91360 FUJITSU Chapter 6 Evaluation Board Hardware The evaluation board provides various lO signals which can be connected to external devices The controller resource functions are available on the connectors JP14 JP15 JP16 and JP20 External peripheral devices can be connected the address data bus on JP24 and JP25 For more information please refer to the following pin assignments and the schematics in the appendix
6. PWMs HVOD2S a oe Puls Generators EMI 115 PHMLIP 2 5 2 5 eG Pl hihi Oo JUZ GAD The available resource pins can also be used as general purpose 5 using the Port function registers PFRx See table below for details Fujitsu Microelectronics Europe GmbH 25 UG 910006 13 FUJITSU STARTERKIT MB91360 Chapter 6 Evaluation Board Hardware Note Address bus and data bus pins JP24 25 cannot be used as 5 Pin No IO Port Resource Function BEEN ANO PHO ADC Input Channel 0 067 1 1 Input Channel 1 068 2 2 Input Channel 2 MEME 072 AN6 PH6 ADC Input Channel 6 080 Trigger Input 5 126 SGO PMO Sound Generator Output 20 094 INTO UN GNE 1 PK Ext Interrupt 1 ____ Ext Interrupt 3 m 7 LM T m o2 02 INO ICU Input O 103 IN1 PL1 ICU Input 1 n mew e _ Ext Interrupt 7 UG 910006 13 26 Fujitsu Microelectronics Europe GmbH STARTERKIT MB91360 Chapter 6 Evaluation Board Hardware FUJITSU Jumper Pin No lO Port Resource Function 107 OUT P OCU Output 1 6 OCU Output 2 Po pe ms p ___ UR _ ee pe pas row pu
7. TSd 4T Lied DSa 9TH 1 8 DIS ZTH ZTH J547 PTN szd TTH SDd ETNA 259 BRI 59 TDJ ENa 759 au DDd bu d 125 TH HgS Qu THdzuns ODS 21472 Ld 9742110 629 Sdd4 T ine ZIJ ENI Saal Zld zNI asi ONI LNT zza Sd 31NI aad Sudz51NI INI 4 etd CEN ZHd ZLNI mE INI OHd OLNI 27 IND eI bad Td THd nad 4 Id x51u MAIN 4Ha ANH 20 ZIO 4 955 7 5556 5555 8444 5684 9 PHA PNY 29 88883 dddd dddd 4444 666605606 437 59 29 3222 PFE LEE NNNNANNS 5 Spe eto ZEZE 0000 1 dddddddddddddddddd 4 eq z95bzzr 0 idddddd 474 54 IX 44447
8. Selection 0200000 0 00 0 8 2 9 2 1 Hardware 40400 9 2 10 3 GETHING STARTED ee eee ee ne nee eee 11 3 1 Softune Workbench Development 11 3 2 Softune Workbench Debugging Introduction 13 4 DETAILS OF THE INCLUDED 15 4 1 Basic debugger enne nnn nnns 15 42 Advanced debugger 17 5 FLASH PROGRAMMING i isasucxass alcuna iu pan EHE OPER URDU 20 5 1 Flash up 20 6 EVALUATION BOARD HARDWARE 4 2 11 22 22 6 2 Overview of 23 6 3 Connectors for resources and 25 og pp o 29 7 1 Memory Mappings MBO TE 362 uibus deux Rmi M 29 7 1 1 MODE 000 Single Chip Monitor 29 7 1 2 001 External Bus User Mode 30 7 2
9. WA 91560 FUITE UG 910006 13 96 Fujitsu Microelectronics Europe GmbH STARTERKIT 91360 FUJITSU Chapter 7 Appendix 7 6 PALListing PALASM Design Description Declaration Segment TITLE STK360 1 205 PATTERN REVISION 1 3 AUTHOR M MIERSE COMPANY FUJITSU MIKROELEKTRONIK GMBH DATE 20 09 99 CHIP 5 360 PAL22V10 2 Revision History 20 11 98 V1 0 First Version 17 02 99 V1 1 Rem Req and ext UART Mapping changed 16 03 99 V1 2 UART Reset changed to high active 20 09 99 V1 3 UART CS changed for ext bus mode PIN Declarations PIN 1 RESETIN COMBINATORIAL INPUT PIN 2 DEFAULT COMBINATORIAL INPUT PIN 3 AUXIN COMBINATORIAL INPUT PIN 4 A19 COMBINATORIAL INPUT PIN 5 A20 COMBINATORIAL INPUT PIN 6 Cso COMBINATORIAL INPUT PIN 7 CS2 COMBINATORIAL INPUT PIN 8 MONRES COMBINATORIAL INPUT PIN 9 FLASHRES COMBINATORIAL INPUT 10 USERRES COMBINATORIAL INPUT PIN 11 DIR COMBINATORIAL INPUT PIN 13 UNUSED1 COMBINATORIAL 5 12 GND PIN 14 UARTRES COMBINATORIAL OUTPUT PIN 15 MASTRES COMBINATORIAL r OUTPUT PIN 16 CSRAM COMBINATORIAL OUTPUT PIN 17 CSUART COMBINATORIAL OUTPUT PIN 18 MODE COMBINATORIAL OUTPUT PIN 19 PG5 COMBINATORIAL OUTPUT PIN 20 PONFLAG REGISTERED INT FLAG PIN 21 LEDGRN COMBINATORIAL OUTPUT PIN 22 LEDYEL COMBINATORIAL OUTPUT PIN 23 LEDRED
10. UG 910006 13 38 Fujitsu Microelectronics Europe GmbH STARTERKIT MB91360 FUJITSU Chapter 7 Appendix SRAMS active in areas CSRAM A20 19 2050 08 0000 0F FFFF 50 20 19 CSO 18 0000 1F FFFF CS0 AZO 19 CS2 38 0000 3F FFFF CS2 UART Area 20 0000 27 FFFF 50 Monitor mode or CS2 in USER mode CSUART LEDRED 20 A19 CSO CSO in Mon Mode LEDGRN A20 A19 CS2 CS2 in User Mode 7 7 Development tools and accessories In Circuit Emulation Tools for MB91360 Series Emulation Main Unit MB2197 01 Emulation Board MB2197 120 Emulation Header Probe MB2197 127 Evaluation Device MB91FV360GCR Evaluation Board StarterkitMB91360 In Circuit Emulation Tools for MB91100 Series Emulation Main Unit MB2197 01 RAM Stack FR RAM STACK1 100P MO6 Evaluation Device MB91V10x A CR Evaluation Board StarterkitMB91 100 Accessories Serial Cable Extension type QFP208 Socket NQ PACK208SD socket IC Lid HQ PACK208SD ICE socket adapter YQ PACK208SD Test PCB for Starterkit QFP208 footprint to 2 54mm pin rows Power supply 9 12V DC 0 5A Fujitsu Microelectronics Europe GmbH 39 UG 910006 13 FUJITSU STARTERKIT MB91360 Chapter 7 Appendix 7 8 Related Documents Available manuals for 91360 series MB91360 Hardware Manual MB91F36X Datasheet General Specification FR Family C Compiler Manual FR Family Instr
11. 6 2 Overview of Jumpers Description Standard Setting gt Jumper Position SUPT Main Vcc Net for MCU Closed Vcc supplied Vcc Enabled 2 3 closed Up Vcc Disabled 2 3 closed Up 17 19 Closed A D active Table 1 Selection jumpers on MB91360 Starterkit Fujitsu Microelectronics Europe GmbH 23 UG 910006 13 FUJITSU STARTERKIT MB91360 Chapter 6 Evaluation Board Hardware Jumper Description Vcc Gnd array for testpurposes Serial communication pins UARTO 3 CANO 2 Puls generator outputs 0 7 Stepper motor PWM outputs 0 4 Databus 00 031 Table 2 Grouped jumpers on 91360 Starterkit UG 910006 13 24 Fujitsu Microelectronics Europe GmbH STARTERKIT MB91360 FUJITSU Chapter 6 Evaluation Board Hardware 6 3 Connectors for resources and IO signals MCU pins are grouped according to their logical functions See the hardware manual for details on the resource functions Men 16 T Analog Inputs ADC pO JUS Analog Outputs DAC BVEH ant Sound Generator ane ALARM Alarm Comparator BE RS CAL Sak OC JP20 External Interrupts ENT Input Capture Units INIT INS INMI Output Compare Units SUTI SOTA GUT SOA Sel 2 Interface 14 UARTs sync serial interfaces CANs SCPAL 15 JP23 OCPAS ocrmPmd SEPAT ___ Hvsso Stepper Motor Drivers meee
12. por perma LM L ___ LM m ___ L m NM L ON UM LIN LM _ p Lp pun 138 2 2 2 139 3 140 4 4 Output 4 2 Lm pes Hs por r lt t Fujitsu Microelectronics Europe GmbH 2f UG 910006 13 FUJITSU STARTERKIT MB91360 Chapter 6 Evaluation Board Hardware Jumper Pin No lO Port Resource Function Lo qe pampo pro e woo fst pwm e pmm fs 222217 qe pue four e mme pm er m ps Lo qe rvs L1 d Table 3 Overview of available resource functions and lO ports on jumpers UG 910006 13 28 Fujitsu Microelectronics Europe GmbH STARTERKIT MB91360 FUJITSU Chapter 7 Appendix 7 Appendix 7 1 Memory Mappings MB91F362 7 1 1 MODE 000 Single Chip Monitor Mode MB91F362 Memory Map Recommended Mappings na 0000 00 00 0400 00 07FF 00 1000 01 0000 1 FFFF 3 03 000 Stack Area 2k 03 FFFF 3 0800 Data Area 10k 3 04 0000 04
13. File Edit View Project Debug Setup Window Help 8 gt sss 2 1 E fii LEDdemol abs E Source 8489 k ko kok ko ko kck ko kk ko ko k 27 Main Routine zo qok kk ko kk kok ko kk ko kk kok ko ko ko k ko ko kk ko k ko ko ko kb b k F Pope readme tet 30 7018 mainf void o RH Startup asm 41 4 gc Include 32 0 Object 33 DELAY CONSTANT 60000 defines toggling speed 34 i 25 LCDinitdisp initialize the LC display 36 FE port 35 1 39 40 first pattern 77 b 91 360 E Figure 2 Softune Workbench Editor You may customize the editor by a right click on the editor window Whenever you make changes to your source files you have to re compile and link the related files to produce a valid loadmodule ABS file This is done using the MAKE function MAKE invokes the assembler C compiler and linker for FR whenever necessary only the changed files will be re compiled If you wish to re compile the entire project regardless of any changes you can use the BUILD function To check for syntax errors on a specific source file use the COMPILE ASSEMBLE function Fujitsu Microelectronics Europe GmbH 11 UG 910006 13 FUJITSU
14. board to avoid shorts or leakage currents After power on the initial Check JP34 default mode This monitor message is not shown jumper should be in the lower position on the LCD Monitor mode In the upper position the board will call the user program in Flash ROM directly and will not show the message Maybe the monitor kernel has been destroyed Try to re program the kernel as desribed in the flash programming section Check all jumper positions table 1 Adjust the LCD contrast using potentiometer RV1 The communication from Make sure your COM port number ooftune Workbench to the and the baudrate settings are correct Fujitsu Microelectronics Europe GmbH 41 UG 910006 13 FUJITSU STARTERKIT MB91360 Chapter 7 Appendix Problem evaluation board fails Communication errors The program stops at the label uninitialized interrupt Hardware units such as LEDs user buttons UARTO or CAN are not working CAN devices do not respond Table 5 Trouble Shooting Solution see debugger introduction Make sure no other programs using the same COM port on your PC Close all other applications e g Flash programmer utilities terminals etc Use the provided RS232 cable 1 1 extension type to connect from your PC to the Monitor COM connector f you are using a PC without a fast UART 16550 type you have to switch to a lower baudrate e g 38400 Baud and re p
15. gt 519 59 2 Sa 28 ee 1 591 a au 7 NITH ste aoa 5 2 bor 1nozl NIZL 51 xE IM Inos za ed ZT Td ZH Td Z NIS 453TUOM 2 Me TT zu E 25 Lj B 5usg iu amp 5r A B OND 5 1 arewa ans 529 T CTS odd toe 7 Ud 2200 520 gio UG 910006 13 85 Fujitsu Microelectronics Europe GmbH FUJITSU STARTERKIT MB91360 Chapter 7 Appendix 7 5 Silk Screen qu 12v 57 WIE x a P3 it m 1 2 T Ln Eos Y i Un E T 4773 I l IPIS 1 43 1 mali ver m3 MEN 31 239 WADE ED 1 1 HBBB HE 1 ae pa cree wig 227530 L 14 p Al rou R7 cr arri Pid Q T gt T T Y JP25 1 E C 274 H JP 14 m I USE RIO SIH 1 2 4 T CT I USERI ni T T E FUJITSU 02 C WA 31360 FLASH WONIT DF C Agsembly
16. on Port J gt External bus and all resources logically grouped on pin headers UG 910006 13 6 Fujitsu Microelectronics Europe GmbH STARTERKIT MB91360 FUJITSU Chapter 1 Introduction Area for extensions 2 54mm grid Standard Euro format 16x20 cm Built in monitor debugger in Flash ooftware includes Softune Workbench a set of tools e g flashloader and example projects 1 3 General Board Usage The MB91360 Starterkit can be used as stand alone evaluation board or as a target system for the MB2197 01 In Circuit Emulator To use the board as stand alone evaluation board a pre programmed flash device MB91F362 with monitor software must be present inside the QFP 208 socket The chip will use the built in monitor to handle communication with the PC and makes use of the 512k SRAM onboard as program memory for user s application This manual explains how to use the MB91360 Starterkit as a stand alone evaluation board To use the board as target for the In Circuit Emulator unscrew the socket and remove the MB91F362 from the socket Be careful not to bend any pins of the chip Using a vacuum chip handler is highly recommended Then mount the emulator probe cable on top of the QFP socket Use the provided screws and make sure the cable has the right orientation Follow the emulator set up manual on the CD ROM for any further steps Figure 1 Using the Starterkit as target board for the ICE Fujitsu M
17. COMBINATORIAL OUTPUT PIN 24 VCC Fujitsu Microelectronics Europe GmbH UG 910006 13 FUJITSU STARTERKIT MB91360 Chapter 7 Appendix EQUATIONS Power on Indicator Flip Flop PONFLAG CLKF RESETIN Power on Flag ist 0 at Pon otherwise 1 PONFLAG 1 Equations for Modes Reset States gt LEDRED is indicating the Monitor Reset state if LEDRED USERRES FLASHRES MONRES Mon reset button pressed DTR or uart reset DTR line low PONFLAG DEFAULT or Power on Default Mode Mon LEDGRN LEDYEL hold condition MELLE LEDGRN is indicating the User Reset state if LEDGRN USERRES FLASHRES MONRES User Reset button pressed A20 A19 52 or Remote User reset request LEDYEL JLEDRED hold condition poesie cc gt LEDYEL is indicating the Flash Reset state if LEDYEL USERRES FLASHRES MONRES Flash Reset button pressed PONFLAG DEFAULT or Power on Default Mode Flasnh LEDGRN LEDRED hold condition MODE LEDGRN Mode Pin is 1 if User Reset state otherwise 0 PG5 LEDYEL Flash Ind Pin is 1 if Flash Reset state otherwise 0 UARTRES RESETIN LEDRED UART reset only if Monitor Reset Reset Request Toggles the Masterreset input MAX811 if MASTRES MONRES USERRES FLASHRES RESETIN Buttons pressed LEDGRN A19 A20 RESETIN or Rem Request DTR RESETIN or DTR low Memory Mapping Equations
18. Setup Debug menu Base Make Build Directory Debug Debug at Project Available Setup Start Debugger monitor setup Information save setup Save Auto Load After Make Build Setup Name List henge cancel Always verify the settings before you start debugging a new project The current setup is indicated by the selected item in the Available Setup dropdown box The provided examples contain 3 setups simulate emulate and monitor Ensure monitor is selected Click on monitor in the Setup Name List and click Change A debug setup wizard will appear to guide you through the possible settings Make sure you are using the right COM port number and Baudrate The default settings for the monitor debugger are fixed to COM Port1 and 38400 Baud Change the settings if necessary Fujitsu Microelectronics Europe GmbH 13 UG 910006 13 STARTERKIT MB91360 FUJ ITSU Chapter 3 Getting Started If these settings are correct start the debugger using Debug Start Debug You should see a progress bar indicating the download process If nothing happens there will be an error message after some time Invalid communication status Double check the settings again as explained above Also make sure the evaluation board is powered on ready to use and the RS232 cable is connected prope
19. disabled during step execution Tht i STEP OVER Executes the program stepwise except call instructions which will be executed until return Interrupts are not disabled during a continuous CALL RETURN execution U STEP OUT Executes the program continuously to the parent function until RETURN Interrupts are enabled Note that debug information is required for this function EE 4 EXECUTE UNTIL CURSOR Automatically sets a breakpoint at the actual cursor position and executes continuously until this breakpoint which will be deleted afterwards Each valid code line in a debugger window automatically has a locator blue arrow and a breakpoint option circle Note that some C lines may not be displayed with locators and breakpoints because the compiler has created optimized assembler code Select mixed view in order to check the compiler output Instead of single steps you may also use the arrows to directly execute your program until a certain line of your source code Fujitsu Microelectronics Europe GmbH 15 UG 910006 13 FUJITSU STARTERKIT MB91360 Chapter 4 Details of the included Monitor Debugger 3 ABORT Forcibly terminates execution CAUTION This function can be used in single code line operations only example for k DELAY CONSTANT k gt 0 k To abort continous execution on the Starterkit you have to use an external interrupt All examples provided use the USERO button fo
20. for details Make sure you have installed the Flash Programmer from your CD ROM The package includes the executable Flashprg exe as well as some binary files Brloadxx bin and a user s guide Flashprg pdf E Fujitsu 1360 Flash Programmer V2 3 via CON Port i na of attempts 40 Frag Baudrate 38400 d Device Type MB31F382 Automatic BootROM_Functions Flash_Functions Options Fileto program Browse Connect oy Dump Flashloader otat Flashlaader Automatic Initialize Flashmade Blank Check Erase flash if necessary Program flash and verity Call application at address Figure 4 MB91360 Flash Programmer UG 910006 13 20 Fujitsu Microelectronics Europe GmbH STARTERKIT MB91360 FUJITSU Chapter 5 Flash Programming Follow these steps to use the MB91360 Flash Programmer 1 Be sure to have the starterkit in Monitor single chip mode Check the position of the jumpers and dip switches onboard according to table1 2 Connect the RS232 cable from any PC COM port to UARTO female UART connector on the left side of the Starterkit do NOT use the monitor COM connector 3 Specify a hex file in the file to program field use the browse button to select This file must be a converted linker output file from Softune in the Motorola Hex Format for programming your own applications be sure to have the load module converter starte
21. look like this ro CODE AREA 20x00080000 0x000EFFFF ro ROM AREA 0x000F4000 0x000FFFFF ra STACK AREA z0x0003D000 0x0003DFFF ra RAM AREA 0x0003E000 0x0003FFFF 5 STACK Stack STACK AREA sc DATA Data INITZRAM AREA sc CODE Code CODE AREA sc START CONST INIT ROM_AREA Also refer to the detailed memory maps in the appendix Always check the map file use the context menu in the project view and select open list file to see the used sections and addresses Fujitsu Microelectronics Europe GmbH 31 UG 910006 13 FUJITSU STARTERKIT MB91360 Chapter 7 Appendix 7 3 Starterkit limitations If creating new projects be sure not to use the following functions which are reserved for the MB91360 Starterkit Flash ROM area OF0000 0F3FFF reserved for Monitor kernel Port G upper ADC inputs used for LCD and mode input Security Vector used to call the kernel in Monitor mode External Interrupt O used for Abort function Chip selects 0 2 and 7 used for MCU and board hardware External memory space 200000 3FFFFF used for board hardware UG 910006 13 32 Fujitsu Microelectronics Europe GmbH 49 T 224 ATAT BEI FUJITSU STARTERKIT MB91360 Chapter 7 Appendix 7 4 Board Schematics TTT 2 ddy PUSMNDO sets 3744814215 SITTI OT 9
22. or Windows NT 1 COM port gt Power Requirements A power supply capable of supporting 9 12V DC at about 500 mA Note that the power connector must be at the shield and in the centre Power supplies are available from Fujitsu RS232 An extension 1 1 RS232 cable with 089 m f connectors Connect the power supply 9 12V DC input and the RS232 cable and switch on the Starterkit 9 i CE 5 H LED D10 should light up power indicator and LED D11 flashing reset indicator During the initialization phase the red monitor LED is on de After that a start message from the monitor 91360 STARTERKIT MONITOR VxLx will be displayed on the LCD and the green user LED will light up The board is now ready to use Fujitsu Microelectronics Europe GmbH 9 UG 910006 13 FUJITSU STARTERKIT MB91360 Chapter 2 Installation 2 2 Software Installation Insert the provided CD ROM browse to the installation page and select the Installation option for Softune Workbench Follow the instructions to unpack and install Softune Workbench for FR as well as some example projects and additional tools for the MB91360 Starterkit It is recommended to use the default installation path C Softune After the installation you will find all language tools the IDE and other system files within the directory Softune Bin Samples for the Starterkit can be found in the smpIFR d
23. window Updated registers appear in red Setup in context menu defines which Registers should be displayed WATCH WINDOW Displays the current variables to watch Double click on any variable in your code then specify watch in context menu to add to watch window All listed variables in a watch window can be displayed in any number format Use Edit to directly change the contents Example Open the Leddemo1 Project and execute until you see the first LED pattern Then double click on in the debugger window and select watch in the context menu The watch window will appear and PDRJ will be added to any existing variables Select PDRJ in the watch window and choose Edit Enter any value and confirm You will now see the 8 Bit value displayed on the LEDs directly as binary code This is because is the output latch of the LED port J MEMORY WINDOW Displays memory areas in various formats defined by Setup context menu Changing of address data is possible when debugger is not executing Note If you make changes to the ROM area 080000 0FFFFF it can affect the currently loaded program DISASSEMBLER Disassembles the contents of the code memory beginning from actual PC position and displays the result in a separate window Individual assembler lines can be changed using the inline assemble function Fujitsu Microelectronics Europe GmbH 17 UG 910006 13 FUJITSU STARTERKIT MB91
24. 2 8TMd Thad 8148 Md 5 td ONS 2x OTOH z brad T bid zzggJ H zz Md 1 SSH THT bM CHAT bli OSSAH 28450 SHO 58452 tudoo 29400 18452 Ler Jlr Fujitsu Microelectronics Europe GmbH Tm UG 910006 13 49 issus eeer vz FING BIER a iu2un2og 2 5 iTW428314835 OSETESM FUJITSU STARTERKIT MB91360 Chapter 7 Appendix HAWS HINOHIW3I3O08HIM nSlirna nz2 pm aT ort HSu14 I3S36H 386H HO LINOM 3222 XESS YXIINI EEE 028 EENES 2 eg 6TH 2TH a S3HISUH sr 59 PT T 711111 aus
25. 20 Figure 5 Memory Mapping Single Chip Mode Monitor Mode 29 Figure 6 Memory Mapping External Mode User Mode 30 7 11 Tables Table 1 Selection jumpers on 91360 23 Table 2 Grouped jumpers on 91360 Starterkit 24 Table 3 Overview of available resource functions and IO ports on jumpers 20 Table 4 Memory menn mnn nenne se res ne nes sias nans 31 PROUDIS SOO OE 42 END Fujitsu Microelectronics Europe GmbH 43 UG 910006 13
26. 360 Chapter 4 Details of the included Monitor Debugger DEBUG STACK Displays the current stack contents in terms of function calls Parameters if any are given in brackets DEBUG VECTOR Reads out and displays the actual interrupt vector table Use the jump function to display any code areas pointed to by an interrupt vector e g interrupt service routines used in your program DEBUG CALL This function can be used to call any routine defined in your code when the debugger is halted Example Enter L CDprinthex 0x1234 4 from any example project The number 1234 will appear on the LCD The function call will be terminated by showing the result here none You may restore the debugging context by Clear call if execution was stopped during the function call Note that this example assumes that L CDinitdisp was executed before DEBUG LOAD TARGET FILE Starts a new download of the current load module ABS file Usually this function will be executed automatically after starting the debugger defined in debug settings see Project Setup Debug However this function can be useful to re initialize the debugger for the current debug session VIEW SYMBOL This function displays all global symbols of the current project Information about the type char integer etc and the location address in RAM or register can be shown using detail VIEW LOCAL Similar to View Symbol but only local variables of the curr
27. Cet HII enr DT 202 ad1iN3 ITBXHM 254 Ee Od LHS paa 5 22 ans j ee qa woot LED 4 4 2185551 1 55A 55A eT xT aM 28 32 US WUHSS aru ETY 2TH STH SIM ste dnt to fant toa fant to fant toa ete LZT Epo 2 Tro oro BED 222 oro ZTE iu Er zT 89 oz TTE UE LEE OT 55 ee Bu Zed ge Su Bu 28 Ted gu LEE 2 Su zd Pe SU ET amp Td TE cer za CT ZSI EH 21 1 zu S3HISU 55 5 221405529711 zz 5T E m 299 eT RE znr EGE 39 ZED 9 o 32 WEHSS A MT ZINT azz NIX ST 415 255 21 ZIM oT 22 lansa STH 1 TES well Fine 02 __ __ DT 244 xda T109 zu 25A STH 224 ux pes th 819 MEERDE ou Le 218 EZH zu ZE ent sag Sry ory 23 92 201 1
28. Fujitsu Microelectronics Europe FMEMCU UG 910006 13 User Guide MB91360 SERIES EVALUATION BOARD MB91360 USER GUIDE _ oO FUJITSU FUJITSU STARTERKIT MB91360 Revision History Revision History Date 1999 1 0 MM First draft 2001 1 2 MM 9 July 2003 V1 3 new format Info about MB91F361 removed This document contains 43 pages UG 910006 13 2 Fujitsu Microelectronics Europe GmbH STARTERKIT MB91360 FUJITSU Warranty and Disclaimer Warranty and Disclaimer To the maximum extent permitted by applicable law Fujitsu Microelectronics Europe GmbH restricts its warranties and its liability for STARTERKIT MB91360 and all its deliverables eg software include or header files application examples target boards evaluation boards engineering samples of IC s etc its performance and any consequential damages on the use of the Product accordance with i the terms of the License Agreement and the Sale and Purchase Agreement under which agreements the Product has been delivered ii the technical descriptions and iii all accompanying written materials addition to the maximum extent permitted by applicable law Fujitsu Microelectronics Europe GmbH disclaims all warranties and liabilities for the performance of the Product and any consequential damages in cases of unauthorised decompiling and or reverse engineering and or disassembling Note the STARTERKIT MB91360 and all it
29. STARTERKIT MB91360 Chapter 3 Getting Started These three functions are available on the button bar or from the main menu Project Compile Make Build Abort Click on MAKE or BUILD Messages from the individual language tools will be fed into the output window at the bottom of the main screen If the tool chain C compiler Assembler Linker was completed successfully the message No Error will appear If you get any errors during compilation an appropriate message will be generated Try this with a simple syntax error e g delete a semicolon from the end of a C line and click on MAKE again You will now see a message like this Now Making main c co softune sample leddemol src main c 43 E4062C syntax error near for To locate the position in the source file where the error has occurred double click on the message The editor will open the appropriate source file indicating the error highlighted in red depending on the customise settings of the editor Correct the error and re compile the project as explained above If more errors occurred you can go through the error list step by step using the menu Edit Top Previous Next Bottom Error or using the appropriate buttons which have the same functions To get on line help about a specific error select the error message and press F1 In many cases you can get some useful hints how to solve the problem Of cource you can al
30. Tool options for own 31 nk onmia E exte NEUE 32 7 4 Board rud eb dnas Cpu 33 To 4 EEUU 36 TO 5009 37 UG 910006 13 4 Fujitsu Microelectronics Europe GmbH STARTERKIT MB91360 FUJITSU Contents 7 7 Development tools and 39 7 8 Related 2 2 1 40 7 9 41 7 10 Figures 43 7 11 Tables 43 UG 910006 13 Fujitsu Microelectronics Europe GmbH 5 FUJITSU STARTERKIT MB91360 Chapter 1 Introduction 1 Introduction 1 1 Abstract The Fujitsu MB91360 evaluation board is a stand alone application board that makes it easy to evaluate and demonstrate almost all features of the MB91360 microcontroller series Along with the supplied Windows based development tools it can be used as a system for user program developments The board can be configured as a target for the MB91360 emulation system or as a stand alone evaluation unit When using the system in stand alone mode a monitor debugger is available to allow high level debugging using Softune Workbench All peripheral functions are available on external pin headers in order to design and t
31. d Softune Workbench to generate MHX files For kernel updates select MONxxx MHX file xxx is the Starterkit baudrate E g MON 115 MHX is the kernel for 115200 Baud opecify the COM port and the desired baud rate for programming 5 Click on Automatic Mode and press monitor reset on the Starterkit The programming sequence will be executed automatically CAUTION DO NOT INTERRUPT THE FLASH PROGRAMMING OR CUT OFF THE POWER DURING PROGRAMMING IT CAN DAMAGE THE FLASH ROM PERMANTENTLY 6 After a successful programming procedure hit monitor reset to re initialize the Starterkit and close the program Do not forget to plug the RS232 cable back to Monitor if you want to use the monitor debugger again The Flash Programmer uses the internal Boot ROM functions instead of the monitor kernel for flash programming For more information and trouble shooting see the MB91360 Serial flash programmer user s guide Flashprg pdf which is included in the installation Fujitsu Microelectronics Europe GmbH 21 UG 910006 13 STARTERKIT MB91360 Chapter 6 Evaluation Board Hardware 6 Evaluation Board Hardware 6 1 Board Components Socket 208 for Microcontroller Monitor UART and On Off DC input MB91F361 2 RS232 connector a Eat ala cos
32. ent function are shown VIEW COMMAND From this window the debugger can be controlled using a command line input All GUI functions are available as individual commands Examples go examine PDRJ set break main Dump Halfword 100000 1000ff Shortcuts to complex commands can be defined alias and parameter strings can be substituted by variables Example candump Dump Halfword 100000 1000ff set of commands can be combined to Aliases and macros can be defined using the command window context menu UG 910006 13 18 Fujitsu Microelectronics Europe GmbH STARTERKIT MB91360 FUJITSU Chapter 4 Details of the included Monitor Debugger Example restart set register PC 1f4000 set break main go In order to document or save debugging details such as memory contents all outputs fed to the command console can be written to a file logging A whole program of commands incl flow control can be written to a PRC file and executed Procedure files are simple text files with the extension PRC and be created by the Softune Workbench editor or any other text editor To execute a procedure file use the command window menu or the file open menu during debugging Procedure files can be very helpful to automatically configure the debug environment perform automated tests e g when a new C module has to be tested or to enhance basic emulator functions such as breakpoin
33. est user applications cost and time effectively For some resource functions additional hardware is already present on the board e g CAN and UART transceivers LEDs Buttons etc The included Windows based Software Softune Workbench is an integrated front end for development and debugging It allows fast development of ANSI C based applications for the evaluationboard To get started quickly a number of example projects and templates are available Related documents such as MB91360 Hardware Manual are available and should always be used in addition to this manual see appendix 1 2 Key Features gt Footprint QFP208 0 5mm pitch socket for MB91F362 or emulation socket surrounded by headers for test pins etc gt AMHz 32kHz crystal DC Power supply circuit incl testpins for Vcc GND LED and switch gt 512kB external SRAM available for user code and data External 16550 UART supports transfer rates up to 115 2 kBaud gt 22 10 PAL for various control functions gt Resets Monitor Start monitor mode User exec user program from external RAM Flash zexec user program from flash ROM gt MAX232 DBY female connectors for monitor and internal UART gt CAN tranceiver and DB9 male for internal CANO External Interrupt and 1 connected to buttons for user interaction gt Various jumpers for individual configuration gt 2x16 char LCD on Port gt 8LEDs
34. icroelectronics Europe GmbH f UG 910006 13 FUJITSU STARTERKIT MB91360 Chapter 1 Introduction 1 4 Mode Selection The board has three different modes which are represented by the three reset buttons USER FLASH and MONITOR By default the board will startup in the MONITOR mode which automatically invokes the debugger kernel The board now can communicate with Softune Workbench This means any application can be downloaded and debugged with all provided features such as breakpoints watches single step etc see chapter Softune Debugging Features Once any code has been downloaded to SRAM the application can also be executed directly from a USER reset The application will run without any intervention from the host e g breakpoints This mode should mainly be used to test the application before programming the entire contents to flash If finally the application has been transferred to flash ROM execution can start from the flash ROM using the FLASH reset This is the stand alone mode for any user application As a last step the board can be configured to start directly in the FLASH mode after power on by jumper JP34 This allows creating of a real stand alone application UG 910006 13 8 Fujitsu Microelectronics Europe GmbH STARTERKIT MB91360 FUJITSU Chapter 2 Installation 2 Installation 2 1 Hardware Installation What you ll need gt Host IBM comp PC with Windows 9x
35. ies whether expressed or implied in particular but not limited to warranties of merchantability and fitness for a particular purpose for which the Product is not designated 4 To the maximum extent permitted by applicable law Fujitsu Microelectronics Europe GmbH 5 and its suppliers liability is restricted to intention and gross negligence NO LIABILITY FOR CONSEQUENTIAL DAMAGES To the maximum extent permitted by applicable law in no event shall Fujitsu Microelectronics Europe GmbH and its suppliers be liable for any damages whatsoever including but without limitation consequential and or indirect damages for personal injury assets of substantial value loss of profits interruption of business operation loss of information or any other monetary or pecuniary loss arising from the use of the Product Should one of the above stipulations be or become invalid and or unenforceable the remaining stipulations shall stay in full effect Fujitsu Microelectronics Europe GmbH 3 UG 910006 13 FUJITSU STARTERKIT MB91360 Contents Contents AAdeBgyee 2 WARRANTY AND DISCLAIMER 3 CONTENTS c 4 1 INTRODUC TION HH 6 APTI E 6 1 2 Cul m M 6 1 3 General Board 7 1 4
36. irectory tools directory contains additional software tools flashloader etc Execute FR Family Softune Workbench from your Start Menu If any errors occur during installation remove any previous versions of Softune Workbench from your PC and retry Make sure you have enough disk space available and you have a supported Windows OS installed For more information see the provided installation information and last minute information Refer to the getting started session next chapter for more details on how to use Softune Workbench for developing and debugging UG 910006 13 10 Fujitsu Microelectronics Europe GmbH STARTERKIT 91360 Chapter 3 Getting Started FUJITSU 3 Getting Started Make sure you have Softune Workbench for FR installed on your PC and the evaluation board is ready to use For details refer to the Hardware and Software Installation chapters This chapter uses the available examples to illustrate some features of Softune Workbench 3 1 Softune Workbench Development Introduction Start Softune Workbench Select File Open Project to load the first example LEDdemo1 Prj In the project tree on the left side you can open the source folder which contains the source files registered to this project A double click on one of the files will invoke the built in editor which supports syntax highlighting tags and various other functions ga Workbench LEDdemol1 main c
37. nterrupt Vectors 48k OF FFFF Figure 6 Memory Mapping External Mode User Mode UG 910006 13 zs Fujitsu Microelectronics Europe GmbH STARTERKIT MB91360 FUJITSU Chapter 7 Appendix 7 2 Tool options for own projects Valid load module files for MB91360 devices can only be achieved if the language tool configuration is appropriate If you use the provided samples or templates you do not have to worry about these settings The most convenient way to create own projects is to copy the provided Template Project from the sample directory and use it as blank sheet However if you intend to create projects from scratch without the template the following settings are important Target MCU Project Setup menu make sure MB91FV360 or MB91F362 is selected as the target MCU device Linker Settings Project Setup tool options Linker Disposition MB91360 devices use a fixed memory map for code stored in Flash ROM or data assigned to the internal RAM In addition certain Flash sectors have special meanings such as the boot sector application always starts from OF4000 or the kernel of the debugger stored from 0 0000 Therefore make sure the following memory map is applied Memory Type wea Seen FlashROM Kernel OF0000 0F3FFF 1 1 1 1 1 Reserved FlashROM Boot Sector OFA000 0FFFFF START CONST constants INIT VECTORS vectors Table 4 Memory Map Your linker settings should
38. r this purpose If you wish to use the USERO button for Abort make sure you have the ABORT option in STARTUP ASM enabled fdefine ABORT 1 USERO button is an external interrupt source which will be initialized at the highest priority In the interrupt service routine located in STARTUP ASM you will find a software trap INTE which will force the debugger to stop at this specific point You may use traps also to intentionally stop in your code for debugging purposes UG 910006 13 16 Fujitsu Microelectronics Europe GmbH STARTERKIT MB91360 FUJITSU Chapter 4 Details of the included Monitor Debugger 4 2 Advanced debugger features TOGGLE BREAKPOINT Sets or deletes breakpoint at the current source line or To set or delete a breakpoint click the circles at the beginning of a source line A indicates an active sgpakpoint Hit go to execute until this line A list breakpoints can be found under Debug Breakpoint menu 255 Software Breakpess using TRAP replacement are possible To set breakpoints at positions which are currently not visible e g because the source window of that module is not open you can also enter a symbolic label directly in the Breakpoint menu Example Enter main in the address field and confirm The new breakpoint will automatically be assigned to the address of the function REGISTER WINDOW Displays the CPU register
39. rly Also see the trouble shooting section in the appendix After starting the debugger additional windows will appear which contain locate arrows for each possible source line the original source code main c whileil GELSE opaeeerin ay mur LUDPprint LED Pattern 171 i 00024188 LDI 32 000 R4 Ho 000RaisE arsronn0F4a6g8 LDI 32 000F4468 R12 Ax 194 971C CALL R12 40 2 000 4126 CODD LDI 8 00 R0 hx 1000 4198 1490 ST 41 1 100 i s 1 1440 al R BRIU dai Figure 3 SWB Debugging window breakpoint indicators and the assembler code in mixed view The actual program position will be indicated by a yellow line You can choose mixed view from the context menu right click to display source and assembly code at the same time To easily locate the actual line use go to current UG 910006 13 14 Fujitsu Microelectronics Europe GmbH STARTERKIT MB91360 FUJITSU Chapter 4 Details of the included Monitor Debugger 4 Details of the included Monitor Debugger 4 1 Basic debugger features m X GO Executes the program continuously from the memory location pointed to by the current program counter PC until a termination factor occurs Th d STEP IN Executes the program stepwise according to the listing in the source window steps in C or ASM Note that Interrupts are
40. rogram the kernel according to this baudrate see flash programming section Before downloading a new project to the evaluation board re initialize using the Monitor Reset This will erase all valid interrupt definitions from previous programs executed on the starterkit Make sure you haven t enabled interrupts that have no interrupt handler see the INTVECT INC Note Since the Abort function uses the external interrupt O interrupts are usually enabled Make sure you have enabled these units on the evaluation board using the appropriate jumpers e g JP 13 LEDs See the provided examples and the hardware manual for information on how to control the peripherals Adjust the potentiometer RV2 slew rate according to the line For more information see the Softune Workbench on line help the provided manuals last minute information and additional or updated documentation on our web site UG 910006 13 42 Fujitsu Microelectronics Europe GmbH STARTERKIT MB91360 FUJITSU Chapter 7 Appendix 7 10 Figures Figure 1 Using the Starterkit as target board for the 7 Figure 2 Workbench EGIIOF Hd awe d need 11 Figure 3 SWB Debugging nennen nenne nnne nnns 14 Figure 4 MB91360 Flash Programmer
41. s deliverables are intended and must only be used in an evaluation laboratory environment 1 Fujitsu Microelectronics Europe GmbH warrants that the Product will perform substantially in accordance with the accompanying written materials for a period of 90 days form the date of receipt by the customer Concerning the hardware components of the Product Fujitsu Microelectronics Europe GmbH warrants that the Product will be free from defects in material and workmanship under use and service as specified in the accompanying written materials for a duration of 1 year from the date of receipt by the customer 2 Should a Product turn out to be defect Fujitsu Microelectronics Europe GmbH 5 entire liability and the customer s exclusive remedy shall be at Fujitsu Microelectronics Europe GmbH s sole discretion either return of the purchase price and the license fee or replacement of the Product or parts thereof if the Product is returned to Fujitsu Microelectronics Europe GmbH in original packing and without further defects resulting from the customer s use or the transport However this warranty is excluded if the defect has resulted from an accident not attributable to Fujitsu Microelectronics Europe GmbH or abuse or misapplication attributable to the customer or any other third party not relating to Fujitsu Microelectronics Europe GmbH 3 To the maximum extent permitted by applicable law Fujitsu Microelectronics Europe GmbH disclaims all other warrant
42. so use the HELP menu anytime during development or debugging UG 910006 13 12 Fujitsu Microelectronics Europe GmbH STARTERKIT 91360 Chapter 3 Getting Started FUJITSU 3 2 Softune Workbench Debugging Introduction Whenever you have successfully created a valid load module you may switch from the development mode to the debugging mode of Softune Workbench Basically there are 3 types of debugging systems supported 1 The software simulator This type of debugger is always present and does not require any special hardware extensions The simulator will cover the FR core features but no peripheral functions Therefore you can use the simulator to verify program flow check for dynamic errors look at the generated assembler code and so on 2 The monitor debugger This debugger type requires an evaluation board like the MB91360 Starterkit connected to one of the COM ports of your PC Therefore make sure you have the evaluation board connected and powered up as described before Explanations in this manual refer to the monitor debugger only 3 The emulator debugger The in circuit emulator ICE is a system which allows a connection to any target system using a probe cable The appropriate system for the MB91360 series is the MB2197 01 system More information about this system can be found on the Fujitsu Micros CD ROM or on our website Which debugger is used for the actual project can be configured in the Project
43. ts Using a procedure file breakpoints can be dynamically defined depending on program conditions See the Command Reference Manual on line help for detailed information about the available command and parameter syntax Fujitsu Microelectronics Europe GmbH 19 UG 910006 13 FUJITSU STARTERKIT MB91360 Chapter 5 Flash Programming 5 Flash Programming Whenever your application has been developed debugged and tested as explained in the last chapter it can be programmed to the internal flash ROM using the MB91360 Flash Programmer This tool is a general flash programming utility which allows programming the internal flash ROM without any restrictions given by the starterkit 5 1 Generic Flash Programmer The tool MB91360 Flash Programmer is a general flash programming tool which does not take care of the special features of this Starterkit Therefore it should be used to re program the monitor kernel On the CD ROM you will find some kernel files MHX format which are fixed for various baud rates Make sure you have the latest version available The tool can also be used to program any applications directly without the possibility to have any debugging functions later on In this case the evaluation board will act as a target system only CAUTION Take special care not to write anything to location OFFEF4 the security vector If you do you will not be able to re program the device ever again See the hardware manual
44. uction Manual FR Family Assembler Manual FR Family Simulator Manual FR Family Emulator Manual FR Family Linkage Kit Manual FR Family Softune Workbench Manual gt Note documents are available from the provided CD ROM 5 Microcontroller CD ROMs or from our web site UG 910006 13 40 Fujitsu Microelectronics Europe GmbH STARTERKIT MB91360 FUJITSU Chapter 7 Appendix 7 9 Trouble Shooting Problem Solution Evaluationboard does not Check voltage supply and jumpers initialize after power on he voltage on DC Power plug LED D10 Power indicator does should be in the range of 9 12V The not light up and the LC display plug should have on shield and on remains empty the center LED D10 should light up after switching on the board Use a multimeter to see whether 5 are present on the Vcc Gnd terminals TP2 and Check jumper positions according to table 1 Esp JP1 7 Remove all user extensions on the board to avoid shorts Evaluationboard stays in reset ED 011 Reset should flash If 011 LED D11 Reset indicator ligths lights up permantantly the voltage is too up permanently low below 4 25V Increase the voltage to solve the problem e reset should be left open This option allows to reset the board from a connected PC using the DTR line not used by Softune WB Remove all user extensions on the

Download Pdf Manuals

image

Related Search

Related Contents

Manual - Nintendo of Europe  EHEC Alger  Toro XTRA SMART Wireless Weather Sensor (53854) User's Manual  Thermos 4611118 Gas Grill User Manual  Philips Hard Disk/DVD Recorder 160GB (NL)  CANAL NET 26-02-04  Manual del usuario Termómetro infrarrojo sin contacto Modelo 403265  Manuel d`utilisation User Manual  MODELO: DP450G / DP450P / DP450R  Manuel d`installation - Giant Factories inc.  

Copyright © All rights reserved.
Failed to retrieve file