APPLICATION NOTE
R01AN0931EJ0300 Rev.3.00 Page 1 of 260
Jan. 11, 2012
V850ES/Jx3 Microcontrollers
32-bit Single-Chip Microcontrollers
Programmer
Introduction
This application note is intended for users who understand the functions of the V850ES/Jx3 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.
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/JG3:
μ
PD70F3739, 70F3740, 70F3741, 70F3742
V850ES/JJ3:
μ
PD70F3743, 70F3744, 70F3745, 70F3746
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.
R01AN0931EJ0300
Rev.3.00
Jan. 11, 2012
V850ES/Jx3 Microcontrollers 32-bit Single-Chip Microcontrollers
Programmer
R01AN0931EJ0300 Rev.3.00 Page 2 of 260
Jan. 11, 2012
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.................................................................................................. 13
1.4.1 Command List.................................................................................................................................13
1.4.2 Status list ........................................................................................................................................14
1.5 Power Application and Setting Flash Memory Programming Mode ..................................... 15
1.5.1 UART Communication Mode ..........................................................................................................16
1.5.2 3-Wire Serial I/O Communication Mode with Handshake Supported (CSI + HS)............................16
1.5.3 3-Wire Serial I/O Communication Mode (CSI) ................................................................................17
1.5.4 Mode Setting Flowchart ..................................................................................................................18
1.5.5 Sample program .............................................................................................................................19
1.6 Shutting Down Target Power Supply ....................................................................................... 21
1.7 Command Execution Flow at Flash Memory Rewriting ......................................................... 21
CHAPTER 2 COMMAND/DATA FRAME FORMAT.............................................................................. 24
2.1 Command Frame Transmission Processing ........................................................................... 26
2.2 Data Frame Transmission Processing ..................................................................................... 26
2.3 Data Frame Reception Processing ........................................................................................... 26
CHAPTER 3 DESCRIPTION OF COMMAND PROCESSING ............................................................. 27
3.1 Status Command ........................................................................................................................ 27
3.1.1 Description......................................................................................................................................27
3.1.2 Command frame and status frame..................................................................................................27
3.2 Reset Command ......................................................................................................................... 28
3.2.1 Description......................................................................................................................................28
3.2.2 Command frame and status frame..................................................................................................28
3.3 Baud Rate Set Command...........................................................................................................29
3.3.1 Description......................................................................................................................................29
3.3.2 Command frame and status frame..................................................................................................29
3.4 Oscillating Frequency Set Command....................................................................................... 30
3.4.1 Description......................................................................................................................................30
3.4.2 Command frame and status frame..................................................................................................30
3.5 Chip Erase Command ................................................................................................................ 32
3.5.1 Description......................................................................................................................................32
3.5.2 Command frame and status frame..................................................................................................32
3.6 Block Erase Command .............................................................................................................. 33
3.6.1 Description......................................................................................................................................33
3.6.2 Command frame and status frame..................................................................................................33
3.7 Programming Command............................................................................................................ 34
3.7.1 Description......................................................................................................................................34
3.7.2 Command frame and status frame..................................................................................................34
3.7.3 Data frame and status frame ..........................................................................................................34
3.7.4 Completion of transferring all data and status frame.......................................................................35
3.8 Verify Command ......................................................................................................................... 36
3.8.1 Description......................................................................................................................................36