sk-fm3-100pmc-mb9bf516n (-jlink) - farnell element14 · the microcontroller on the...
TRANSCRIPT
V1.1
SK-FM3-100PMC-MB9BF516N (-JLINK)
All Rights Reserved.© Fujitsu Limited 2010
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
Warranty and Disclaimer
The use of the deliverables (e.g. software, application examples, target boards, evaluation boards, starter kits, schematics, engineering samples of IC’s etc.) is subject to the conditions of Fujitsu Semiconductor Europe GmbH (“FSEU”) as set out in (i) the terms of the License Agreement and/or the Sale and Purchase Agreement under which agreements the Product has been delivered, (ii) the technical descriptions and (iii) all accompanying written materials.Please note that the deliverables are intended for and must only be used for reference in an evaluation laboratory environment.The software deliverables are provided on an as-is basis without charge and are subject to alterations. It is the user’s obligation to fully test the software in its environment and to ensure proper functionality, qualification and compliance with component specifications.Regarding hardware deliverables, FSEU warrants that they 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.Should a hardware deliverable turn out to be defect, FSEU’s entire liability and the customer’s exclusive remedy shall be, at FSEU´ssole discretion, either return of the purchase price and the license fee, or replacement of the hardware deliverable or parts thereof, if
the deliverable is returned to FSEU 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 FSEU, or abuse or misapplication attributable to the customer or any other third party not relating to FSEU or to unauthorised decompiling and/or reverse engineering and/or disassembling.FSEU does not warrant that the deliverables do not infringe any third party intellectual property right (IPR). In the event that the deliverables infringe a third party IPR it is the sole responsibility of the customer to obtain necessary licenses to continue the usage of the deliverable.In the event the software deliverables include the use of open source components, the provisions of the governing open source license agreement shall apply with respect to such software deliverables. To the maximum extent permitted by applicable law FSEU disclaims all other warranties, whether express or implied, in particular, but not limited to, warranties of merchantability and fitness for a particular purpose for which the deliverables are not designated.To the maximum extent permitted by applicable law, FSEU’s liability is restricted to intention and gross negligence. FSEU is not liable for consequential damages.Should one of the above stipulations be or become invalid and/or unenforceable, the remaining stipulations shall stay in full effect.The contents of this document are subject to change without a prior notice, thus contact FSEU about the latest one.
This board and its deliverables must only be used for test applications in an evaluation laboratory environment.
All Rights Reserved.© Fujitsu Limited 2010
2
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
Overview
IntroductionAbout the SK-FM3-100PMC-MB9BF516NSK-FM3-100PMC-MB9BF516N contentTest itThe hardwareThe software
Try yourselfSoftware examplesProgram downloadIAR-Embedded WorkbenchKEIL µVision
Contacts
All Rights Reserved.© Fujitsu Limited 2010
3
Additional documentsSchematicData sheet MB9B51x SeriesPeripheral ManualTechnical Reference ManualFlash Programming Manual
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
About the SK-FM3-100PMC-MB9BF516N (-JLINK)The SK-FM3-100PMC-MB9BF516N is available in two versions:
The SK-FM3-100PMC-MB9BF516N includes a low-cost evaluation board based on the Fujitsu FM3 microcontroller MB9B510 SeriesSK-FM3-100PMC-MB9BF516N-JLINK includes a low-cost evaluation board based on the Fujitsu FM3 microcontroller MB9B510 Series and the JTAG adapter J-Link
The MB9B510 Series includes the following features:Up to 512 KByte Flash Memory32 KByte Work FlashUp to 64 KByte RAMUp to 2 CAN controller 2.0A/BUp to 8 LIN-USART-I²C interfacesUSB-Host/-Device interfaceTimers (ICUs, OCUs, PPGs, others)Three 12 Bit ADCsExternal interrupts
All Rights Reserved.© Fujitsu Limited 2010
4
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
About the SK-FM3-100PMC-MB9BF516N
Features of the SK-FM3-100PMC-MB9BF516N board:
Microcontroller MB9BF516N1x UART-Transceiver (SUB-D9 connector)1x USB to serial converter (Type-B connector)1x High-speed CAN-Transceiver (SUB-D9 connector)1x USB-MiniHost (Type-A connector)1x USB-Device (Type-B connector)JTAG- and TRACE-Interface each on a 20 pin-headerTSC-Interface to connect for example the Fujitsu SK-TSC-1127S-SB2x LED-Display (7-Segment)2x ‘User’-button1x ‘Reset’-button, ‘Reset’-LEDAll 100 pins routed to pin-headerOn-board 5V and 3V voltage regulators, ‘Power’-LEDPower supply via USB (UART’B’), USB-Device, JTAG or external with a 8V to 12V power connector
5All Rights Reserved.© Fujitsu Limited 2010
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
SK-FM3-100PMC-MB9BF516N content
The SK-FM3-100PMC-MB9BF516N containsSK-FM3-100PMC-MB9BF516N evaluation board with MB9BF516NUSB cableCD: Documentation, USB driver, Software examples, Programmer
All Rights Reserved.© Fujitsu Limited 2010
6
ESD-foam ESD-box SK-FM3-100PMC-MB9BF516N USB cable
A B
CD Additional information
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
Test it
The microcontroller on the SK-FM3-100PMC-MB9BF516N is already preprogrammed with a simple application.
Connect the SK-FM3-100PMC-MB9BF516N via USB (X5) with the PC Install the USB driver from the CDPress the ‚Reset‘- ButtonThe SK-FM3-100PMC-MB9BF516N will automatically start countingThe count direction can be changed by pressing the key buttons
7
INT0
INT1
All Rights Reserved.© Fujitsu Limited 2010
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
Test it
You finished successfully the first test
Now you will get more details about theSK-FM3-100PMC-MB9BF516N boardYou will learn more about
The on-board featuresHow to program the FlashHow to start with IAR-Embedded-Workbench and KEIL µVision
8All Rights Reserved.© Fujitsu Limited 2010
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
The Hardware
Main features
9All Rights Reserved.© Fujitsu Limited 2010
USBDevice
USBHost
CAN UART ‚A‘ Ext Power+8V...+12V
7-Segment Display
P03_9P03_E
P03_B
P03_AP03_C
P03_D
P03_8
P01_9P01_E
P01_B
P01_AP01_C
P01_D
P01_8
P01_F
SEG1: Port18-1F SEG2: Port38-3FP03_F
USB to UART ‚B‘
LED ‚Reset‘
Keybutton ‚Reset‘
Keybutton ‚INT1‘Port P05_1
Keybutton ‚INT0‘Port P05_0
LED ‚Power‘JTAG
J-Link
TRACE
TSC (Touch-Sensor-
Connector)
JTAG J-Link
SK-FM3-100PMC-MB9BF516N
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
The Hardware
The jumpers
10
JP4: UART RX selectR-0: UART0=UART‘A‘ / U-4: UART4=UART‘B‘ (USB)
R-4: UART4=UART‘A‘ / U-0: UART0=UART‘B‘ (USB)
JP5: UART TX selectR-0: UART0=UART‘A‘ / U-4: UART4=UART‘B‘ (USB)
R-4: UART4=UART‘A‘ / U-0: UART0=UART‘B‘ (USB)
JP6: MD0 selectionClose this jumper to controlthe MD0 level by the RTS signalof the USB interface
S1: Mode selectionPROG: Program-mode
RUN: Run-mode
JP10: 5V / 3.3V1-2: 5V supply is used
2-3: 3.3V supply is used
JP1: DTR-Reset1-2: DTR-Signal of the UART connector
is connected to the MCU reset-pin.
2-3: DTR-Signal of the USB connector is connected to the MCU reset-pin.
Some terminal-programs, e.g. Fujitsu‘s Skwizard, allow to reset the evaluation board by using the DTR-Signal.
JP9: MCU VccThis jumper can be usedto measure the currentconsumption of the MCU
J5: Power Supply1-2: USB (UART ‚B‘) supply 3-4: USB Device supply
5-6: JLINK supply 7-8: External supply
All Rights Reserved.© Fujitsu Limited 2010
SK-FM3-100PMC-MB9BF516N
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
The Hardware
The jumpers
11
JP67: USB Function HCONX
Open: D+ is not pulled upClosed: HCONX controls Pullup of D+
JP17: Port8 (USB use)1-2: USB in use2-3: USB not in use2-4: Use Port 8 as digital I/O
JP16: USB prog (for PROG-Mode S1)
Open: UART programming enabledClosed: USB programming enabled
JP24-JP26: Flow Control UART4JP24 JP25 JP26
1-2: Flow control disabled 1-2: Flow control enabled open: Flow control disabled2-3: Flow control enabled 2-3: Flow control disabled closed: Flow control enabled
JP2: Pullup resistor TSCClosed: Pull up SCL3
JP3: Pullup resistor TSCClosed: Pull up SDA3
JP22,JP23: Flow Conrol CTS4, DTS4JP22, JP23 1-2: Flow control on UART‘A‘JP22, JP23 2-3: Flow control on UART‘B‘JP22, JP23 Open: Flow control disabled
All Rights Reserved.© Fujitsu Limited 2010
SK-FM3-100PMC-MB9BF516N
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
The Hardware
JP4, JP5 : UART selectionUART0 and UART4 of the microcontroller can be used together with a typical RS232 SUB-D9 connector and a serial/USB converterThe jumpers JP4 and JP5 routes the channel to the connector
UART0 = USB-connector (X5), UART4 = Sub-D9 (X4) (default)• Setting of Jumper JP4 and JP5: U-0 / R-4
UART0 = Sub-D9 (X4), UART4 = USB-connector (X5)• Setting of Jumper JP4 and JP5: U-4 / R-0
12
USBRS232
(default)
USBRS232
All Rights Reserved.© Fujitsu Limited 2010
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
The Hardware
Extension headers X20-X23Standard 0.1” / 2.54mm grid for use with prototype boards
13All Rights Reserved.© Fujitsu Limited 2010
2x 15 pins1.4“ / 35.56mm
0.9“/22.86mm0.7“
0.3“ / 7.62mm
0.3“ / 7.62mm
0.4“10.16mm
0.5“ / 12.7mm
2x10 pins 17.78mm
0.2“5.08mm
SK-FM3-100PMC-MB9BF516N
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
The Hardware
The microcontroller pins
14
Pin Pin-namePin-Function on SK-FM-100PMC-MB9BF516N
Pin Pin-namePin-Function on SK-FM-100PMC-MB9BF516N
1 VCC MCUVCC 11 P32/ZIN0_0/TIOB2_1/SOT6_1/INT05_2/MADATA09_0
2 P50/INT00_0/AIN0_2/SIN3_1/RTO10_0/MADATA00_0
Key button ‘INT0’ 12 P33/INT04_0/TIOB3_1/SIN6_1/ADTG_6/
MADATA10_0
3 P51/INT01_0/BIN0_2/SOT3_1/RTO11_0/MADATA01_0
Key button ‘INT1’ 13 P34/FRCK0_0/TIOB4_1/TX0_1/MADAT
A11_0 CAN0 TX
4 P52/INT02_0/ZIN0_2/SCK3_1/RTO12_0/MADATA02_0
USB current limitation‘INT2’ 14 P35/IC03_0/TIOB5_1/RX0_1/INT08_1/M
ADATA12_0 CAN0 RX
5 P53/SIN6_0/TIOA1_2/INT07_2/RTO13_0/MADATA03_0 15 P36/IC02_0/SIN5_2/INT09_1/MADATA1
3_0
6 P54/SOT6_0/TIOB1_2/RTO14_0/MADATA04_0 16 P37/IC01_0/SOT5_2/INT10_1/MADATA1
4_0
7 P55/SCK6_0/ADTG_1/RTO15_0/MADATA05_0 17 P38/IC00_0/SCK5_2/INT11_1/MADATA1
5_0 SEG2-A
8 P56/INT08_2/DTTI1X_0/MADATA06_0 18 P39/DTTI0X_0/ADTG_2 SEG2-B
9 P30/AIN0_0/TIOB0_1/INT03_2/MADATA07_0 19 P3A/RTO00_0/TIOA0_1/RTCCO_2/SUB
OUT_2 SEG2-C
10 P31/BIN0_0/TIOB1_1/SCK6_1/INT04_2/MADATA08_0 20 P3B/RTO01_0/TIOA1_1 SEG2-D
All Rights Reserved.© Fujitsu Limited 2010
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
The Hardware
The microcontroller pins (cont‘d)
15
Pin Pin-namePin-Function on SK-FM-100PMC-MB9BF516N
Pin Pin-namePin-Function on SK-FM-100PMC-MB9BF516N
21 P3C/RTO02_0/TIOA2_1 SEG2-E 31 P44/TIOA4_0/RTO14_1/MAD00_0
22 P3D/RTO03_0/TIOA3_1 SEG2-F 32 P45/TIOA5_0/RTO15_1/MAD01_0
23 P3E/RTO04_0/TIOA4_1 SEG2-G 33 C ‘C’ capacitor
24 P3F/RTO05_0/TIOA5_1 SEG2-DP 34 VSS GND
25 VSS GND 35 VCC MCUVCC
26 VCC MCUVCC 36 P46/X0ASubclock(optional)
27 P40/TIOA0_0/RTO10_1/INT12_1 TINT TSC-Con-nector ‘INT12’ 37 P47/X1A
Subclock(optional)
28 P41/TIOA1_0/RTO11_1/INT13_1 GINT TSC-Con-nector ‘INT13’ 38 INITX Key button
‚Reset‘
29 P42/TIOA2_0/RTO12_1 39 P48/DTTI1X_1/INT14_1/SIN3_2/MAD02_0
30 P43/TIOA3_0/RTO13_1/ADTG_7 40 P49/TIOB0_0/IC10_1/AIN0_1/SOT3_2/MAD03_0
SDA3 TSC-Connector
All Rights Reserved.© Fujitsu Limited 2010
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
The Hardware
The microcontroller pins (cont‘d)
16
Pin Pin-namePin-Function on SK-FM-100PMC-MB9BF516N
Pin Pin-namePin-Function on SK-FM-100PMC-MB9BF516N
41 P4A/TIOB1_0/IC11_1/BIN0_1/SCK3_2/MAD04_0
SCL3 TSC-Connector 51 VCC MCUVCC
42 P4B/TIOB2_0/IC12_1/ZIN0_1/MAD05_0 52 P10/AN00
43 P4C/TIOB3_0/IC13_1/SCK7_1/AIN1_2/MAD06_0 53 P11/AN01/SIN1_1/INT02_1/RX1_2/FRC
K0_2/MAD09_0
44 P4D/TIOB4_0/FRCK1_1/SOT7_1/BIN1_2/MAD07_0 54 P12/AN02/SOT1_1/TX1_2/IC00_2/MAD1
0_0
45 P4E/TIOB5_0/INT06_2/SIN7_1/ZIN1_2/MAD08_0 55 P13/AN03/SCK1_1/RTCCO_1/SUBOUT
_1/IC01_2/MAD11_0
46 PE0/MD1 GND 56 P14/AN04/SIN0_1/INT03_1/IC02_2/MAD12_0
47 MD0 Mode-Switch S1 57 P15/AN05/SOT0_1/IC03_2/MAD13_0
48 PE2/X0 4 MHz Crystal 58 P16/AN06/SCK0_1/MAD14_0
49 PE3/X1 4 MHz Crystal 59 P17/AN07/SIN2_2/INT04_1/MAD15_0
50 VSS GND 60 AVCC MCUVCC
All Rights Reserved.© Fujitsu Limited 2010
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
The Hardware
The microcontroller pins (cont‘d)
17
Pin Pin-namePin-Function on SK-FM-100PMC -MB9BF516N
Pin Pin-namePin-Function on SK-FM-100PMC-MB9BF516N
61 AVRH MCUVCC 71 P23/SCK0_0/TIOA7_1
62 AVSS GND 72 P22/SOT0_0/TIOB7_1/ZIN1_1 UART0 (TXD)
63 P18/AN08/SOT2_2/MAD16_0 SEG1-A 73 P21/SIN0_0/INT06_1/BIN1_1 UART0 (RXD)
64 P19/AN09/SCK2_2/MAD17_0 SEG1-B 74 P20/INT05_0/CROUT_0/AIN1_1/MAD24_0
Reset TSC-Connector
65 P1A/AN10/SIN4_1/INT05_1/IC00_1/MAD18_0 SEG1-C 75 VSS GND
66 P1B/AN11/SOT4_1/IC01_1/MAD19_0 SEG1-D 76 VCC MCUVCC
67 P1C/AN12/SCK4_1/IC02_1/MAD20_0 SEG1-E 77 P00/TRSTX/MCSX7_0 JTAG TRSTX
68 P1D/AN13/CTS4_1/IC03_1/MAD21_0 SEG1-F 78 P01/TCK/SWCLK JTAG/TRACE TCK
69 P1E/AN14/RTS4_1/DTTI0X_1/MAD22_0 SEG1-G 79 P02/TDI/MCSX6_0 JTAG/TRACE TDI
70 P1F/AN15/ADTG_5/FRCK0_1/MAD23_0 SEG1-DP 80 P03/TMS/SWDIO JTAG/TRACE TMS
All Rights Reserved.© Fujitsu Limited 2010
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
The Hardware
The microcontroller pins (cont‘d)
18
Pin Pin-namePin-Function on SK-FM-100PMC-MB9BF516N
Pin Pin-namePin-Function on SK-FM-100PMC-MB9BF516N
81 P04/TDO/SWO JTAG/TRACE TDO 91 P0E/CTS4_0/TIOB3_2/IC13_0/IC23_0/R
TO25_1/MDQM1_0CTS4 Flow control
82 P05/TRACED0/TIOA5_2/SIN4_2/INT00_1/MCSX5_0
TRACE TRACED0 92 P0F/NMIX/CROUT_1/RTCCO_0/DTTI2X
_0/DTTI2X_1/SUBOUT_0
83 P06/TRACED1/TIOB5_2/SOT4_2/INT01_1/AIN2_1/MCSX4_0
TRACE TRACED1 93 P63/INT03_0/SIN5_1/RX0_2/MWEX_0 USB-Switch
Device/Host
84 P07/TRACED2/ADTG_0/SCK4_2/BIN2_1/MCLKOUT_0
TRACE TRACED2 94 P62/SCK5_0/ADTG_3/TX0_2/MOEX_0 Current limit-
ation enable
85 P08/TRACED3/TIOA0_2/CTS4_2/ZIN2_1/MCSX3_0
TRACE TRACED3 95 P61/SOT5_0/TIOB2_2/UHCONX USB UHCONX
86 P09/TRACECLK/TIOB0_2/RTS4_2/RTO20_1/MCSX2_0
TRACE TRACECLK 96 P60/SIN5_0/TIOA2_2/INT15_1/MRDY_0 Mode-Switch S1
87 P0A/SIN4_0/INT00_2/FRCK1_0/FRCK2_0/RTO21_1/MCSX1_0 UART4 (RXD) 97 USBVCC USB-power
supply
88 P0B/SOT4_0/TIOB6_1/IC10_0/IC20_0/RTO22_1/MCSX0_0 UART4 (TXD) 98 P80/UDM0 USB Data-
89 P0C/SCK4_0/TIOA6_1/IC11_0/IC21_0/RTO23_1/MALE_0 99 P81/UDP0 USB Data+
90 P0D/RTS4_0/TIOA3_2/IC12_0/IC22_0/RTO24_1/MDQM0_0
RTS4 Flow control 100 VSS GND
All Rights Reserved.© Fujitsu Limited 2010
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
The Software
The SK-FM3-100PMC-MB9BF516N CD includes the following software:
MCU Flash programming toolsFUJITSU FLASH MCU Programmer for FM3FLASH USB DIRECT Programmer
USB driver for on-board USB-to-RS232 converterThe terminal program SKwizardSoftware examples for the SK-FM3-100PMC-MB9BF516N
Please check our dedicated microcontroller website:
for updates of the Flash programmer tool, utilities and examplesfor data sheets, hardware manuals, application notes, etc.
19All Rights Reserved.© Fujitsu Limited 2010
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
Installation of the USB-driver
Connect the SK-FM3-100PMC-MB9BF516N via USB (X5) to your PC
Windows will ‘Found New Hardware: SK-FM3-100PMC’ and the Hardware Wizard should start automatically
• Note: The installation procedure may differ with different operating systems
Do not connect to Windows Update to search for software Select ‘Install from a list or specific location (Advanced)’Within next windows select ‘Search for the best driver’and browse on the CD to the folder ‘drive:\USB-Driver\Win2000_WinXP_Vista_Windows7_Fujitsu’
20All Rights Reserved.© Fujitsu Limited 2010
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
Installation of the USB-driver
‘Continue anyway’ although the Windows Logo test may not be passedWindows completes the installation by copying some files‘Finish’ will close the window
21All Rights Reserved.© Fujitsu Limited 2010
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
Installation of the USB-driver
Again Windows will ‘Found New Hardware: USB Serial Port’ and the Hardware Wizard should start automatically
• Note: The installation procedure may differ with different operating systems
Do not connect to Windows Update to search for software Select ‘Install from a list or specific location (Advanced)’Within next windows select ‘Search for the best driver’and browse on the CD to the folder ‘drive:\ USB-Driver\Win2000_WinXP_Vista_Windows7_Fujitsu’’
22All Rights Reserved.© Fujitsu Limited 2010
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
Installation of the USB-driver
‘Continue anyway’ although the Windows Logo test may not be passedWindows completes the installation by copying some files
23All Rights Reserved.© Fujitsu Limited 2010
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
Installation of the USB-driver
Start the Device Manager of the Windows Control PanelSTART -> Settings -> Control Panel Control Panel -> System -> Hardware -> Device Manager
Check ‘Ports’ for the assigned virtual COM-port numberFUJITSU Microcontroller board (e.g.: COM3)
Ready!
24All Rights Reserved.© Fujitsu Limited 2010
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
Tools and Software Examples
SKwizardFree of charge terminal programStart installation
Following examples are provided with SK-FM3-100PMC-MB9BF516N forIAR Embedded Workbench V6 and KEIL µVision4:
mb9bf51xn_template• ‚Empty‘ project as base for user applications
mb9bfxxx_adc_dvm• Digital Voltage Meter based on the A/D-converter
mb9bfxxx_can_uart_terminal• Simple CAN example (CAN0)
mb9bfxxx_ioport_counter• Counts from 0 to 99 on the 7-segment Display
Further examples on CD Examples and on our website
Note: Please copy the examples to your local drive!
25All Rights Reserved.© Fujitsu Limited 2010
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
Flash Programming
There are two options to program the flash:
1. UART Programming (X4, X5)• Check jumper JP16 is opened• Connect UART0 of the board to the USB-Port of the PC
– via USB (JP4,JP5: U-0, R-4)– via RS232 (JP4,JP5: U-4, R-0)
• Use the FUJITSU FLASH MCU Programmer
2. USB Programming (X3)• Check jumper JP16 is closed• Connect the board via USB-Device (X3) to the USB-Port of the PC• Use the FLASH USB DIRECT Programmer
All Rights Reserved.© Fujitsu Limited 2010
26
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
FUJITSU FLASH MCU Programmer for UART Programming
FUJITSU FLASH MCU ProgrammerFree of charge, no registration requiredWindows based programming tool for FM3 Fujitsu microcontrollerUses PC serial port COMx (incl. virtual COM port: USB-to-RS232)Start installation
All Rights Reserved.© Fujitsu Limited 2010
27
MB9BF516
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
Program Download
Start the FUJITSU FLASH MCU ProgrammerSelect the target microcontroller (MB9BF516[S/T])Select the crystal frequency (4 MHz)Choose the software example from the example ‘exe‘-folder (e.g. Examples\mb9bfxxx_ioport_counter-vxx10\example\IAR\output\release\exe\mb9bfxxx_ioport_counter.srec)
28All Rights Reserved.© Fujitsu Limited 2010
MB9BF516
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
Connect to the PC Connect UART0 with RS232 (X4) orwith the USB interface X5Select COM port (‚Set Environment‘)
Open JP16Set switch S1 to position ‚PROG‘Press ‚Reset‘Start ‚Full Operation‘
Program Download
29
(see JP4, JP5 jumper settings)
RS232 USB port
S1: Mode selectionPROG: Set switch to position ‚PROG‘ in order to select the program-mode
Keybutton ‚RESET‘
All Rights Reserved.© Fujitsu Limited 2010
MB9BF516
SK-FM3-100PMC-MB9BF516N
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
Close the FUJITSU FLASH MCU ProgrammerSet switch S1 to position ‚RUN‘Press ‚Reset‘
Program Download
30
S1: Mode selectionRUN: Set switch to position ‚RUN‘in order to select the run-mode
Keybutton ‚RESET‘
Close the FUJITSU FLASH MCU Programmer
All Rights Reserved.© Fujitsu Limited 2010
MB9BF516
SK-FM3-100PMC-MB9BF516N
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
FLASH USB DIRECT Programmerfor USB Direct Programming
All Rights Reserved.© Fujitsu Limited 2010
31
FLASH USB DIRECT ProgrammerWindows based programming tool for FM3 Fujitsu microcontrollerUses direct USB connection (via X3)Start installation
MB9BF516
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
Program Download
All Rights Reserved.© Fujitsu Limited 2010
32
Start the FLASH USB DIRECT ProgrammerSelect the target microcontroller (MB9BF516)Choose the software example from the example ‘exe‘-folder (e.g. Examples\mb9bfxxx_ioport_counter-v10\example\IAR\output\release\exe\
mb9bfxxx_ioport_counter.srec)
Select the COM port
MB9BF516
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
Program Download
Select the MCU power supply (J5)Close JP16Set switch S1 to position ‘PROG‘Connect USB port X3 with the PC Install the USB driver
See subfolder ‘driver‘ of installed programmerE.g.: C:\FUJITSU USB DIRECT Programmer
Press ‘Reset‘Start ‘Full Operation‘
33All Rights Reserved.© Fujitsu Limited 2010
Keybutton
‚RESET‘
USB port X3 J5
JP16
S1: Mode selectionPROG: Set switch to position ‚PROG‘ in order to select the program-mode
MB9BF516
SK-FM3-100PMC-MB9BF516N
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
Program Download
Close the FLASH USB DIRECT ProgrammerSet switch S1 to position ‚RUN‘Press ‚Reset‘
All Rights Reserved.© Fujitsu Limited 2010
34
Close the FLASH USB DIRECT Programmer
S1: Mode selectionRUN: Set switch to position ‚RUN‘in order to select the run-mode
Keybutton ‚RESET‘MB9BF516
SK-FM3-100PMC-MB9BF516N
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
Debugging via JTAG
The MB9BF516N microcontroller offers a JTAG-Interfacethat is supported by SK-FM3-100PMC-MB9BF516N.
Debug your program with a JTAG-Adapter e.g. Segger J-LinkConnect the J-Link to the JTAG-Interface routed to the 20-Pin-Header on X13 and to the USB-Port of your PCUse IAR-Embedded Workbench to debug your program If the JTAG-Adaper allows powering the target, then jumper J5 can be set as follows:
35All Rights Reserved.© Fujitsu Limited 2010
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
Debugging via TRACE
The MB9BF516N microcontroller offers an ETM (Embedded-Trace-Macrocell) that is supported by SK-FM3-100PMC-MB9BF516N
An optional JTAG-Adapter supporting trace features is required e.g. ULINKpro from KEILThe ETM is connected to the 20-Pin-Header X11 (TRACE)Use e.g. KEIL µVision to trace your program
All Rights Reserved.© Fujitsu Limited 2010
36
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
IAR-Embedded Workbench /KEIL µVision IDE and Debugger
InstallationGetting StartedOpen ProjectBuild ProjectDebug Project
All Rights Reserved.© Fujitsu Limited 2010
37
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
IAR Workbench Getting Started
Install EWARM from IAR-CD or download latest version from IAR Website
EWARM 30-day Evaluation Version• http://supp.iar.com/Download/SW/?item=EWARM-EVAL
EWARM 32K Kickstart Version• http://supp.iar.com/Download/SW/?item=EWARM-KS32
Install J-Link DebuggerConnect J-Link to USB Port and follow installation instructions
• Drivers:<Installation_Path>\IAR Systems\Embedded Workbench x.y\arm\drivers\Jlink\ x64 or x86
Start EWARM Workbench
All Rights Reserved.© Fujitsu Limited 2010
38
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
IAR Workbench Getting Started
All Rights Reserved.© Fujitsu Limited 2010
39
Choose File → Open → WorkspaceSelect e.g.\ Examples\mb9bfxxx_ioport_counter-vxx\example\IAR\ mb9bfxxx_ioport_counter.eww
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
IAR Workbench – Main Window
All Rights Reserved.© Fujitsu Limited 2010
40
IAR WorkbenchWorkspace on left sideof Workbench window
• Choose:View→Workspace,if hidden
Source files on rightside of Workbenchwindow as tabbedwindows
Project canalternatively beopened by:File→Open→Workspace→*.eww
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
IAR Workbench – Menu Bar
Menu Bar
All Rights Reserved.© Fujitsu Limited 2010
41
File Control (new, open, save, etc.)
Edit Control(cut, copy,
paste, undo, redo)
Configuration Control
(e.g. RAM or ROM debugging)
Navigation Control(Find, Bookmarks, File
Navigation, etc.)
Build Control(compile, make,
stop build)
Debug Control(Breakpoint, start Debug w/ and w/o
download)
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
IAR Workbench – Workspace
IAR Workspace Window
All Rights Reserved.© Fujitsu Limited 2010
42
Project Name
Sub Folder Modules
Main Modules
Module Includes
Project Description
Project Built Output
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
IAR Workbench – Making Project
Making the ProjectUse Make-Icon ( ), <F7> orMenu: Project→MakeCheck for no errors in Output windowbelow
Build errors are indicated by orIn Output window and Source view
43All Rights Reserved.© Fujitsu Limited 2010
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
IAR Workbench – Download to Target
Download to Target and Start DebuggingUse Icon, <Ctrl>-D, or Project→Download and DebugA new menu bar will occur on sucessful connection to target
44All Rights Reserved.© Fujitsu Limited 2010
Reset Target
Stop
Step Over
Step Into
Step Out
Next Statement
Run to Cursor
Run
End Debugging
Trace Control
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
IAR Workbench – Debug (1)
Source WindowThe Source windows do not change contents but get additional information
• Current line (PC):• Halted on Breakpoint:• Halted on Data break (example):
Disassembly WindowShows ‘pure‘ disassebly viewShows mixed mode view
45All Rights Reserved.© Fujitsu Limited 2010
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
IAR Workbench – Debug (2)
Watch WindowWatch
• Expressions/Variables have to be added by user and are updated by Halt/Breakpoint
Quick Watch• The Quick watch allows the user to calculate and recalculate
expressions even with variables
• The drop down menu memorizes the last typed contents
All Rights Reserved.© Fujitsu Limited 2010
46
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
IAR Workbench – Simulator
SimulatorMark Project File in WorkspaceChoose Project→OptionsChoose Simulator in Debugger SetupStart Simulator with usual Icon
47All Rights Reserved.© Fujitsu Limited 2010
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
KEIL µVision IDE and Debugger Getting Started
Install µVision from KEIL-CD or download latest version from KEIL Website
Evalualtion Version• https://www.keil.com/demo/eval/arm.htm• Registration required
Install ULINK-ME Specical installation is not needed, because ULINK-ME acts as a USB Human Interface Device (HID) and thus needs no extra USB driver
Install ULINK Pro (optional)ULINK Pro needs an own dedicated USB driver located in:<Installation Path>\KEIL\ARM\ULINK
Start µVision
All Rights Reserved.© Fujitsu Limited 2010
48
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
KEIL µVision – Getting Started
Choose Menu: Project→Open Project...Browse to: Examples\mb9bfxxx_ioport_counter-v10\example\ARM\Choose mb9bfxxx_ioport_counter.uvproj
All Rights Reserved.© Fujitsu Limited 2010
49
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
KEIL µVision – Main Window
KEIL µVisionProject window on left side ofIDE window
• Choose:View→Project Windowif hidden
Source files on right sideof IDE window as tabbedwindowsOutput window on bottomside of IDE window
All Rights Reserved.© Fujitsu Limited 2010
50
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
KEIL µVision – Menu Bars (1)
Menu Bar 1Can be moved in bar window area or set floating
All Rights Reserved.© Fujitsu Limited 2010
51
File Control(new, open, save, etc.)
Edit Control(cut, copy, paste, etc)
(indention, commenting)
Navigation Control(Bookmarks + search, etc.)
(Text search, search in files, etc.)
Debug Control(Start/Stop Debug Session,
set/remove/disable breakpoints, remove/disable
all breakpoints)
Project Window View
IDE Configuration
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
KEIL µVision – Menu Bars (2)
Menu Bar 2Can be moved in bar window area or set floating
All Rights Reserved.© Fujitsu Limited 2010
52
Build Control(Compile [Translate], Build, Rebuild, etc.)
Download to Target
Configuration Control
(e.g. RAM or ROM debugging)
Target Options
Manage Books, File Extensions,
Environment
Manage Multi-
Project Workspace
MB9BF51x Release
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
KEIL µVision – Project Window
µVision Project Window
All Rights Reserved.© Fujitsu Limited 2010
53
Project Name
Startup Code Subfolder
Startup Code Source and HeaderFiles
Main Project Code Subfolder
Main Project Code Source and Header Files
Project Description Subfolder and Abstract File
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
KEIL µVision – Making Project
Making the ProjectUse Rebuild Icon( ) orProject→Rebuild all targetfilesCheck for no errors inOutput window below
Build errors are shown in Output window.• Can be double-clicked by showing the source line with a blue arrow
54All Rights Reserved.© Fujitsu Limited 2010
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
KEIL µVision – Debug (1)
Start DebuggingDownload to target first, when MCU Flash does not contain the current application openend and built in the IDE
• Use Download Icon ( ) or Menu: Flash→DownloadStart Debug Session
• Use Start/Stop Debug Icon ( ) or Menu: Debug→Start/Stop Debug Session
Ending Debug Session• Use same way as for starting debug session
55All Rights Reserved.© Fujitsu Limited 2010
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
KEIL µVision – Debug (2)
Debugging Icon BarDuring a Debug Session there will be visible a new icon bar
All Rights Reserved.© Fujitsu Limited 2010
56
Reset Target
Start/Stop
Application
Step Control (Step in, out,
etc.)
Show Source/Code Line of current
PC
Show Windows (Command, Disassembly,
Symbols, Registers, Call Stack)
Show (multiple) Windows
(Watch, Memory, Serial, Analysis, Trace, System
Viewer)
Tool Box (can be
customized)
Debug Restore Views
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
KEIL µVision – Debug (3)
Source ViewThe Source windows do not change contents but get additional information
All Rights Reserved.© Fujitsu Limited 2010
57
Active Breakpoint
Disabled Breakpoint
Current Program Counter
Current Cursor Line of Source Code
Code Lines with compiled Instructions
(dark grey )
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
KEIL µVision – Debug (4)
Disassembly ViewMixed mode is selectable and deselectable
All Rights Reserved.© Fujitsu Limited 2010
58
Active Breakpoint
Disabled Breakpoint
Current Program Counter
Current Cursor Line of Code highlighted in
yellow background ( )
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
KEIL µVision – Debug (5)
Memory WindowUp to 4 Memory windows can be displayed in tabsMemory is updated during runtimeMemory window tabs are shared with Watch windows
Register ViewRegister view is a tab of the Project windowChanges are highlighted in dark blue textbackgroundRegister tree knots can be expanded
All Rights Reserved.© Fujitsu Limited 2010
59
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
KEIL µVision – Debug (6)
Variable WindowsWatch Windows
• Up to 2 Watch windows are sharing their tabs with e.g. Memory and Local views
• Updated during runtime• Any changes are highlighted in dark blue text backround color• Displayed values can be changed by user during break
Local View• The local view shares the tab with e.g. Memory and Watch windows• Any changes are highlighted in dark blue text backround color• Displayed values can be changed by user during break
All Rights Reserved.© Fujitsu Limited 2010
60
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
KEIL µVision – Trace (ULINK ME)
Trace via ITMSimple Trace views via Instrumentation Trace Macro is supported by µLINK ME
• Records• Exceptions• Counters
All Rights Reserved.© Fujitsu Limited 2010
61
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
KEIL µVision –Trace (ULINK Pro) (1)
Trace via ETMCheck settings in menu:Flash→Configure Flash Tools... Tab:Debug
All Rights Reserved.© Fujitsu Limited 2010
62
enables ETM pins
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
KEIL µVision –Trace (ULINK Pro) (2)
Instruction TraceReal Time Trace recordingOutput can be filtered by several ETM and ITM eventsTrace buffer is held in PC memory and transfered to µVision on break
All Rights Reserved.© Fujitsu Limited 2010
63
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
KEIL µVision – Simulator
SimulatorThe Core Simulator can be selected by the menu:Flash→Configure Flash Tools... and then choosing Use SimulatorLook & feel is like using ULINK debuggerControlable also with *.ini files
All Rights Reserved.© Fujitsu Limited 2010
64
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
Further Steps
In order to learn more about Fujitsu’s microcontrollers
Visit our microcontroller website• http://mcu.emea.fujitsu.com• http://mcu.emea.fujitsu.com/mcu_product/detail/MB9BF506NPMC.htm
See our application notes• http://mcu.emea.fujitsu.com/mcu_product/mcu_all_appnotes.htm
See our software examples• http://mcu.emea.fujitsu.com/mcu_product/mcu_all_software.htm
Contact your local distributor …
for individual supportto register for our monthly FM3 seminar to order the latest ‘Fujitsu Micros DVD’ containing all information regarding Fujitsu’s 8-bit, 16-bit, and 32-bit microcontrollers
65All Rights Reserved.© Fujitsu Limited 2010
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
Contacts - Distribution
European distributors
Anatec www.anatec.chEBV Elektronik www.ebv.comFarnell www.farnell.comGlyn www.glyn.de , www.glyn.chIneltek www.ineltek.comMelchioni Electronica www.melchioni.itPN Electronics www.pne.frRutronik Elektronische www.rutronik.comBauelemente
66All Rights Reserved.© Fujitsu Limited 2010
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
Fujitsu Semiconductor Europe
Germany (Headquarters)Pittlerstrasse 47, D-63225 LangenTel: (0 61 03) 69 00, Fax: (0 61 03) 69 01 22
France2-12 Chemin des Femmes, F-91300 MassyTel: (01) 64 47 97 07, Fax: (01) 64 47 97 01
ItalyPalazzo Pitagora – Milano 3 City, Via Ludovico il Moro 4B, I-20080 Basiglio, MilanoTel: (02) 90 45 02 1, Fax: (02) 90 75 00 87
United KingdomNetwork House, Norreys Drive, Maidenhead, Berkshire SL6 4FJTel: (01628) 50 46 00, Fax: (01628) 50 46 66
World Wide Webhttp://emea.fujitsu.com/microelectronicshttp://mcu.emea.fujitsu.comContact: [email protected]
67All Rights Reserved.© Fujitsu Limited 2010
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
EU-Konformitätserklärung /EU declaration of conformity
Hiermit erklären wir, Fujitsu Semiconductor Europe GmbH, Pittlerstrasse 47, 63225 Langen, Germanydass dieses Board aufgrund seiner Konzipierung und Bauart sowie in den von uns in Verkehr gebrachten Ausführung(en) den grundlegenden Anforderungen der EU-Richtlinie 2004/108/EC „Elektromagnetische Verträglichkeit“entspricht. Durch eine Veränderung des Boards (Hard- und/ oder Software) verliert diese Erklärung ihre Gültigkeit!
We, Fujitsu Semiconductor Europe GmbH, Pittlerstrasse 47, 63225 Langen, Germany hereby declare that the design, construction and description circulated by us of this boardcomplies with the appropriate basic safety and health requirements according to the EU Guideline 2004/108/EC entitled ’Electro-Magnetic Compatibility’. Any changes to the equipment (hardware and/ or software) will render this declaration invalid!
Note:All data and power supply lines connected to this starter kit should be kept as short as possible, with a maximum allowable length of 3m. Shielded cables should be used for data lines. As a rule of thumb, the cable length used when connecting external circuitry to the MCU pin header connectors for example should be less than 20cm. Longer cablesmay affect EMC performance and cause radio interference.
All Rights Reserved.© Fujitsu Limited 2010
68
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
Recycling
Gültig für EU-Länder:Gemäß der Europäischen WEEE-Richtlinie und deren Umsetzung in landesspezifische Gesetze nehmen wir dieses Gerät wieder zurück.Zur Entsorgung schicken Sie das Gerät bitte an die folgende Adresse:
Valid for European Union Countries:According to the European WEEE-Directive and its implementation into national laws we take this device back.For disposal please send the device to the following address:
Fujitsu Semiconductor Europe GmbHWarehouse/Disposal
Monzastraße 4aD-63225 Langen
This board is compliant with China RoHS
69All Rights Reserved.© Fujitsu Limited 2010
Fujitsu Semiconductor Europe - http://emea.fujitsu.com/microelectronics
CD Contents
SoftwareFUJITSU FLASH MCU ProgrammerFLASH USB DIRECT ProgrammerSKwizard
DocumentsSchematic ‘SK-FM3-100PMC (-MB9BF516N)’Data sheet MB9B51x SeriesPeripheral ManualTechnical Reference ManualFlash Programming Manual
Download the latest version from the following website:http://mcu.emea.fujitsu.com
70
Examplesmb9bf51xn_templateFurther examples on CD Examples and on our website
Note: Please copy the examples to your local drive!
All Rights Reserved.© Fujitsu Limited 2010