PCW16 FXe
PCW16 FXe
PCW16 FXe
1. Circuit diagrams utilizing Fujitsu products are included as a mean of illustrating typical semiconductor
applications. Complete information sufficient for construction proposes is not necessarily given.
2. The information contained in this document has been carefully checked and is believed to be reliable.
However, Fujitsu assumes no responsibility for inaccuracies.
3. The information contained in this document does not convey any license under the copy right, patent
right to trademarks claimed and owned by Fujitsu.
5. No part of this publication may be copied or reproduced in any form or by any means, or transferred to
any third party without prior written consent of Fujitsu.
6. The products described in this document are not intended for use in equipment requiring high
reliability, such as marine relays and medical life-support systems. For such applications, contact your
Fujitsu sales representative.
7. If the products and technologies described in this document are controlled by the Foreign Exchange
and Foreign Trade Control Act established in Japan, their export is subject to prior approval based on
the said act.
ii
Ver date page contents
1.00 2007/2/1 --- New
Suffix is Changed
1.01 2008/1/23 --- Add
MB96F326A/R/Y,MB96F338R/U/Y,MB96F356A/R/Y
P4 Serial data I/O pins for MB96F326A/R/Y is corrected.
1.02 2008/2/20
P12 Internal motorola S decoder specifiction is added.
Add
1.03 2008/3/26 ---
MB96F379R/Y
iii
Contents
1. configuration Diagram....................................................................................................................1
2. Compatible Microcontrollers ..........................................................................................................2
3. Example of Connection for On-board Reprogramming by Programmer ......................................3
4. Pins used for on-board Reprogramming ........................................................................................4
5. Timing Chart for Each Pin .............................................................................................................5
6. Installation and Execution of Software .........................................................................................6
7. Programmer Functions...................................................................................................................7
7.1 Downloading ..............................................................................................................................8
7.2 Erasing and Programming......................................................................................................10
7.3 Internal motorola S decoder specification ..............................................................................12
7.4 Special specification ................................................................................................................13
8. Status of Operation Check ...........................................................................................................14
9. Others............................................................................................................................................15
10. Cautions ......................................................................................................................................18
iv
FUJITSU FLASH MCU Programmer for F2MC-16FX Specifications
1. CONFIGURATION DIAGRAM
WINDOWS
RS-232C
Using RS-232C cable connected to the personal computer (Windows PC), flash memory data in the
microcontroller mounted in the user system can be reprogrammed. Note that the user system must have
an RS-232C driver for communication with the microcontroller UART.
1
FUJITSU FLASH MCU Programmer for F2MC-16FX Specifications
2. COMPATIBLE MICROCONTROLLERS
MB96F326A/R/Y, MB96F338R/U/Y, MB96F346A/R/Y,
MB96F347A/R/Y, MB96F348A/R/Y, MB96F348C/H/T,
MB96F356A/R/Y, MB96F379R/Y MB96F386R/Y,
MB96F387R/Y
2
FUJITSU FLASH MCU Programmer for F2MC-16FX Specifications
F2MC-16FX
1
0 at serial reprogramming MD2
0
1
1 at serial reprogramming MD1
0
1
0 at serial reprogramming MD0
0
RS-232C
Driver
RSTX
SIN *1
SOT *1
Communication via UART
RS-232C
*1: Check the settings of the serial data input/output pins used in each microcontroller.
The MD2, MD1, MD0 pins cannot be controlled by the PC and should be set in the user system.
When the RSTX pin is set from “Low” to “High” level after setting the MD2, MD1, MD0 pins, the
microcontroller enters the serial reprogramming mode, enabling serial reprogramming from the PC.
After the reprogramming, control is shifted to the normally-used mode as for MD2, MD1 and MD0 pins.
Then RSTX pin set from “Low” to “High” level executes user program.
Note: The port numbers of the SIN and SOT pins vary with the types of microcontrollers. See the
Tables in Chapter 4 for details.
When programming data to mass-produced products using the Yokogawa Digital Computer serial
programmer some time in the future, it is best to generate the patterns for serial clock pins on the
printed circuit board according to the connection example for serial programming described in the
Hardware Manual for each microcontroller.
3
FUJITSU FLASH MCU Programmer for F2MC-16FX Specifications
Type Serial Data Input Pin Serial Data Output Pin Supply Voltage
4
FUJITSU FLASH MCU Programmer for F2MC-16FX Specifications
Input data to each pin of the microcontroller with the following timing on the basis of the input of the RSTX
pin.
Minimum values of setup and hold times of each signal on rising edge of RSTX
5
FUJITSU FLASH MCU Programmer for F2MC-16FX Specifications
Starting the installer to operate as instructed will complete the installation. Note that the install might not be
performed when a directory in a deep nest is specified as the install directory.
After installation, click the Windows Start button => Program => FUJITSU FLASH MCU Programmer =>
FMC16FX to start the programmer software.
6
FUJITSU FLASH MCU Programmer for F2MC-16FX Specifications
7. PROGRAMMER FUNCTIONS
Erase, Blank Check, Program & Verify, Read & Compare, and Copy can be executed for flash memory
integrated into the microcontroller.
First, complete setting of the user system (microcontroller board) that data is programmed to (see
Chapter 3). When the programmer software has been started or when setting (setting of Taget
Microcontroller or Crystal Frequency) has been changed, it is necessary to perform downloading
(described later).
After downloading terminates normally, perform procedures such as Erase and Programming.
7
FUJITSU FLASH MCU Programmer for F2MC-16FX Specifications
7.1 Downloading
This section describes the operating procedure for downloading and the operating state of the program.
(a) Specify the type of microcontroller used in the user system in Target Microcontroller of the main dialog
box.
Note:To select the type of microcontroller, use the Tab key to move to Target Microcontroller, select
with the cursor keys and then press the Enter key.
(b) Specify the frequency of the crystal oscillator input to the microcontroller in Crystal Frequency of the
main dialog box.
The frequency of the crystal oscillator that can be specified for each type of microcontroller is limited as
follows.
Notice:This program will not operate normally if the microcontroller uses a crystal oscillator frequency
not listed in the above table.
(c) Select the COM port of the PC connected to the user system.
Click the [Set Environment] button in the main dialog box to open the setup window. When the [COM
PORT] tab in the setup window is clicked, the specifying window is opened. Select any of the following
COM ports.
COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8
8
FUJITSU FLASH MCU Programmer for F2MC-16FX Specifications
If the following dialog window is opened, Input a reset signal to the microcontroller to start the program
in the flash programming mode and then click the [OK] button
Downloading is performed to open the “Download” window. When downloading is completed normally,
the following dialog window opens.
When the [OK] button is clicked to close the dialog window, the [Erase], [Blank Check], [Program &
Verify], [Read & Compare] and [Copy] buttons are enabled.
Note: Downloading can also be performed using the Tab key to move to the [Download] button and
pressing the Enter key or pressing the ALT and D keys at the same time.
9
FUJITSU FLASH MCU Programmer for F2MC-16FX Specifications
This section explains how to specify Hex File and the processing and operation performed when the
[Erase], [Blank Check], [Program & Verify], [Read & Compare], [Copy] and [Full Operation
(D+E+B+P)] buttons are clicked.
Each execution can also be performed by pressing the key corresponding to the underlined character in the
button name while pressing the ALT key. (Hex File is a O character in Open button, click the ALT + O
keys).
Specify the Motorola-S or Intel-HEX format file to be programmed to flash memory in the microcontroller.
Although the specification method by drags and drops a direct file from Explorer etc. is recommended, it
can specify also by the file appointed window displayed by pushing the [Open] button.
Hex File must be specified to execute [Program & Verify], [Read & Compare] and [Full Operation
(D+E+B+P)]. Since it is decoded at the head of these processings each time, even if the specified
Motorola S or Intel-HEX format file changes specification of a file just before processing, it is OK.
All flash memory must be in the erase state (0xff) when programming a new program to it. By pushing
this button, a chip erase command is published to FLASH and elimination is performed.
(c) Blank Check: Check that all flash memory areas are blank
This button is clicked to check that all flash memory is in the erase state (0xff).
10
FUJITSU FLASH MCU Programmer for F2MC-16FX Specifications
This button is clicked to program the Motorola-S or Intel-HEX format file specified in Hex File to flash
memory in the microcontroller concurrently with verification. An error dialog is displayed, when writing is
performed for 512 bytes of every block and a CRC error is detected by the block.
This dialog If YES is pushed, the block of an error will be resent and it will continue writing. A push on
NO interrupts write-in processing.
(e) Read & Compare: Compare Hex File with data in flash memory in microcontroller
This button is clicked to compare data in the Motorola-S or Intel-HEX format file specified in Hex File
with data in flash memory in the microcontroller. Like the [Program & Verify] processing, The data of
FLASH is transmitted for 512 bytes of every block, a CRC error check is performed, and comparison
processing is performed.
This button is clicked to read data from flash memory integrated into the microcontroller and save it as
an Motorola-S format file. Like [Read & Compare] processing, FLASH memory reading is performed
for 512 bytes of every block, and a CRC error check is performed similarly. A preservation place folder
is specified, and if a file name is inputted and [Save] button is pushed, processing will begin.
In the case of a blank chip, processing is performed in order of [Download], [Blankcheck], and
[Program & Verify]. When it is not a blank chip, processing is performed in order of [Download],
[Blankcheck], [Erase], [Blankcheck], and [Program & Verify].
11
FUJITSU FLASH MCU Programmer for F2MC-16FX Specifications
Before programming, Motorola-S format Decoder of programmer changes Motorola S format data into
binary data, according to the following specification.
(a) The decoder does not error when overlap of addresses occurs.
The decoder does not error about overlap of address. If user writes a data on an address
which was already written another data before, former data is overwritten by new data.
13
FUJITSU FLASH MCU Programmer for F2MC-16FX Specifications
14
FUJITSU FLASH MCU Programmer for F2MC-16FX Specifications
9. OTHERS
(A) Setting of sound output
The setting of sound generated when an error occurs and processing is terminated normally can be
changed.
Select the [Sound] tab in the setup window that opens when the [Set Environment] button is clicked.
• Next, the event to take out sound is chosen in the Event column, and the sound in the event is set up
by specifying SundType and WaveFile under it in the state.
• Set the wave file to be output in the Wave file column only when Wave is selected. When the [Open]
button is clicked, the File Open window is opened. Select the Wave file to be output. The [Play]
button is used to play the set Wave file. The [Stop] button is used to stop the Wave file.
Select the [Tooltips] tab in the setup window that opens when the [Set Environment] button is
clicked.
When a checkmark is put in the tooltips checkbox to move the mouse cursor over the contents such as
buttons in the dialog window, simple help (the full path of a file for Hex File) is displayed.
15
FUJITSU FLASH MCU Programmer for F2MC-16FX Specifications
16
FUJITSU FLASH MCU Programmer for F2MC-16FX Specifications
*1: “MCU xxH” is displayed if the error cause is returned from the microcontroller at a download error.
“MCU xxH” means:
MCU 02H → SUM error at downloading
MCU 04H → Abnormal termination at downloading
*2: This is an additional message. It is displayed as necessary after other messages are displayed.
17
FUJITSU FLASH MCU Programmer for F2MC-16FX Specifications
10. CAUTIONS
No responsibility is taken about the problem which faced this software use.
The operation of this program is not assured on NEC PC98 series personal computers.
The PC programming software has the possibility of receiving the influence by the communications cable,
the outside environment, and the PC. Therefore, please evaluate it enough when you use the software.
Please use programming systems of programmer venders when you write two or more devices at the same
time.
When using this program, there are restrictions on frequencies that are input to the microcontroller as
original oscillations. For details, see (b) of Section 7.1.
18