APPLICATION NOTE
V850ES/Jx3-L Microcontrollers
R01AN0580EJ0200
Rev.2.00
May 20, 2011
V850ES/Jx3-L Microcontrollers
Flash Memory Programming (Programmer)
Introduction
This application note is intended for users who understand the functions of the V850ES/Jx3-L and who will
use this product to design application systems.
The purpose of this application note is to help users understand how to develop dedicated flash memory
programmers for rewriting the internal flash memory of the V850ES/Jx3-L.
The sample programs and circuit diagrams shown in this document are for reference only and are not
intended for use in actual design-ins.
Therefore, these sample programs must be used at the user’s own risk. Correct operation is not
guaranteed if these sample programs are used.
Target Devices
V850ES/JC3-L V850ES/JE3-L V850ES/JG3-L
μ
PD70F3797
μ
PD70F3805
μ
PD70F3737
μ
PD70F3798
μ
PD70F3806
μ
PD70F3738
μ
PD70F3799
μ
PD70F3807
μ
PD70F3792
μ
PD70F3800
μ
PD70F3808
μ
PD70F3793
μ
PD70F3801
μ
PD70F3840
μ
PD70F3794
μ
PD70F3802
μ
PD70F3795
μ
PD70F3803 V850ES/JF3-L
μ
PD70F3796
μ
PD70F3804
μ
PD70F3735
μ
PD70F3841
μ
PD70F3838
μ
PD70F3736
μ
PD70F3842
μ
PD70F3839
μ
PD70F3843
μ
PD70F3844
The mark <R> shows major revised points.
The revised points can be easily searched by copying an “<R>” in the PDF file and specifying it in the
“Find what:” field.
R01AN0580EJ0200 Rev.2.00 Page 1 of 271
May 20, 2011
V850ES/Jx3-L Microcontrollers V850ES/Jx3-L Microcontrollers
Flash Memory Programming (Programmer)
CONTENTS
CHAPTER 1 FLASH MEMORY PROGRAMMING........................................................................9
1.1 Overview...................................................................................................................................9
1.2 System Configuration ...........................................................................................................10
1.3 Flash Memory Configuration................................................................................................11
1.4 Command List and Status List.............................................................................................16
1.4.1 Command list........................................................................................................................... 16
1.4.2 Status list ................................................................................................................................. 17
1.5 Power Application and Setting Flash Memory Programming Mode ................................18
1.5.1 UART communication mode.................................................................................................... 19
1.5.2 3-wire serial I/O communication mode with handshake supported (CSI + HS)........................ 19
1.5.3 3-wire serial I/O communication mode (CSI) ........................................................................... 20
1.5.4 Mode setting flowchart............................................................................................................. 21
1.5.5 Sample program ...................................................................................................................... 22
1.6 Shutting Down Target Power Supply ..................................................................................24
1.7 Command Execution Flow at Flash Memory Rewriting ....................................................24
CHAPTER 2 COMMAND/DATA FRAME FORMAT....................................................................27
2.1 Command Frame Transmission Processing ......................................................................29
2.2 Data Frame Transmission Processing................................................................................29
2.3 Data Frame Reception Processing ......................................................................................29
CHAPTER 3 DESCRIPTION OF COMMAND PROCESSING..................................................30
3.1 Status Command ...................................................................................................................30
3.1.1 Description............................................................................................................................... 30
3.1.2 Command frame and status frame .......................................................................................... 30
3.2 Reset Command ....................................................................................................................31
3.2.1 Description............................................................................................................................... 31
3.2.2 Command frame and status frame .......................................................................................... 31
3.3 Baud Rate Set Command......................................................................................................32
3.3.1 Description............................................................................................................................... 32
3.3.2 Command frame and status frame .......................................................................................... 32
3.4 Oscillating Frequency Set Command..................................................................................33
3.4.1 Description............................................................................................................................... 33
3.4.2 Command frame and status frame .......................................................................................... 33
3.5 Chip Erase Command ...........................................................................................................35
3.5.1 Description............................................................................................................................... 35
3.5.2 Command frame and status frame .......................................................................................... 35
3.6 Block Erase Command .........................................................................................................36
3.6.1 Description............................................................................................................................... 36
3.6.2 Command frame and status frame .......................................................................................... 36
3.7 Programming Command.......................................................................................................37
3.7.1 Description............................................................................................................................... 37
3.7.2 Command frame and status frame .......................................................................................... 37
3.7.3 Data frame and status frame ................................................................................................... 37
3.7.4 Completion of transferring all data and status frame ............................................................... 38
R01AN0580EJ0200 Rev.2.00 Page 2 of 271
May 20, 2011