Upload
hoangnga
View
240
Download
0
Embed Size (px)
Citation preview
All Rights Reserved.© Fujitsu Limited 2003
DICE-Kit
All Rights Reserved.© Fujitsu Limited 2003
2
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
Overview
� Introduction� About the DICE-Kit� DICE-Kit content� Test it� The hardware� The software
� Try yourself� Software examples� Program download� New project
� Optional tools� Emulator, Programmer, etc.
� 16LX product overview� Contacts
� Additional documents� Schematic ‘DICE-Kit’� Data sheet MB90350series� Correction of data sheet� Hardware manual MB90350series� Correction of hardware manual� Watchdog MB3793-42� AppNote ‘Getting Started’
All Rights Reserved.© Fujitsu Limited 2003
3
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
About the DICE-Kit
� The DICE-Kit is a low-cost evaluation boardbased on the Fujitsu 16LX microcontroller MB90F352
� The MB90F352 microcontroller includes the following features:
� 128KB Flash Memory� 4KB RAM� 1x CAN-Interface 2.0B� 2x LIN-USART� 1x I²C� Timers (ICUs, OCUs, PPGs, others)� ADC� External interrupts� Others
All Rights Reserved.© Fujitsu Limited 2003
4
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
About the DICE-Kit
� The DICE-Kit evaluation board includes the following features:
� Microcontroller MB90F352� 1x UART-Transceiver (SUB-D9 connector)� 1x high-speed CAN-Transceiver (5-pin header)� 1x external watchdog MB3793-42� 2x 7 Segment LED-Display� 2x ‘User’-button� 1x ‘Reset’-button, ‘Reset’-LED� All 64 pins routed to pin-header� On-board 5V voltage regulator, ‘Power’-LED� Battery-supply (external power supply possible)
All Rights Reserved.© Fujitsu Limited 2003
5
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
DICE-Kit content
� The DICE-Kit contains� DICE-Kit evaluation board� 4x Battery Mignon AA� 1 page introductional flyer� Mini CD with documentation and software examples
Introductional flyer mini CD Battery holder
ESD-box 4x Battery Mignon AA DICE-Kit evaluation board
All Rights Reserved.© Fujitsu Limited 2003
6
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
Test it
� Put the batteries into the battery holder (close JP2!)
or� connect an optional external power supply
� Press the ‚Reset‘- Button
� The software starts automatically counting from 0 to 99 on the7-segment display. If ‚99‘ is not reached, then remove JP2 (watchdog).Afterwards the display is cleared and ready to play the dice
GND
+ 6V ... + 9V
All Rights Reserved.© Fujitsu Limited 2003
7
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
Test it
� Press the ‚User‘-Button ‚Int8‘ to start the left ‚Dice‘� Press the ‚User‘-Button ‚Int9‘ to start the right ‚Dice‘
INT8 INT9
All Rights Reserved.© Fujitsu Limited 2003
8
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
Test it
� You finished successfully the first test
� In the following you will get more details about the DICE-Kit� You will learn more about
� The on-board features� How to program the flash� How to start your own application
All Rights Reserved.© Fujitsu Limited 2003
9
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
The Hardware
� Main-features
UART
Use 1:1 cable forPC-connection
CAN1 GND2 CANL3 n.c.4 CANH5 +5V
Ext. Power+6V ... +9V
Keybutton ‚INT8‘Port P00
Keybutton ‚RESET‘
Keybutton ‚INT9‘Port P01
LED ‚Reset‘ LED ‚Power‘
7-Segment Display
P53P55
P51 P52P50
P56P54
P34P36
P31 P32P30
P37P35
P33SEG1: Port3 SEG2: Port5
All Rights Reserved.© Fujitsu Limited 2003
10
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
The Hardware
� The jumpersJP4: Battery powerClose the jumper to power themodule by the battery pack
JP2: Ext. watchdogClose the jumper to enable theexternal watchdog.If the external watchdog is enabled,then port P33 of the microcontrollerhas to retrigger the watchdogfrequently. Port P33 is connectedalso to the ‚dot‘ segment of thedisplay for optical indication.
JP1: Mode selectionRUN: Set jumper to position 1-2 inorder to select the run-mode
PGM: Set jumper to position 2-3 inorder to select the program-mode
JP3: DTR-ResetClose the jumper to connect the DTR-Signalto the microcontroller reset-pin.
Some terminal-programs, e.g. Fujitsu‘s Skwizard,allow to reset the evaluation board by using theDTR-Signal.
All Rights Reserved.© Fujitsu Limited 2003
11
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
The Hardware
� The microcontroller pins
P10/AD08/TIN132CAN-Transceiver (RX)P42/IN6/RX116
P07/AD07/INT1531SEG2-FP56/AN14/DA0015
P06/AD06/INT1430SEG2-GP55/AN1314
P05/AD05/INT1329SEG2-AP54/AN12/TOT313
P04/AD04/INT1228SEG2-BP53/AN11/TIN312
P03/AD03/INT1127SEG2-CP52/AN10/SCK211
P02/AD02/INT1026SEG2-DP51/AN9/SOT210
Keybutton ‚INT9‘P01/AD01/INT925SEG2-EP50/AN8/SIN29
Keybutton ‚INT8‘P00/AD00/INT824P67/AN7/PPGE(F)8
Jumper JP1MD023P66/AN6/PPGC(D)7
+ 5VMD122P65/AN5/PPGA(B)6
Jumper JP1MD221P64/AN4/PPG8(9)5
4MHz crystalP41/X1A20P63/AN3/PPG6(7)4
4MHz crystalP40/X0A19P62/AN2/PPG4(5)3
GNDVss18+ 5VAVRH2
CAN-Transceiver (TX)P43/IN7/TX117GNDAVss1
On DICE-Kit used byPin-namePinOn DICE-Kit used byPin-namePin
All Rights Reserved.© Fujitsu Limited 2003
12
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
The Hardware
� The microcontroller pins (cont‘d)
+ 5VAVcc64Vss48
P61/AN1/PPG2(3)63X047
P60/AN0/PPG0(1)62X146
SEG1-FP37/CLK/OUT761Keybutton ‚Reset‘RSTX45
SEG1-GP36/RDY/OUT660P24/A20/IN044
SEG1-AP35/HAKX/OUT559P23/A19/PPGF(E)43
SEG1-BP34/HRQ/OUT458P22/A18/PPGD(C)42
SEG1-DP (ext. watchdog trigger)P33/WRHX/TX257P21/A17/PPGB(A)41
SEG1-CP32/WRX/RX256P20/A16/PPG9(8)40
SEG1-DP31/RDX/IN555P17/AD15/SCK439
SEG1-EP30/ALE/IN454P16/AD14/SOT438
P45/SCL0/FRCK153P15/AD13/SIN437
P44/SDA0/FRCK052P14/AD12/SCK336
P25/A21/IN151UART (TXD)P13/AD11/SOT335
100n ‚C‘ CapacitorC50UART (RXD)P12/AD10/SIN334
+ VccVcc49P11/AD09/TOT133
On DICE-Kit used byPin-namePinOn DICE-Kit used byPin-namePin
All Rights Reserved.© Fujitsu Limited 2003
13
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
The Hardware
� Power Supervisor and watchdog MB3793-42� Generates reset-signal, if power goes below 4.2V
tReset [ms] = 1300 x CTP [µF] = 130ms (with CTP = C19 = 100nF)
� Watchdog feature can be enabled by jumper JP2• Use port P33 (SEG1-dp) for retriggering by rising edge
tRetrigger = 1500 x CTW [µF] + 3 x CTP [µF] = 330ms (with CTW = C20 = 220nF)
tWatchdogReset [ms] = 100 x CTP [µF] = 10ms
/Reset
PDR3_P33
All Rights Reserved.© Fujitsu Limited 2003
14
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
The Software
� The DICE-Kit CD includes the following software packages� Softune Workbench (development platform for Fujitsu microcontroller)� MCU flash programmer tool� Utilities (SKwizard terminal, CAN Bitmixer, etc.)� Software examples for the DICE-Kit
� Additionally you can order the „Fujitsu MICROS CD V3.5“� Includes documentation & software for all Fujitsu microcontrollers� Please contact your local distributor
� Please check our dedicated microcontroller web-site
� for updates of the flash programmer tool, utilities and examples� for datasheets, hardwaremanuals, application notes, etc
All Rights Reserved.© Fujitsu Limited 2003
15
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
The Software
� Softune Workbench� Free of charge (only registration is required)� Windows based development platform for all 16bit microcontrollers� Includes: Editor, C-Compiler, assembler, linker, core simulator� Supports optional hardware emulator
� Please fill in the registration-form and send it to• [email protected] or FAX: ++49-(0)6103-690-122• Receive your password by email
� Requires ‘administration’ or ‘power user’ rights on the PC
� Start installation• Enter password and choose destination folder (e.g. c:\Softune16)
All Rights Reserved.© Fujitsu Limited 2003
16
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
The Software
� MCU flash programmer� Free of charge, no registration required� Windows based programming tool for all 16bit Fujitsu microcontroller� Uses PC serial port COMx
� Start installation• Select custom installation and select “change…” in order to choose
the destination folder (e.g. c:\Softune\Utilities\16LXprogrammer)
All Rights Reserved.© Fujitsu Limited 2003
17
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
The Software
� Some more tools are available....
� SKwizard� Free of charge, no registration required� Windows based terminal program� Start installation
• choose destination folder (e.g. c:\Softune\Utilities\SKwizard)
� Bitmixer� Free of charge, no registration required� Windows based program to easy CAN-settings of Fujitsu microcontroller� Start installation
• choose destination folder (e.g. c:\Softune\Utilities\Bitmixer)
All Rights Reserved.© Fujitsu Limited 2003
18
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
Software Examples
� The following examples are provided with the DICE-Kit CD
� Template ‚Empty‘ project as base for the user-application� Dice2 Play independently two dice by key button ‘INT8’ and ‘INT9’� Counter Counts from 0 to 99� UART Send a string and echoes received characters via UART� CAN_UART Control the CAN by a terminal program� DICE-Kit Test software including 7-Seg, UART, CAN, Watchdog
(Detailed program description can be found in each project’s ‘readme.txt’)
� Start installation• choose destination folder
(e.g. C:\Softune\sample\Smpl16\DICE-Kit)
� Remove jumper JP2 (watchdog) for all examples!
All Rights Reserved.© Fujitsu Limited 2003
19
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
Program Download
� Start the Fujitsu MCU flash programmer� Select the target microcontroller (MB90F352)� Select the crystal frequency (4MHz)� Choose the software example from the example\‘ABS‘-folder
(e.g. C:\Softune\smpl16 \DICE-Kit\Dice2\abs\Dice2.mhx)
All Rights Reserved.© Fujitsu Limited 2003
20
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
Program Download
� Connect X4 to the PC‘s COM port� Set jumper JP1 to position ‚PGM‘� Remove JP2� Connect power supply� Press ‚Reset‘� Start ‚Full operation‘
COM port
Use 1:1 cable forPC-connection
JP1: Mode selectionPGM: Set jumper to position 2-3 inorder to select the program-mode
Keybutton ‚RESET‘
JP2: WatchdogDo not set!
All Rights Reserved.© Fujitsu Limited 2003
21
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
Program Download
� Close the MCU flash programmer� Power off the board� Set jumper JP1 to position ‚RUN‘� Power on the board� Press ‚Reset‘ COM port
Use 1:1 cable forPC-connection
JP1: Mode selectionRUN: Set jumper to position 1-2 inorder to select the run-mode
Keybutton ‚RESET‘
Close the flash programmer
JP2: WatchdogDo not set!
All Rights Reserved.© Fujitsu Limited 2003
22
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
New Project
� In order to start a new user-project use the template project� This project includes the startup code, header files and vector table
� Copy the folder ‘Template’ within the example-folder� Rename ‘Copy of Template’ into ‘my_application’
All Rights Reserved.© Fujitsu Limited 2003
23
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
New Project
� Enter ‘my_application’-folder� Rename ‘template.prj‘ into ‘my_application.prj‘� Rename ‘template.wsp‘ into ‘my_application.wsp’
� Edit ’my_application.prj’� rename ‘template’ -> ‘my_application’
� Edit ‘my_application.wsp’� rename ‘template’ -> ‘my_application’
All Rights Reserved.© Fujitsu Limited 2003
24
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
New Project
� Start Softune Workbench and open your project
All Rights Reserved.© Fujitsu Limited 2003
25
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
New Project
� Write your application code� Start.asm : Startup code� Vector.c : Vector table� Main.c : Your application
All Rights Reserved.© Fujitsu Limited 2003
26
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
New Project
� Compile & build your project� Generates the MHX-file, which can be programmed to the flash
Compile Make Build
All Rights Reserved.© Fujitsu Limited 2003
27
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
New Project
� You have finished your first project
� Please see our application note“Getting started”for a more detailed introduction.
All Rights Reserved.© Fujitsu Limited 2003
28
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
Further Steps
� In order to learn more about Fujitsu’s microcontrollers
� See our application notes• http://www.fme.gsdc.de/macrofam/applica0.htm
� See our software examples• www.fme.gsdc.de/products/samples.htm
� Visit our monthly 16LX seminar• www.fme.gsdc.de/otherdoc/events.htm
� Contact your local distributor …
� for individually support� to order the latest “Fujitsu Micros CD” containing all information
regarding Fujitsu’s 8bit, 16bit and 32bit microcontroller
All Rights Reserved.© Fujitsu Limited 2003
29
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
Optional Tools
� High-end evaluation board� Flash-Can-64P-350
� Hardware emulator� MB2147-01 + MB2147-20� Emulation chip MB90V340� Probe cable MB2147-540� Socket NQPack64sb + HQPack64sb140
� Programmer� Conitec Galep-4� Yokogawa AF220/AF221
� Accemic monitor debugger
� Operating systems
All Rights Reserved.© Fujitsu Limited 2003
30
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
Evaluation Board
� Flash-Can-64P-350� Evaluation board for MB90350series (64pin QFP)� Emulator target board� Access to all on-chip peripherals� 2x UART� 1x CAN� 2x LIN� 8x ‘User’-LEDs� 5x ‘User’-Buttons� Flash-Kit connector� Connector for LC-Display� Example projects
All Rights Reserved.© Fujitsu Limited 2003
31
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
Hardware Emulator
� In-Circuit emulator for F2MC-16LX� USB, LAN and RS232 communication interface� Connected to target system via standard Fujitsu probe cable� Up to 25MHz operating frequency� 8 code / 8 data event breakpoints� Sequential breakpoints (4 conditions / 3 levels)� Coverage function� Trace function
All Rights Reserved.© Fujitsu Limited 2003
32
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
Hardware Emulator
� Emulation chip MB90V340
� Probe cable MB2147-540
� NQPack64sb + HQPack64sb140
All Rights Reserved.© Fujitsu Limited 2003
33
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
Programmer
� GALEP IV� Supports parallel programming� Supports serial synchronous and asynchronous programming� Optional programming cable for serial synchronous programming� Allows programming in volume production� www.conitec.com
All Rights Reserved.© Fujitsu Limited 2003
34
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
Programmer
� Yokogawa AF220/AF221� Ultra-fast synchronous serial programming� Professional high-volume production� Optional interface to assembly line available� www.ydc.co.jp/micom/product/netimpressE.htm
All Rights Reserved.© Fujitsu Limited 2003
35
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
Accemic Monitor Debugger
� ROM-Monitor using RS232, 38400 Baud, integrated flash tool� Run options: ‘Debug’ and ‘Run and Break’� Two breakpoints� Single step mode� Internal MCU watchdog will automatically triggered while break� Independent (direct) call of functions� Browser windows
• Functions, Units• Interrupts, Registers• Global/Local Variables• Memory, Stack• Watch window• Processor status• Disassembler
� Contact: www.accemic.com
All Rights Reserved.© Fujitsu Limited 2003
36
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
Operating Systems
� ProOSEK®� Real-time operating system, OSEK/VDX� www.3soft.de
� EUROS� RTOS including TCP/IP, IrDA, IDE, CAN-Bus, CANopen, Profibus, etc.� www.euros-embedded.com
� RTA-OSEK� Realogy Real-Time Architect (RTA) ,OSEK, incl. timing analysis tool� www.livedevices.com
� embOS� Small memory footprint for single-chip applications incl. PC viewer� www.segger.com
� osCAN (OSEK/VDX)� osCAN (OSEK/VDX) and further networking software CAN, LIN, FlexRay, etc.� www.vector-informatik.de
All Rights Reserved.© Fujitsu Limited 2003
37
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
16LX Overview
MB90610A
64 pins 100 pins 120 pins
ROM-less
Standard
LCD
3PhasePWM
MB90550A
MB90580C
MB90520A
MB90570
MB90560/5
CAN MB90540G
MB90420/5G
MB90495G
MB90590MB90440G
MB90470
MB90460
MB90390
48 pins
MB90455 MB90435MB90480
USB
Highlights
Stepper Controller + CAN
LCD
MB90335 MB90330USBUSB
3 Phase PWM
Low Cost Low Cost3V ext. Bus
MB90595Small Package
Pin-
Com
patib
le
Underdevelopment
MB90800MB90810
MeeteringMB90820
80 Pin
MB90890Dual Operation Flash
MB90385
Pin-
Com
patib
le
Pin-
Com
patib
le
Pin-
Com
patib
le
MB90340MB90350
MB90860
MB90360
CAN + LIN +I2C
Dual Operation Flash
MB90365
Planned
All Rights Reserved.© Fujitsu Limited 2003
38
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
Contacts - Distribution
� European distributors
� ATeG-Anatec AG www.anatec.ch� ATeG-GD Technik Limited www.GD-Technik.com� ATeG-Ineltek GmbH www.ineltek.de� EBV Elektronik GmbH www.ebv.com� Glyn GmbH & Co. KG www.glyn.de� Glyn Ltd. www.glyn.com� Malpassi srl www.malpassi.it� Melchioni Electronica SpA www.melchioni.it� PN Electronics www.pne.fr� Sagitrón www.sagitron.es/english.htm
All Rights Reserved.© Fujitsu Limited 2003
39
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
Fujitsu Microelectronics Europe
� Germany (Headquarters)� Am Siebenstein 6-10, D-63303 Dreieich-Buchschlag� Tel: (0 61 03) 69 00, Fax: (0 61 03) 69 01 22
� France� 105 rue Jules Guesde, F-92300 Levallois Perret� Tel: (01) 55 21 00 40, Fax: (01) 55 21 00 41
� Italy� Palazzo Pitagora – Milano 3 City, Via Ludovico il Moro 4B,
I-20080 Basiglio, Milano� Tel: (02) 90 45 02 1, Fax: (02) 90 75 00 87
� United Kingdom� Network House, Norreys Drive, Maidenhead, Berkshire SL6 4FJ� Tel: (01628) 50 46 00, Fax: (01628) 50 46 66
� World-Wide-Web (Internet)� www.fme.gsdc.de/gsdc.htm� www.fme.fujitsu.com� Contact: [email protected]
All Rights Reserved.© Fujitsu Limited 2003
40
Fujitsu Microelectronics Europe - www.fme.fujitsu.com
Fujitsu Microelectronics Europe
� ‘DICE-Kit’-CD Link-List
� Software• Softune Workbench• MCU flash programmer• SKwizard• Bitmixer• Software examples
� Documents• Schematic ‘DICE-Kit’• Data sheet MB90350series• Correction of data sheet• Hardware manual MB90350series• Correction of hardware manual• Watchdog MB3793-42• AppNote ‘Getting Started’