See also "Common Items FAQ : Flash Programming"
Flash programming
Contents
FAQ-ID = 78flash- nnnn
78flash -0001
|
Can the FLSPM0 settings for the flash version be omitted?
|
| Q1 |
I want to create two types of HEX files, one for the flash version (uPD78F0983)
and one for the mask version (uPD780983), with the same program.
Are there any problems regarding the operation if I specify the processor as (0983)
and write the HEX file assembled omitting the FLSPM0 setting to the flash version?
|
| A1 |
There is no problem at all.
In the uPD78F0988, FLSPM0 is used only for self-programming of the flash memory.
If self-programming is not used, there is no need to change the value from the initial value after reset.
|
78flash -0002
|
Is onboard programming firmware literature available?
|
| Q1 |
Regarding on-board programming,
what kind of firmware is embedded in the microcontroller itself?
|
| A1 |
No documents are available.
There is no difference between on-board programming and standalone programming for the device.
The processing required for these write actions
(the processing required for actual programming,
such as setting of communication conditions, clear, write, verify, etc.)
is all performed by the on-chip firmware.
|
78flash -0003
|
What is the method to stop programming when a malfunction occurs?
|
| Q1 |
How can programming be stopped if flash memory programming is started due to a malfunction
(for example if a signal is erroneously input to the VPP pin)?
|
| A1 |
The method to exit the programming status simply involves applying a reset
with the VPP pin set to the low level to cancel programming.
This is the same as the regular operation start after reset.
|
78flash -0004
|
What about pull-up of UART pins during flash programming?
|
| Q1 |
Internal pull-up is set for a UART pin that is used for flash memory programming
during regular port operation.
Does this affect flash programming?
|
| A1 |
The internal pull-up resistor is valid only when it is set by software
(however, it is valid only in the input mode),
so it is not valid during flash programming.
|
78flash -0005
|
Is it a problem if the VPP rise time is slow?
|
| Q1 |
If the VPP rise time is slow (if the change from 5V to 10V is slow),
is there a possibility of malfunction?
|
| A1 |
Even though there are no specifications regarding the VPP rise time,
problems will occur if the rise time takes an excessively long time.
Mode settings using the VPP pulse must be completed within approximately 2ms.
If the rise time takes too long, the mode settings cannot be performed normally.
(Write cannot be performed normally.)
|
78flash -0006
|
Can a pull-down resistor be connected to the VPP pin?
|
| Q1 |
When using the flash version of the uPD78F9418A,
the VPP pin must be connected to VSS when it is not used;
but is it necessary to connect it directly to VSS?
Can the VPP pin be connected to VSS via a pull-down resistor (several kΩ to several tens of kΩ)?
|
| A1 |
No, VPP does not have to be connected directly to VSS.
It can be connected to VSS via a pull-down resistor of approximately 10kΩ.
However, in this case malfunction may occur due to system noise,
so the customer should evaluate this carefully.
|
78flash -0007
|
What is a suitable CPU clock for flash programming?
|
| Q1 |
What is a suitable write clock when writing to the uPD78F9418?
I would like to know the suitable MIN and MAX clock speeds.
The target devices are the uPD78F9418A and uPD78F0988.
|
| A1 |
It is recommended to make the CPU clock as fast as possible.
Basically, any clock speed is all right as long as it is within the operation enabled clock range.
However, the use of a faster clock allows faster programming.
Moreover, in the case of UART connection, the clock must be 5MHz or 4.91MHz for the uPD78F9418A.
|
78flash -0009
|
What tools are there for on-board programming of flash memory?
|
| Q1 |
For the uPD78F0034AY, which programmers support on-board programming using the serial I/F?
|
| A1 |
The PG-FP4 (made by NEC Electronics) and the FL-PR4 (made by Naito Densei Machida Mfg. Co., Ltd.)
programmers can also be used for on-board programming.
Regarding specific connections to the programmer,
the serial signal line and power supply (used to check if power is supplied to the device),
as well as the ground, reset signal, and VPP are connected,
as described in the device data sheets and other documents.
Regarding the CPU clock, the on-board clock can be used.
The reset signal and VPP signal connected to the programmer are signals
that must be used in the normal operating status.
So, you must design so that reset can also be applied from the programmer in addition to regular reset.
However, since there are time restrictions regarding switching from reset release
to the programming mode, design the system so that the time from when the programmer releases reset
until device reset is released is not too long.
Also, since VPP is normally connected to VSS,
implement a design with a switch that can be activated with a jumper
so as to enable connection to the programmer during programming,
and connection to VSS during normal operation.
Also, implement unused pin processing for the serial signal used during programming if it is unused,
and make it possible to switch it during write if it is used for normal operation.
|
78flash -0010
|
What is the VPP switching method during on-board programming?
|
| Q1 |
The VPP pin of the uPD78F0034A must be connected to VSS in the normal operation mode,
and the VPP voltage must be applied during write to flash memory.
Are there any methods for effective switching in the case of on-board programming?
|
| A1 |
Design so that, in the case of on-board programming,
the VPP/IC pin can be switched via a mechanical switch or jumper pin.
Connect the VPP/IC pin to ground (VSS) during normal use,
and connect it to VPP during on-board programming.
The use of an electric circuit for switching is not recommended.
|
78flash -0011
|
What is the flash rewrite count?
|
| Q1 |
How many times can the uPD78F0034's flash memory be rewritten?
|
| A1 |
This depends on the device version.
For the "P" and later specifications, a flash memory rewrite count of 20 is guaranteed.
This indicates that the data is guaranteed to be retained for 10 years from the first write.
Therefore, if rewrite is performed more than 20 times, the data is not guaranteed for 10 years.
If the user does not particularly care about data retention,
a greater number of rewrites than 20 can be performed.
In this case, however, data retention is not guaranteed.
|
78flash -0101
|
Conditions of VDD power supply current of flash memory programming characteristic [78K0/Kx2, 78K0/Lx2]
|
| Q1 |
What are conditions to measure the Typ. and Max. value of the VDD power supply current in the flash memory programming characteristics in the electrical specifications in the User's Manual?
|
| A1 |
These values, which are power supply current values during write operation using a flash memory programmer, are as follows (for the 78K0/Kx2, 78K0/Lx2).
| fXP = 10 MHz (typ.) | | ⇒ 4.5 mA (typ.) |
| fXP = 20 MHz (max.) | | ⇒ 11.0 mA (max.) |
On the other hand, in the case of self-programming, the value is 11.0 mA (max.) regardless of the operating frequency (the typ. value is not indicated). This is because, even when an external clock is used, the flash programming write clock is generated from the internal oscillation clock (8 MHz).
Further, the VDD power supply current of this flash memory programming characteristic is the value of the current that flows to the flash memory macro only. Therefore, when the CPU, A/D, WDT, LVI, (LCD), etc., are operated during flash memory programming, their operation current value also needs to be added.
|
 |
|
(2008/02)
|
 |
|
|