DF2398TE20 Renesas Electronics America, DF2398TE20 Datasheet - Page 668

IC H8S MCU FLASH 256K 120TQFP

DF2398TE20

Manufacturer Part Number
DF2398TE20
Description
IC H8S MCU FLASH 256K 120TQFP
Manufacturer
Renesas Electronics America
Series
H8® H8S/2300r
Datasheets

Specifications of DF2398TE20

Core Processor
H8S/2000
Core Size
16-Bit
Speed
20MHz
Connectivity
SCI, SmartCard
Peripherals
DMA, POR, PWM, WDT
Number Of I /o
87
Program Memory Size
256KB (256K x 8)
Program Memory Type
FLASH
Ram Size
8K x 8
Voltage - Supply (vcc/vdd)
4.5 V ~ 5.5 V
Data Converters
A/D 8x10b; D/A 2x8b
Oscillator Type
Internal
Operating Temperature
-20°C ~ 75°C
Package / Case
120-TQFP, 120-VQFP
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Eeprom Size
-
Other names
HD64F2398TE20
HD64F2398TE20

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DF2398TE20V
Manufacturer:
Renesas Electronics America
Quantity:
10 000
19.18
In the on-board programming modes, flash memory programming and erasing is performed by software, using the CPU.
There are four flash memory operating modes: program mode, erase mode, program-verify mode, and erase-verify mode.
Transitions to these modes can be made by setting the PSU, ESU, P, E, PV, and EV bits in FLMCR1.
The flash memory cannot be read while being programmed or erased. Therefore, the program that controls flash memory
programming/erasing (the programming control program) should be located and executed in on-chip RAM or external
memory. When the program is located in external memory, an instruction for programming the flash memory and the
following instruction should be located in on-chip RAM. The DMAC or DTC should not be activated before or after the
instruction for programming the flash memory is executed.
Notes: 1. Operation is not guaranteed if setting/resetting of the SWE, ESU, PSU, EV, PV, E, and P bits in FLMCR1 is
19.18.1 Program Mode
Follow the procedure shown in the program/program-verify flowchart in figure 19-48 to write data or programs to flash
memory. Performing program operations according to this flowchart will enable data or programs to be written to flash
memory without subjecting the device to voltage stress or sacrificing program data reliability. Programming should be
carried out 128 bytes at a time.
For the wait times (x, y, z1, z2, z3 , ß, , , , and
(FLMCR1) and the maximum number of programming operations (N), see section 22.3.6, Flash Memory Characteristics.
Following the elapse of (x) s or more after the SWE bit is set to 1 in flash memory control register 1 (FLMCR1), 128-
byte program data is stored in the program data area and reprogram data area, and the 128-byte data in the reprogram data
area is written consecutively to the write addresses. The lower 8 bits of the first address written to must be H'00 or H'80.
128 consecutive byte data transfers are performed. The program address and program data are latched in the flash
memory. A 128-byte data transfer must be performed even if writing fewer than 128 bytes; in this case, H'FF data must be
written to the extra addresses.
Next, the watchdog timer is set to prevent overprogramming in the event of program runaway, etc. Set a value greater than
(y + z2 +
by setting the PSU bit in FLMCR1, and after the elapse of (y) s or more, the operating mode is switched to program
mode by setting the P bit in FLMCR1. The time during which the P bit is set is the flash memory programming time. Set
the programming time according to the table in the programming flowchart in figure 19-48.
19.18.2 Program-Verify Mode
In program-verify mode, the data written in program mode is read to check whether it has been correctly written in the
flash memory.
After the elapse of a given programming time, the programming mode is exited (the P bit in FLMCR1 is cleared to 0, then
the PSU bit is cleared to 0 at least ( ) s later). Next, the watchdog timer is cleared after the elapse of ( ) s or more, and
the operating mode is switched to program-verify mode by setting the PV bit in FLMCR1. Before reading in program-
verify mode, a dummy write of H'FF data should be made to the addresses to be read. The dummy write should be
executed after the elapse of ( ) s or more. When the flash memory is read in this state (verify data is read in 16-bit units),
the data at the latched address is read. Wait at least ( ) s after the dummy write before performing this read operation.
Next, the originally written data is compared with the verify data, and reprogram data is computed (see figure 19-48) and
transferred to the reprogram data area. After 128 bytes of data have been verified, exit program-verify mode in FLMCR1
to 0, and wait again for at least ( ) s. If reprogramming is necessary, set program mode again, and repeat the
Rev.6.00 Oct.28.2004 page 638 of 1016
REJ09B0138-0600H
2. Perform programming in the erased state. Do not perform additional programming on previously programmed
Programming/Erasing Flash Memory
executed by a program in flash memory.
addresses.
+ ) s as the WDT overflow period. After this, preparation for program mode (program setup) is carried out
after bits are set or cleared in flash memory control register 1

Related parts for DF2398TE20