UPD70F3768GF-GAT-AX Renesas Electronics America, UPD70F3768GF-GAT-AX Datasheet

no-image

UPD70F3768GF-GAT-AX

Manufacturer Part Number
UPD70F3768GF-GAT-AX
Description
MCU 32BIT V850ES/JX3-U 128-LQFP
Manufacturer
Renesas Electronics America
Series
V850ES/Jx3-Ur
Datasheet

Specifications of UPD70F3768GF-GAT-AX

Core Processor
RISC
Core Size
32-Bit
Speed
48MHz
Connectivity
CSI, EBI/EMI, I²C, UART/USART, USB
Peripherals
DMA, LVD, PWM, WDT
Number Of I /o
96
Program Memory Size
384KB (384K x 8)
Program Memory Type
FLASH
Ram Size
48K x 8
Voltage - Supply (vcc/vdd)
2.85 V ~ 3.6 V
Data Converters
A/D 12x10b; D/A 2x8b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
*
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
UPD70F3768GF-GAT-AX
Manufacturer:
Renesas Electronics America
Quantity:
10 000
32
V850ES/JG3-U, V850ES/JH3-U
RENESAS MCU
V850ES/Jx3-U Microcontrollers
www.renesas.com
V850ES/JG3-U
All information contained in these materials, including products and product specifications,
represents information on the product at the time of publication and is subject to change by
Renesas Electronics Corp. without notice. Please review the latest information published by
Renesas Electronics Corp. through various means, including the Renesas Electronics Corp.
website (http://www.renesas.com).
μPD70F3764
μPD70F3763
V850ES/JH3-U
μPD70F3768
μPD70F3769
User’s Manual: Hardware
Rev.3.00
Sep, 2010

Related parts for UPD70F3768GF-GAT-AX

UPD70F3768GF-GAT-AX Summary of contents

Page 1

V850ES/JG3-U, V850ES/JH3-U 32 RENESAS MCU V850ES/Jx3-U Microcontrollers V850ES/JG3-U μPD70F3763 μPD70F3764 All information contained in these materials, including products and product specifications, represents information on the product at the time of publication and is subject to change by Renesas Electronics Corp. ...

Page 2

All information included in this document is current as of the date this document is issued. Such information, however, is subject to change without any prior notice. Before purchasing or using any Renesas Electronics products listed herein, please confirm ...

Page 3

VOLTAGE APPLICATION WAVEFORM AT INPUT PIN Waveform distortion due to input noise or a reflected wave may cause malfunction. If the input of the CMOS device stays in the area between V malfunction. Take care to prevent chattering noise ...

Page 4

Readers This manual is intended for users who wish to understand the functions of the V850ES/JG3-U and V850ES/JH3-U and design application systems using the V850ES/JG3-U and V850ES/JH3-U. Purpose This manual is intended to give users an understanding of the hardware ...

Page 5

Conventions Data significance: Active low representation: Memory map address: Note: Caution: Remark: Numeric representation: Prefix indicating power of 2 (address space, memory capacity): Higher digits on the left and lower digits on the right xxx (overscore over pin or signal ...

Page 6

Related Documents The related documents indicated in this publication may include preliminary versions. However, preliminary versions are not marked as such. Documents related to V850ES/JG3-U and V850ES/JH3-U Documents related to development tools Document Name V850ES Architecture User’s Manual V850ES/JG3-U, V850ES/JH3-U ...

Page 7

Caution: This product uses SuperFlash EEPROM is a trademark of Renesas Electronics Corporation. IECUBE is a registered trademark of Renesas Electronics Corporation in Japan and Germany. MINICUBE is a registered trademark of Renesas Electronics Corporation in Japan and Germany or ...

Page 8

CHAPTER 1 INTRODUCTION................................................................................................................. 19 1.1 General ...................................................................................................................................... 19 1.2 Features .................................................................................................................................... 22 1.3 Application Fields .................................................................................................................... 24 1.4 Ordering Information ............................................................................................................... 24 1.5 Pin Configuration (Top View).................................................................................................. 25 1.6 Function Block Configuration................................................................................................. 28 1.6.1 Internal block diagram.....................................................................................................................28 1.6.2 Internal units ...

Page 9

Port DL..........................................................................................................................................159 4.4 Port Register Settings When Alternate Function Is Used.................................................. 161 4.5 Cautions .................................................................................................................................. 172 4.5.1 Cautions on setting port pins.........................................................................................................172 4.5.2 Cautions on bit manipulation instruction for port n register (Pn)....................................................175 4.5.3 Cautions on on-chip debug pins ...

Page 10

External trigger pulse output mode (TAAnMD2 to TAAnMD0 bits = 010) .....................................258 7.5.4 One-shot pulse output mode (TAAnMD2 to TAAnMD0 bits = 011) ...............................................270 7.5.5 PWM output mode (TAAnMD2 to TAAnMD0 bits = 100) ..............................................................277 7.5.6 Free-running timer mode ...

Page 11

Configuration.......................................................................................................................... 567 10.3 Registers ................................................................................................................................. 569 10.4 Operation ................................................................................................................................ 571 10.4.1 Interval timer mode .......................................................................................................................571 10.4.2 Cautions........................................................................................................................................575 CHAPTER 11 MOTOR CONTROL FUNCTION .................................................................................. 576 11.1 Functional Overview .............................................................................................................. 576 11.2 Configuration.......................................................................................................................... 577 11.3 Control Registers ................................................................................................................... 581 11.4 Operation ...

Page 12

Operation ................................................................................................................................ 694 15.5.1 Basic operation .............................................................................................................................694 15.5.2 Conversion operation timing .........................................................................................................695 15.5.3 Trigger mode.................................................................................................................................696 15.5.4 Operation mode ............................................................................................................................698 15.5.5 Power-fail compare mode .............................................................................................................702 15.6 Cautions .................................................................................................................................. 707 15.7 How to Read A/D Converter Characteristics Table ............................................................ 711 CHAPTER ...

Page 13

Single transfer mode (master mode, reception mode) ..................................................................779 18.6.3 Single transfer mode (master mode, transmission/reception mode) .............................................781 18.6.4 Single transfer mode (slave mode, transmission mode) ...............................................................783 18.6.5 Single transfer mode (slave mode, reception mode).....................................................................785 18.6.6 Single transfer mode (slave ...

Page 14

Master operation in single master system ................................................................................878 19.16.2 Master operation in multimaster system...................................................................................878 19.16.3 Slave operation ........................................................................................................................882 19.17 Timing of Data Communication ............................................................................................ 885 CHAPTER 20 USB FUNCTION CONTROLLER (USBF) ................................................................ 1043 20.1 Overview ............................................................................................................................... 1043 20.2 Configuration........................................................................................................................ 1044 ...

Page 15

PCI host bridge registers.............................................................................................................1242 21.7 OHCI Host Controller ........................................................................................................... 1255 21.7.1 OHCI host controller functions ....................................................................................................1255 21.7.2 OHCI host configuration registers ...............................................................................................1256 21.7.3 OHCI operational registers..........................................................................................................1269 21.7.4 Interruption from USB host controller..........................................................................................1298 CHAPTER 22 DMA FUNCTION (DMA CONTROLLER) ................................................................. ...

Page 16

Register ................................................................................................................................. 1305 24.3 Cautions ................................................................................................................................ 1305 CHAPTER 25 STANDBY FUNCTION ................................................................................................ 1306 25.1 Overview ............................................................................................................................... 1306 25.2 Registers ............................................................................................................................... 1308 25.3 HALT Mode ........................................................................................................................... 1311 25.3.1 Setting and operation status .......................................................................................................1311 25.3.2 Releasing HALT mode ................................................................................................................1311 25.4 IDLE1 ...

Page 17

Registers ............................................................................................................................... 1349 29.4 Operation .............................................................................................................................. 1350 29.5 Usage Method....................................................................................................................... 1351 CHAPTER 30 REGULATOR ............................................................................................................... 1353 30.1 Overview ............................................................................................................................... 1353 30.2 Operation .............................................................................................................................. 1354 CHAPTER 31 FLASH MEMORY ........................................................................................................ 1355 31.1 Features ................................................................................................................................ 1355 31.2 Memory Configuration......................................................................................................... 1356 31.3 ...

Page 18

Internal oscillator characteristics .................................................................................................1416 33.5 DC Characteristics ............................................................................................................... 1417 33.5.1 I/O level.......................................................................................................................................1417 33.5.2 Supply current.............................................................................................................................1419 33.6 Data Retention Characteristics........................................................................................... 1420 33.7 AC Characteristics ............................................................................................................... 1421 33.7.1 CLKOUT output timing................................................................................................................1422 33.7.2 Bus timing ...................................................................................................................................1423 33.8 Basic Operation.................................................................................................................... 1430 33.9 Flash ...

Page 19

V850ES/JG3-U, V850ES/JH3-U RENESAS MCU The V850ES/JG3-U and V850ES/JH3-U are products in the low-power series of Renesas Electronics’ V850 single-chip microcontrollers designed for real-time control applications. 1.1 General The V850ES/JG3-U and V850ES/JH3-U are 32-bit single-chip microcontrollers that use the V850ES CPU ...

Page 20

V850ES/JG3-U, V850ES/JH3-U Generic Name Part Number Internal Flash memory memory Note 1 RAM Memory Logical space 64 MB space External memory area 64 KB External bus interface Address data bus: 16 Multiplexed bus 32 bits × 32 registers General-purpose register ...

Page 21

V850ES/JG3-U, V850ES/JH3-U Generic Name Part Number Internal Flash memory memory Note 1 RAM Memory Logical space 64 MB space External memory area 13 MB External bus interface Address bus: 24 Address data bus: 16 Separate bus/Multiplexed bus 32 bits × ...

Page 22

V850ES/JG3-U, V850ES/JH3-U 1.2 Features Minimum instruction execution time: 20.8 ns (main clock (f General-purpose registers: CPU features: Memory space: • Internal memory: • External bus interface: Separate bus/multiplexed bus output selectable Interrupts and exceptions: V850ES/JG3-U V850ES/JH3-U Software exceptions: 32 sources ...

Page 23

V850ES/JG3-U, V850ES/JH3-U A/D converter: D/A converter: DMA controller: DCU (debug control unit): Clock generator: Internal oscillation clock: Power-save functions: Package: R01UH0043EJ0300 Rev.3.00 Sep 30, 2010 bus interface (I C) USB host interface USB function interface UARTC/CSIF: ...

Page 24

V850ES/JG3-U, V850ES/JH3-U 1.3 Application Fields Equipment requiring a USB interface such as home audio systems, printers, and scanners. 1.4 Ordering Information • V850ES/JG3-U Part Number μ 100-pin plastic LQFP (fine pitch) (14 × 14) PD70F3763GC-UEU-AX μ 100-pin plastic LQFP (fine ...

Page 25

V850ES/JG3-U, V850ES/JH3-U 1.5 Pin Configuration (Top View) • V850ES/JG3-U 100-pin plastic LQFP (fine pitch) (14 × 14) μ PD70F3763GC-UEU-AX 100 REF0 2 AV ...

Page 26

V850ES/JG3-U, V850ES/JH3-U • V850ES/JH3-U 128-pin plastic LQFP (fine pitch) (14 × 20) μ PD70F3768GF-GAT-AX AV REF0 AV SS P10/ANO0 P11/ANO1 AV REF1 P02/NMI P03/INTP02/ADTRG/UCLK P00/INTP00 P01/INTP01 PCM2/HLDAK PCM3/HLDRQ Note 1 FLMD0 V DD Note 2 REGC ...

Page 27

V850ES/JG3-U, V850ES/JH3-U Pin names A0 to A23: Address bus AD0 to AD15: Address/data bus A/D trigger input ADTRG: ANI0 to ANI11: Analog input ANO0, ANO1: Analog output ASCKC0: Asynchronous serial clock ASTB: Address strobe Analog reference voltage ...

Page 28

V850ES/JG3-U, V850ES/JH3-U 1.6 Function Block Configuration 1.6.1 Internal block diagram • V850ES/JG3-U NMI INTP02, INTP05 , INTP07 to INTP18 TIAB00 to TIAB03, TIAB10 to TIAB13, EVTAB1, TRGAB1, 16-bit timer/ TOAB1OFF counter AB: TOAB00 to TOAB03, TOAB10 to TOAB13 TOAB1T1 to ...

Page 29

V850ES/JG3-U, V850ES/JH3-U • V850ES/JH3-U NMI INTP00 to INTP18 TIAB00 to TIAB03, TIAB10 to TIAB13, EVTAB1, TRGAB1, 16-bit timer/ TOAB1OFF counter AB: TOAB00 to TOAB03, TOAB10 to TOAB13 TOAB1T1 to TOAB1T3, TOAB1B1 to TOAB1B3 TIAA00 to TIAA30, TIAA50, TIAA01 to TIAA31, ...

Page 30

V850ES/JG3-U, V850ES/JH3-U 1.6.2 Internal units (1) CPU The CPU uses five-stage pipeline control to enable single-clock execution of address calculations, arithmetic logic operations, data transfers, and almost all other instruction processing. Other dedicated on-chip hardware, such as a multiplier (16 ...

Page 31

V850ES/JG3-U, V850ES/JH3-U (9) Real-time counter (for watch) The real-time counter counts the reference time (one second) for watch counting based on the subclock (32.768 kHz) or main clock. This can simultaneously be used as the interval timer based on the ...

Page 32

V850ES/JG3-U, V850ES/JH3-U (18) DCU (debug control unit) An on-chip debug function that uses the JTAG (Joint Test Action Group) communication specifications is provided. Switching between the normal port function and on-chip debugging function is done with the control pin input ...

Page 33

V850ES/JG3-U, V850ES/JH3-U 2.1 List of Pin Functions The names and functions of the pins of the V850ES/JG3-U and V850ES/JH3-U are described below. There are four types of pin I/O buffer power supplies: AV power supplies and the pins is described ...

Page 34

V850ES/JG3-U, V850ES/JH3-U (1) Port pins Pin Name I/O P00 I/O Port 0 6-bit I/O port (V850ES/JH3-U) P01 2-bit I/O port (V850ES/JG3-U) P02 Input/output can be specified in 1-bit units. P03 P04 P05 Port 1 P10 I/O 2-bit I/O port P11 ...

Page 35

V850ES/JG3-U, V850ES/JH3-U Pin Name I/O P60 I/O Port 6 6-bit I/O port Input/output can be specified in 1-bit units. P61 P62 P63 P64 P65 P70 I/O Port 7 12-bit I/O port P71 Input/output can be specified in 1-bit units. P72 ...

Page 36

V850ES/JG3-U, V850ES/JH3-U Pin Name I/O P98 I/O Port 9 16-bit I/O port Input/output can be specified in 1-bit units. P99 P910 P911 P912 P913 P914 P915 Port CM PCM0 I/O 4-bit I/O port (V850ES/JH3-U) PCM1 1-bit I/O port (V850ES/JG3-U) PCM2 ...

Page 37

V850ES/JG3-U, V850ES/JH3-U Pin Name I/O PDL0 I/O Port DL 16-bit I/O port PDL1 Input/output can be specified in 1-bit units. PDL2 PDL3 PDL4 PDL5 PDL6 PDL7 PDL8 PDL9 PDL10 PDL11 PDL12 PDL13 PDL14 PDL15 Remark JG3-U: V850ES/JG3-U, JH3-U: V850ES/JH3-U R01UH0043EJ0300 ...

Page 38

V850ES/JG3-U, V850ES/JH3-U (2) Non-port Pins Pin Name I/O A0 Output Address bus for external memory (when using separate bus A10 A11 A12 A13 A14 A15 A16 A17 A18 A19 A20 A21 ...

Page 39

V850ES/JG3-U, V850ES/JH3-U Pin Name I/O ANI0 Input Analog voltage input for A/D converter ANI1 ANI2 ANI3 ANI4 ANI5 ANI6 ANI7 ANI8 ANI9 ANI10 ANI11 ANO0 Output Analog voltage output for D/A converter ANO1 ASCKC0 Input UARTC0 baud rate clock input ...

Page 40

V850ES/JG3-U, V850ES/JH3-U Pin Name I/O − Positive power supply for external devices EV DD (same potential as V EVTT0 Input External event count input of TMT0 EVTAB1 Input External event count input of TAB1 FLMD0 Input Flash memory programming mode ...

Page 41

V850ES/JG3-U, V850ES/JH3-U Pin Name I/O Key interrupt input (on-chip analog noise KR0 Input eliminator) KR1 KR2 KR3 KR4 KR5 KR6 KR7 NMI Input External interrupt input (non-maskable, analog noise elimination) OCI Input Overcurrent detection input PPON Output Power supply output ...

Page 42

V850ES/JG3-U, V850ES/JH3-U Pin Name I/O RXDC0 Input Serial receive data input (UARTC0 to UARTC4) RXDC1 RXDC2 RXDC3 RXDC4 SCKF0 I/O Serial clock I/O (CSIF0 to CSIF4) N-ch open-drain output selectable SCKF1 SCKF2 SCKF3 SCKF4 SCL00 I/O Serial clock I/O (I ...

Page 43

V850ES/JG3-U, V850ES/JH3-U Pin Name I/O TECR0 Input TMT0 encoder clear input TENC00 TMT0 encoder input TENC01 TIAA00 Input External event count input/capture trigger input/external trigger input (TAA0) TIAA01 Capture trigger input (TAA0) TIAA10 External event count input/capture trigger input/external trigger ...

Page 44

V850ES/JG3-U, V850ES/JH3-U Pin Name I/O TIT00 Input TMT0 external trigger input/capture trigger input TIT01 Input TMT0 capture trigger input TOAA00 Output Timer output (TAA0) N-ch open-drain output selectable TOAA01 Timer output (TAA1) TOAA10 N-ch open-drain output selectable TOAA11 TOAA1OFF Input ...

Page 45

V850ES/JG3-U, V850ES/JH3-U Pin Name I/O Pulse signal output for 6-phase PWM low-arm of TOAB1B1 Output TAB1 TOAB1B2 TOAB1B3 TOAB1T1 Output Pulse signal output for 6-phase PWM high-arm of TAB1 TOAB1T2 TOAB1T3 TOT00 Output TMT0 timer output TOT01 TRGAB1 Input External ...

Page 46

V850ES/JG3-U, V850ES/JH3-U Pin Name I/O WAIT Input External wait input WR0 Output Write strobe for external memory (lower 8 bits) WR1 Write strove for external memory (higher 8 bits) X1 Input Connection of resonator for main clock − X2 XT1 ...

Page 47

V850ES/JG3-U, V850ES/JH3-U 2.2 Pin States The operation states of pins in the various operation modes are described below. Table 2-2. Pin Operation States in Various Modes Pin Name When Power Is Turned Note 1 On DRST Pull down P10/ANO0, Undefined ...

Page 48

V850ES/JG3-U, V850ES/JH3-U 2.3 Pin I/O Circuit Types, I/O Buffer Power Supplies and Connection of Unused Pins Table 2-3. Pin I/O Circuit Types, I/O Buffer Power Supplies and Connection of Unused Pins (1/4) Pin Alternate Function Name P00 INTP00 P01 INTP01 ...

Page 49

V850ES/JG3-U, V850ES/JH3-U Table 2-3. Pin I/O Circuit Types, I/O Buffer Power Supplies and Connection of Unused Pins (2/4) Pin Alternate Function Name P60 TOAB1T1/TIAB11/TOAB11/WAIT TOAB1T1/TIAB11/TOAB11 P61 TOAB1B1/TIAB10/TOAB10/RD TOAB1B1/TIAB10/TOAB10 P62 TOAB1T2/TIAB12/TOAB12/ASTB TOAB1T2/TIAB12/TOAB12 P63 TOAB1B2/TRGAB1/CS0 TOAB1B2/TRGAB1 P64 TOAB1T3/TIAB13/TOAB13/CS2 TOAB1T3/TIAB13/TOAB13 P65 TOAB1B3/EVTAB1/CS3 TOAB1B3/EVTAB1 ...

Page 50

V850ES/JG3-U, V850ES/JH3-U Table 2-3. Pin I/O Circuit Types, I/O Buffer Power Supplies and Connection of Unused Pins (3/4) Pin Alternate Function Name P913 TOAB1OFF/INTP16 TOAB1OFF/INTP16/A13 P914 TIAA51/TOAA51/INTP17 TIAA51/TOAA51/INTP17/A14 P915 TIAA50/TOAA50/INTP18 TIAA50/TOAA50/INTP18/A15 PCM0 WAIT PCM1 CLKOUT PCM2 HLDAK PCM3 HLDRQ PCS0 ...

Page 51

V850ES/JG3-U, V850ES/JH3-U Table 2-3. Pin I/O Circuit Types, I/O Buffer Power Supplies and Connection of Unused Pins (4/4) Pin Alternate Function Name − UDMF − UDMH − UDPF − UDPH − U VDD − − − ...

Page 52

V850ES/JG3-U, V850ES/JH3-U Type 2 IN Schmitt-triggered input with hysteresis characteristics Type 5 Data Output disable Input enable Type 10-D Data Open drain Output disable Note Input enable Type 10-N Data Open drain Output disable Note Input enable OCDM0 bit Note ...

Page 53

V850ES/JG3-U, V850ES/JH3-U 2.4 Cautions When the power is turned on, the following pins may output an undefined level temporarily even during reset. • P10/ANO0 pin • P11/ANO1 pin • DDO pin (V850ES/JH3-U only) • P53/SIF2/TIAB00/KR3/TOAB00/RTP03/DDO pin (V850ES/JG3-U only) R01UH0043EJ0300 Rev.3.00 ...

Page 54

V850ES/JG3-U, V850ES/JH3-U The CPU of the V850ES/JG3-U and V850ES/JH3-U is based on RISC architecture and executes almost all instructions with one clock by using a 5-stage pipeline. 3.1 Features Minimum instruction execution time: 20.8 ns (operating with main clock (f ...

Page 55

V850ES/JG3-U, V850ES/JH3-U 3.2 CPU Register Set The registers of the V850ES/JG3-U and V850ES/JH3-U can be classified into two types: general-purpose program registers and dedicated system registers. All the registers are 32 bits wide. For details, refer to the V850ES Architecture ...

Page 56

V850ES/JG3-U, V850ES/JH3-U 3.2.1 Program register set The program registers include general-purpose registers and a program counter. (1) General-purpose registers (r0 to r31) Thirty-two general-purpose registers r31, are available. Any of these registers can be used to store a ...

Page 57

V850ES/JG3-U, V850ES/JH3-U 3.2.2 System register set The system registers control the status of the CPU and hold interrupt information. These registers can be read or written by using system register load/store instructions (LDSR and STSR), using the system register numbers ...

Page 58

V850ES/JG3-U, V850ES/JH3-U (1) Interrupt status saving registers (EIPC and EIPSW) EIPC and EIPSW are used to save the status when an interrupt occurs software exception or a maskable interrupt occurs, the contents of the program counter (PC) are ...

Page 59

V850ES/JG3-U, V850ES/JH3-U (2) NMI status saving registers (FEPC and FEPSW) FEPC and FEPSW are used to save the status when a non-maskable interrupt (NMI) occurs NMI occurs, the contents of the program counter (PC) are saved to FEPC, ...

Page 60

V850ES/JG3-U, V850ES/JH3-U (4) Program status word (PSW) The program status word (PSW collection of flags that indicate the status of the program (result of instruction execution) and the status of the CPU. If the contents of a bit ...

Page 61

V850ES/JG3-U, V850ES/JH3-U Note The result of the operation that has performed saturation processing is determined by the contents of the OV and S flags. The SAT flag is set to 1 only when the OV flag is set to 1 ...

Page 62

V850ES/JG3-U, V850ES/JH3-U (6) Exception/debug trap status saving registers (DBPC and DBPSW) DBPC and DBPSW are exception/debug trap status registers exception trap or debug trap occurs, the contents of the program counter (PC) are saved to DBPC, and those ...

Page 63

V850ES/JG3-U, V850ES/JH3-U 3.3 Operation Modes The V850ES/JG3-U and V850ES/JH3-U have the following operation modes. (1) Normal operation mode In this mode, each pin related to the bus interface is set to the port mode after system reset has been released. ...

Page 64

V850ES/JG3-U, V850ES/JH3-U 3.4 Address Space 3.4.1 CPU address space For instruction addressing combined total external memory area and internal ROM area, plus an internal RAM area, are supported in a linear address space ...

Page 65

V850ES/JG3-U, V850ES/JH3-U 3.4.2 Wraparound of CPU address space (1) Program space Of the 32 bits of the PC (program counter), the higher 6 bits are fixed to 0 and only the lower 26 bits are valid. The higher 6 bits ...

Page 66

V850ES/JG3-U, V850ES/JH3-U 3.4.3 Memory map The areas shown below are reserved in the V850ES/JG3-U and V850ES/JH3-U. Figure 3-2. Data Memory Map (Physical Addresses) 03FFFFFFH (80 KB) 03FEC000H 03FEBFFFH Use prohibited 01000000H 00FFFFFFH External memory area (8 MB) 00800000H 007FFFFFH External ...

Page 67

V850ES/JG3-U, V850ES/JH3-U R01UH0043EJ0300 Rev.3.00 Sep 30, 2010 Figure 3-3. Program Memory Map Use prohibited (program fetch prohibited area ...

Page 68

V850ES/JG3-U, V850ES/JH3-U 3.4.4 Areas (1) Internal ROM area reserved as an internal ROM area. (a) Internal ROM (384 KB) 384 KB are allocated to addresses 00000000H to 0005FFFFH in the following products. Accessing addresses 00060000H ...

Page 69

V850ES/JG3-U, V850ES/JH3-U (2) Internal RAM area are reserved as the internal RAM area. The V850ES/JG3-U and V850ES/JH3-U include a data-only RAM addition to the internal RAM. If the USB host or USB ...

Page 70

V850ES/JG3-U, V850ES/JH3-U (b) Internal RAM (48 KB are allocated to addresses 03FF3000H to 03FFEFFFH in the following products. Accessing addresses 03FF0000H to 03FF2FFFH is prohibited. • μ PD70F3764, 70F3769 Physical address space (c) Data-only RAM (8 KB) A ...

Page 71

V850ES/JG3-U, V850ES/JH3-U (3) On-chip peripheral I/O area addresses 03FFF000H to 03FFFFFFH are reserved as the on-chip peripheral I/O area. Physical address space ...

Page 72

V850ES/JG3-U, V850ES/JH3-U 3.4.5 Recommended use of address space The architecture of the V850ES/JG3-U and V850ES/JH3-U requires that a register that serves as a pointer be secured for address generation when operand data in the data space is accessed. The address ...

Page 73

V850ES/JG3-U, V850ES/JH3-U (2) Data space With the V850ES/JG3-U and V850ES/JH3-U, it seems that there are sixty-four 64 MB address spaces on the 4 GB CPU address space. Therefore, the least significant bit (bit 25 26-bit address is sign-extended ...

Page 74

V850ES/JG3-U, V850ES/JH3 ...

Page 75

V850ES/JG3-U, V850ES/JH3-U 3.4.6 Peripheral I/O registers Address Function Register Name FFFFF004H Port DL register FFFFF004H Port DL register L FFFFF005H Port DL register H Note 2 FFFFF006H Port DH register Note 2 FFFFF008H Port CS register FFFFF00AH Port CT register ...

Page 76

V850ES/JG3-U, V850ES/JH3-U Address Function Register Name FFFFF0C0H DMA transfer count register 0 FFFFF0C2H DMA transfer count register 1 FFFFF0C4H DMA transfer count register 2 FFFFF0C6H DMA transfer count register 3 FFFFF0D0H DMA addressing control register 0 FFFFF0D2H DMA addressing control ...

Page 77

V850ES/JG3-U, V850ES/JH3-U Address Function Register Name FFFFF124H Interrupt control register FFFFF126H Interrupt control register FFFFF128H Interrupt control register FFFFF12AH Interrupt control register FFFFF12CH Interrupt control register FFFFF12EH Interrupt control register FFFFF130H Interrupt control register FFFFF132H Interrupt control register FFFFF134H Interrupt ...

Page 78

V850ES/JG3-U, V850ES/JH3-U Address Function Register Name FFFFF176H Interrupt control register FFFFF178H Interrupt control register FFFFF17AH Interrupt control register FFFFF17CH Interrupt control register FFFFF17EH Interrupt control register FFFFF180H Interrupt control register FFFFF182H Interrupt control register FFFFF184H Interrupt control register FFFFF186H Interrupt ...

Page 79

V850ES/JG3-U, V850ES/JH3-U Address Function Register Name FFFFF200H A/D converter mode register 0 FFFFF201H A/D converter mode register 1 FFFFF202H A/D converter channel specification register FFFFF203H A/D converter mode register 2 FFFFF204H Power-fail compare mode register FFFFF205H Power-fail compare threshold value ...

Page 80

V850ES/JG3-U, V850ES/JH3-U Address Function Register Name FFFFF340H IIC division clock select register 0 FFFFF344H IIC division clock select register 1 FFFFF400H Port 0 register FFFFF402H Port 1 register Note 2 FFFFF404H Port 2 register FFFFF406H Port 3 register FFFFF408H Port ...

Page 81

V850ES/JG3-U, V850ES/JH3-U Address Function Register Name FFFFF46AH Port 5 function control register FFFFF46CH Port 6 function control register FFFFF472H Port 9 function control register FFFFF472H Port 9 function control register L FFFFF473H Port 9 function control register H FFFFF484H Data ...

Page 82

V850ES/JG3-U, V850ES/JH3-U Address Function Register Name FFFFF605H TMT0 I/O control register 2 FFFFF606H TMT0 I/O control register 3 FFFFF607H TMT0 option register 0 FFFFF608H TMT0 option register 1 FFFFF609H TMT0 option register 2 FFFFF60AH TMT0 capture/compare register 0 FFFFF60CH TMT0 ...

Page 83

V850ES/JG3-U, V850ES/JH3-U Address Function Register Name FFFFF662H TAA3 I/O control register 0 FFFFF663H TAA3 I/O control register 1 FFFFF664H TAA3 I/O control register 2 FFFFF665H TAA3 option register 0 FFFFF666H TAA3 capture/compare register 0 FFFFF668H TAA3 capture/compare register 1 FFFFF66AH ...

Page 84

V850ES/JG3-U, V850ES/JH3-U Address Function Register Name FFFFF728H Noise elimination control register FFFFF802H System status register FFFFF80CH Internal oscillation mode register FFFFF810H DMA trigger factor register 0 FFFFF812H DMA trigger factor register 1 FFFFF814H DMA trigger factor register 2 FFFFF816H DMA ...

Page 85

V850ES/JG3-U, V850ES/JH3-U Address Function Register Name FFFFFA23H UARTC2 option control register 0 FFFFFA24H UARTC2 status register FFFFFA26H UARTC2 receive data register FFFFFA26H UARTC2 receive data register L FFFFFA28H UARTC2 transmit data register FFFFFA28H UARTC2 transmit data register L FFFFFA2AH UARTC2 ...

Page 86

V850ES/JG3-U, V850ES/JH3-U Address Function Register Name FFFFFAD9H Time error correction register FFFFFADAH Alarm minute set register FFFFFADBH Alarm time set register FFFFFADCH Alarm week set register FFFFFADDH RTC control register 0 FFFFFADEH RTC control register 1 FFFFFADFH RTC control register ...

Page 87

V850ES/JG3-U, V850ES/JH3-U Address Function Register Name FFFFFD13H CSIF1 status register FFFFFD14H CSIF1 receive data register FFFFFD14H CSIF1 receive data register L FFFFFD16H CSIF1 transmit data register FFFFFD16H CSIF1 transmit data register L FFFFFD20H CSIF2 control register 0 FFFFFD21H CSIF2 control ...

Page 88

V850ES/JG3-U, V850ES/JH3-U Address Function Register Name FFFFFDA0H IIC shift register 2 FFFFFDA2H IIC control register 2 FFFFFDA3H Slave address register 2 FFFFFDA4H IIC clock select register 2 FFFFFDA5H IIC function expansion register 2 FFFFFDA6H IIC status register 2 FFFFFDAAH IIC ...

Page 89

V850ES/JG3-U, V850ES/JH3-U 3.4.7 Special registers Special registers are registers that are protected from being written with illegal data due to a program loop. The V850ES/JG3-U and V850ES/JH3-U have the following eight special registers. • Power save control register (PSC) • ...

Page 90

V850ES/JG3-U, V850ES/JH3-U (1) Setting data to special registers Set data to the special registers in the following sequence. <1> Disable DMA operation. <2> Prepare data to be set to the special register in a general-purpose register. <3> Write the data ...

Page 91

V850ES/JG3-U, V850ES/JH3-U (2) Command register (PRCMD) The PRCMD register is an 8-bit register that protects the registers that may seriously affect the application system from being written, so that the system does not inadvertently stop due to a program hang-up. ...

Page 92

V850ES/JG3-U, V850ES/JH3-U (3) System status register (SYS) Status flags that indicate the operation status of the overall system are allocated to this register. This register can be read or written in 8-bit or 1-bit units. Reset sets this register to ...

Page 93

V850ES/JG3-U, V850ES/JH3-U 3.4.8 Cautions (1) Registers to be set first Be sure to set the following registers first when using the V850ES/JG3-U and V850ES/JH3-U. • System wait control register (VSWC) • On-chip debug mode register (OCDM) (V850ES/JG3-U only) • Watchdog ...

Page 94

V850ES/JG3-U, V850ES/JH3-U (2) Accessing specific on-chip peripheral I/O registers This product has two types of internal system buses. One is a CPU bus and the other is a peripheral bus that interfaces with low-speed peripheral hardware. The clock of the ...

Page 95

V850ES/JG3-U, V850ES/JH3-U Peripheral Function 16-bit timer/event counter AA (TAA 16-bit timer/event counter AB (TAB Motor control TMT Watchdog timer 2 (WDT2) Real-time output function (RTO) ...

Page 96

V850ES/JG3-U, V850ES/JH3-U (3) Restriction on conflict between sld instruction and interrupt request (a) Description If a conflict occurs between the decode operation of an instruction in <2> immediately before the sld instruction following an instruction in <1> and an interrupt ...

Page 97

V850ES/JG3-U, V850ES/JH3-U 4.1 Features I/O ports • V850ES/JG3- tolerant/N-ch open-drain output selectable: 22 • V850ES/JH3- tolerant/N-ch open-drain output selectable: 25 Input/output specifiable in 1-bit units 4.2 Basic Port Configuration The V850ES/JG3-U features a total ...

Page 98

V850ES/JG3-U, V850ES/JH3-U Figure 4-1. Port Configuration Diagram (V850ES/JG3-U) Port 0 Port 1 Port 3 Port 4 Port 5 Figure 4-2. Port Configuration Diagram (V850ES/JH3-U) Port 0 Port 1 Port 2 Port 3 Port 4 Port 5 Port 6 Port 7 ...

Page 99

V850ES/JG3-U, V850ES/JH3-U 4.3 Port Configuration Item Port n mode register (PMn CM, CT, DL) Control register Port n mode control register (PMCn CM, CT, DL) ...

Page 100

V850ES/JG3-U, V850ES/JH3-U (1) Port n register (Pn) Data is input from or output to an external device by writing or reading the Pn register. The Pn register consists of a port latch that holds output data, and a circuit that ...

Page 101

V850ES/JG3-U, V850ES/JH3-U (2) Port n mode register (PMn) The PMn register specifies the input or output mode of the corresponding port pin. Each bit of this register corresponds to one pin of port n, and the input or output mode ...

Page 102

V850ES/JG3-U, V850ES/JH3-U (4) Port n function control register (PFCn) The PFCn register specifies the alternate function of a port pin to be used if the pin has two alternate functions. Each bit of this register corresponds to one pin of ...

Page 103

V850ES/JG3-U, V850ES/JH3-U (6) Port n function register (PFn) The PFn register specifies normal output or N-ch open-drain output. Each bit of this register corresponds to one pin of port n, and the output mode of the port pin can be ...

Page 104

V850ES/JG3-U, V850ES/JH3-U (7) Port setting Set a port as illustrated below. Figure 4-3. Setting of Each Register and Pin Function Port mode Output mode Input mode Alternate function (when two alternate functions are available) Alternate function 1 Alternate function 2 ...

Page 105

V850ES/JG3-U, V850ES/JH3-U 4.3.1 Port 0 Port 0 is 2-bit (V850ES/JG3-U)/6-bit (V850ES/JH3-U) port for which I/O settings can be controlled in 1-bit units. Port 0 includes the following alternate-function pins. Pin Name Pin No. V850ES/ V850ES/ JG3-U JH3-U − P00 8 ...

Page 106

V850ES/JG3-U, V850ES/JH3-U (2) Port 0 mode register (PM0) (a) V850ES/JG3-U After reset: FFH R/W 7 PM0 1 PM0n 0 Output mode 1 Input mode (b) V850ES/JH3-U After reset: FFH R/W 7 PM0 1 PM0n 0 Output mode 1 Input mode ...

Page 107

V850ES/JG3-U, V850ES/JH3-U (3) Port 0 mode control register (PMC0) (a) V850ES/JG3-U After reset: 00H R/W 7 PMC0 0 PMC03 0 I/O port 1 INTP02 input/ADTRG input/UCLK input PMC02 0 I/O port 1 NMI input R01UH0043EJ0300 Rev.3.00 Sep 30, 2010 Address: ...

Page 108

V850ES/JG3-U, V850ES/JH3-U (b) V850ES/JH3-U After reset: 00H R/W 7 PMC0 0 PMC05 0 I/O port 1 INTP04 input PMC04 0 I/O port 1 INTP03 input PMC03 0 I/O port 1 INTP02 input/ADTRG input/UCLK input PMC02 0 I/O port 1 NMI ...

Page 109

V850ES/JG3-U, V850ES/JH3-U (5) Port 0 function control expansion register (PFCE0) After reset: 00H 7 PFCE0 0 Remark For details of alternate function specification, see 4.3.1 (6) Port 0 alternate function specifications. (6) Port 0 alternate function specifications PFCE03 PFC03 0 ...

Page 110

V850ES/JG3-U, V850ES/JH3-U 4.3.2 Port 1 Port 2-bit port for which I/O settings can be controlled in 1-bit units. Port 1 includes the following alternate-function pins. Pin Name Pin No. V850ES/ V850ES/ JG3-U JH3-U P10 3 3 P11 ...

Page 111

V850ES/JG3-U, V850ES/JH3-U 4.3.3 Port 2 (V850ES/JH3-U only) Port 6-bit port for which I/O settings can be controlled in 1-bit units. Port 2 includes the following alternate-function pins. Pin Name Pin No. V850ES/ V850ES/ JG3-U JH3-U − P20 ...

Page 112

V850ES/JG3-U, V850ES/JH3-U (3) Port 2 mode control register (PMC2) After reset: 00H R/W 7 PMC2 0 PMC25 0 I/O port 1 INTP06 input PMC24 0 I/O port 1 INTP05 input PMC23 0 I/O port 1 SCKF2 I/O/KR5 input/RTP05 output PMC22 ...

Page 113

V850ES/JG3-U, V850ES/JH3-U (5) Port 2 function control expansion register (PFCE2) After reset: 00H 7 PFCE2 0 Remark For details of alternate function specification, see 4.3.3 (6) Port 2 alternate function specifications. (6) Port 2 alternate function specifications PFCE23 PFC23 0 ...

Page 114

V850ES/JG3-U, V850ES/JH3-U (7) Port 2 function register (PF2) After reset: 00H R/W 7 PF2 0 PF2n 0 Normal output 1 N-ch open-drain output R01UH0043EJ0300 Rev.3.00 Sep 30, 2010 Address: FFFFFC64H PF25 PF24 PF23 Control of ...

Page 115

V850ES/JG3-U, V850ES/JH3-U 4.3.4 Port 3 Port 10-bit port that controls I/O in 1-bit units. Port 3 includes the following alternate-function pins. Pin Name Pin No. V850ES/ V850ES/ JG3-U JH3-U P30 25 37 P31 26 38 P32 27 ...

Page 116

V850ES/JG3-U, V850ES/JH3-U (3) Port 3 mode control register (PMC3) After reset: 00H R/W PMC3 PMC37 PMC36 PMC37 0 I/O port 1 RXDC3 input/SDA00 I/O/UDMAAK0 output PMC36 0 I/O port 1 TXDC3 output/SCL00 I/O/UDMARQ0 input PMC35 0 I/O port 1 TIAA11 ...

Page 117

V850ES/JG3-U, V850ES/JH3-U (4) Port 3 function control register (PFC3) After reset: 00H R/W PFC37 PFC36 PFC3 Remark For details of alternate function specification, see 4.3.4 (6) Port 3 alternate function specifications. (5) Port 3 function control expansion register (PFCE3) After ...

Page 118

V850ES/JG3-U, V850ES/JH3-U PFCE34 PFC34 Note TOAA1OFF and INTP09 are alternate functions. When using the pin as the TOAA1OFF pin, disable INTP09 pin edge detection, which is the alternate function. Also, when using ...

Page 119

V850ES/JG3-U, V850ES/JH3-U (7) Port 3 function register (PF3) After reset: 00H R/W PF3 PF37 PF3n 0 Normal output (CMOS output) 1 N-ch open-drain output R01UH0043EJ0300 Rev.3.00 Sep 30, 2010 Address: FFFFFC66H PF36 PF35 PF34 PF33 Control of normal output or ...

Page 120

V850ES/JG3-U, V850ES/JH3-U 4.3.5 Port 4 Port 3-bit port that controls I/O in 1-bit units. Port 4 includes the following alternate-function pins. Pin Name Pin No. V850ES/ V850ES/ JG3-U JH3-U P40 22 29 P41 23 30 P42 24 ...

Page 121

V850ES/JG3-U, V850ES/JH3-U (3) Port 4 mode control register (PMC4) After reset: 00H R/W PMC4 0 PMC42 0 I/O port 1 SCKF0 I/O/INTP10 input PMC41 0 I/O port 1 SOF0 output/RXDC4 input/SCL01 I/O PMC40 0 I/O port 1 SIF0 input/TXDC4 output/SDA01 ...

Page 122

V850ES/JG3-U, V850ES/JH3-U (6) Port 4 alternate function specifications PFC42 0 1 PFCE41 PFC41 PFCE40 PFC40 (5) Port 4 function register (PF4) After reset: 00H ...

Page 123

V850ES/JG3-U, V850ES/JH3-U 4.3.6 Port 5 Port 5 is 6-bit (V850ES/JG3-U)/2-bit (V850ES/JH3-U) port that controls I/O in 1-bit units. Port 5 includes the following alternate-function pins. Pin Name Pin No. V850ES/ V850ES/ JG3-U JH3-U P50 35 47 P51 36 48 − ...

Page 124

V850ES/JG3-U, V850ES/JH3-U (1) Port 5 register (P5) (a) V850ES/JG3-U After reset: 00H (output latch P5n 0 Outputs 0. 1 Outputs 1. (b) V850ES/JH3-U After reset: 00H (output latch P5n 0 Outputs 0. 1 Outputs 1. R01UH0043EJ0300 ...

Page 125

V850ES/JG3-U, V850ES/JH3-U (2) Port 5 mode register (PM5) (a) V850ES/JG3-U After reset: FFH R/W PM5 1 PM5n 0 Output mode 1 Input mode (b) V850ES/JH3-U After reset: FFH R/W PM5 1 PM5n 0 Output mode 1 Input mode R01UH0043EJ0300 Rev.3.00 ...

Page 126

V850ES/JG3-U, V850ES/JH3-U (3) Port 5 mode control register (PMC5) (a) V850ES/JG3-U After reset: 00H R/W PMC5 0 PMC56 PMC56 1 I/O port INTP05 input PMC55 0 I/O port 1 SCKF2 I/O/KR5 input/RTP05 output PMC54 0 I/O port 1 SOF2 output/KR4 ...

Page 127

V850ES/JG3-U, V850ES/JH3-U (4) Port 5 function control register (PFC5) (a) V850ES/JG3-U After reset: 00H R/W PFC5 0 (b) V850ES/JH3-U After reset: 00H R/W PFC5 0 Remark For details of alternate function specification, see 4.3.6 (6) Port 5 alternate function specifications. ...

Page 128

V850ES/JG3-U, V850ES/JH3-U Note 1 Note 1 PFCE54 PFC54 Note 1 Note 1 PFCE53 PFC53 Note1 Note1 PFCE52 PFC52 ...

Page 129

V850ES/JG3-U, V850ES/JH3-U (7) Port 5 function register (PF5) (a) V850ES/JG3-U After reset: 00H R/W PF5 0 PF5n 0 Normal output (CMOS output) 1 N-ch open-drain output (b) V850ES/JH3-U After reset: 00H R/W PF5 0 PF5n 0 Normal output (CMOS output) ...

Page 130

V850ES/JG3-U, V850ES/JH3-U 4.3.7 Port 6 Port 6-bit port for which I/O settings can be controlled in 1-bit units. Port 6 includes the following alternate-function pins. Pin Name Pin No. V850ES/ V850ES/ JG3-U JH3-U P60 65 90 P61 ...

Page 131

V850ES/JG3-U, V850ES/JH3-U (2) Port 6 mode register (PM6) After reset: FFH R/W PM6 1 PM6n 0 Output mode 1 Input mode (3) Port 6 mode control register (PMC6) After reset: 00H R/W PMC6 0 PMC65 0 I/O port 1 TOAB1B3 ...

Page 132

V850ES/JG3-U, V850ES/JH3-U (4) Port 6 function control register (PFC6) After reset: 00H R/W PFC6 0 Remark For details of alternate function specification, see 4.3.7 (6) Port 6 alternate function specifications. (5) Port 6 function control expansion register (PFCE6) (a) V850ES/JG3-U ...

Page 133

V850ES/JG3-U, V850ES/JH3-U Note PFCE63 PFC63 Note PFCE62 PFC62 PFCE61 PFC61 Note PFCE60 PFC60 ...

Page 134

V850ES/JG3-U, V850ES/JH3-U 4.3.8 Port 7 Port 12-bit port for which I/O settings can be controlled in 1-bit units. Port 7 includes the following alternate-function pins. Pin Name Pin No. V850ES/ V850ES/ JG3-U JH3-U P70 100 128 P71 ...

Page 135

V850ES/JG3-U, V850ES/JH3-U (2) Port 7 mode register H, port 7 mode register L (PM7H, PM7L) After reset: FFH R/W PM7H 1 PM7L PM77 PM7n 0 Output mode 1 Input mode Caution When using the P7n pin as its alternate function ...

Page 136

V850ES/JG3-U, V850ES/JH3-U 4.3.9 Port 9 Port 16-bit port for which I/O settings can be controlled in 1-bit units. Port 9 includes the following alternate-function pins. Pin Name Pin No. V850ES/ V850ES/ JG3-U JH3-U P90 42 54 P91 ...

Page 137

V850ES/JG3-U, V850ES/JH3-U (1) Port 9 register (P9) After reset: 0000H (output latch (P9H) P915 (P9L) P97 P9n 0 Outputs 0. 1 Outputs 1. Remarks 1. The P9 register can be read or written in 16-bit units. However, when ...

Page 138

V850ES/JG3-U, V850ES/JH3-U (3) Port 9 mode control register (PMC9) After reset: 0000H 15 PMC9 (PMC9H) PMC915 PMC914 PMC913 PMC912 PMC911 PMC910 (PMC9L) PMC97 PMC915 0 1 PMC914 0 1 PMC913 0 1 PMC912 0 1 PMC911 0 1 PMC910 0 ...

Page 139

V850ES/JG3-U, V850ES/JH3-U PMC97 0 I/O port 1 SIF1 input/TIAA20 input/TOAA20 output/A7 output PMC96 0 I/O port 1 TIAA21 input/TOAA21 output/INTP11 input/A6 output PMC95 0 I/O port 1 TIAA30 input/TOAA30 output/A5 output PMC94 0 I/O port 1 TIAA31 input/TOAA31 output/TENC00 input/EVTT0 ...

Page 140

V850ES/JG3-U, V850ES/JH3-U (4) Port 9 function control register (PFC9) <R> Caution When performing separate address bus output (A0 to A15), set the PMC9 register to FFFFH for all 16 bits at once after setting the PFC9 registers to FCDFH and ...

Page 141

V850ES/JG3-U, V850ES/JH3-U (5) Port 9 function control expansion register (PFCE9) <R> Caution When performing separate address bus output (A0 to A15), set the PMC9 register to FFFFH for all 16 bits at once after setting the PFC9 registers to FCDFH ...

Page 142

V850ES/JG3-U, V850ES/JH3-U (6) Port 9 alternate function specifications PFCE915 PFC915 PFCE914 PFC914 Note PFC913 0 TOAB1OFF input/INTP16 input Note 1 A13 output Note PFC912 ...

Page 143

V850ES/JG3-U, V850ES/JH3-U Note PFCE98 PFC98 PFCE97 PFC97 PFCE96 PFC96 Note PFCE95 PFC95 ...

Page 144

V850ES/JG3-U, V850ES/JH3-U PFCE92 PFC92 PFCE91 PFC91 PFCE90 PFC90 R01UH0043EJ0300 Rev.3.00 Sep 30, 2010 Specification of P92 ...

Page 145

V850ES/JG3-U, V850ES/JH3-U (7) Port 9 function register (PF9) After reset: 0000H 15 PF9 0 (PF9L) 0 PF9n 0 Normal output (CMOS output) 1 N-ch open-drain output Caution When output pins P90 and P91 are pulled PF9n bit ...

Page 146

V850ES/JG3-U, V850ES/JH3-U 4.3.10 Port CM Port CM is 1-bit (V850ES/JG3-U)/4-bit (V850ES/JH3-U) port for which I/O settings can be controlled in 1-bit units. Port CM includes the following alternate-function pins. Pin Name Pin No. V850ES/ V850ES/ JG3-U JH3-U − PCM0 89 ...

Page 147

V850ES/JG3-U, V850ES/JH3-U (2) Port CM mode register (PMCM) (a) V850ES/JG3-U After reset: FFH PMCM 1 PMCM1 0 Output mode 1 Input mode (b) V850ES/JH3-U After reset: FFH PMCM 1 PMCMn 0 Output mode 1 Input mode R01UH0043EJ0300 Rev.3.00 Sep 30, ...

Page 148

V850ES/JG3-U, V850ES/JH3-U (3) Port CM mode control register (PMCCM) (a) V850ES/JG3-U After reset: 00H PMCCM 0 PMCCM1 0 I/O port 1 CLKOUT output (b) V850ES/JH3-U After reset: 00H PMCCM 0 PMCCM3 0 I/O port 1 HLDRQ input PMCCM2 0 I/O ...

Page 149

V850ES/JG3-U, V850ES/JH3-U 4.3.11 Port CS (V850ES/JH3-U only) Port 3-bit port for which I/O settings can be controlled in 1-bit units. Port CS includes the following alternate-function pins. Pin Name Pin No. V850ES/ V850ES/ JG3-U JH3-U − PCS0 ...

Page 150

V850ES/JG3-U, V850ES/JH3-U (3) Port CS mode control register (PMCCS) After reset: 00H PMCCS 0 PMCCS3 0 I/O port 1 CS3 output PMCCS2 0 I/O port 1 CS2 output PMCCS0 0 I/O port 1 CS0 output R01UH0043EJ0300 Rev.3.00 Sep 30, 2010 ...

Page 151

V850ES/JG3-U, V850ES/JH3-U 4.3.12 Port CT Port 2-bit (V850ES/JG3-U)/4-bit (V850ES/JH3-U) port for which I/O settings can be controlled in 1-bit units. Port CT includes the following alternate-function pins. Pin Name Pin No. V850ES/ V850ES/ JG3-U JH3-U PCT0 58 ...

Page 152

V850ES/JG3-U, V850ES/JH3-U (2) Port CT mode register (PMCT) (a) V850ES/JG3-U After reset: FFH R/W PMCT 1 PMCTn 0 Output mode 1 Input mode (b) V850ES/JH3-U After reset: FFH R/W PMCT 1 PMCT6 PMCTn 0 Output mode 1 Input mode R01UH0043EJ0300 ...

Page 153

V850ES/JG3-U, V850ES/JH3-U (3) Port CT mode control register (PMCCT) (a) V850ES/JG3-U After reset: 00H PMCCT 0 PMCCT1 0 I/O port 1 WR1 output PMCCT0 0 I/O port 1 WR0 output (b) V850ES/JH3-U After reset: 00H PMCCT 0 PMCCT6 PMCCT6 0 ...

Page 154

V850ES/JG3-U, V850ES/JH3-U 4.3.13 Port DH (V850ES/JH3-U only) Port 8-bit port for which I/O settings can be controlled in 1-bit units. Port DH includes the following alternate-function pins. Pin Name Pin No. V850ES/ V850ES/ JG3-U JH3-U − PDH0 ...

Page 155

V850ES/JG3-U, V850ES/JH3-U (1) Port DH register (PDH) After reset: 00H (output latch) PDH PDH7 PDH6 PDHn 0 Outputs 0. 1 Outputs 1. (2) Port DH mode register (PMDH) After reset: FFH R/W PMDH PMDH7 PMDH6 PMDHn 0 Output mode 1 ...

Page 156

V850ES/JG3-U, V850ES/JH3-U 4.3.14 Port DL Port 16-bit port for which I/O settings can be controlled in 1-bit units. Port DL includes the following alternate-function pins. Pin Name Pin No. V850ES/ V850ES/ JG3-U JH3-U PDL0 71 98 PDL1 ...

Page 157

V850ES/JG3-U, V850ES/JH3-U (1) Port DL register (PDL) After reset: 0000H (output latch) 15 PDL (PDLH) PDL15 (PDLL) PDL7 PDLn 0 1 Remarks 1. The PDL register can be read or written in 16-bit units. However, when using the higher 8 ...

Page 158

V850ES/JG3-U, V850ES/JH3-U (3) Port DL mode control register (PMCDL) After reset: 0000H 15 PMCDL (PMCDLH) PMCDL15 PMCDL14PMCDL13 PMCDL12 PMCDL11PMCDL10 PMCDL9 PMCDL8 PMCDL7 PMCDL6 PMCDL5 PMCDL4 PMCDL3 PMCDL2 PMCDL1 PMCDL0 (PMCDLL) PMCDLn 0 1 Remarks 1. The PMCDL register can be ...

Page 159

Table 4-20. Using Port Pin as Alternate-Function Pin (1/10) Pin Name Alternate Function Pnx Bit of Pn Register Name I/O Note 1 P00 INTP00 Input P00 = Setting not required PM00 = Setting not required PMC00 = 1 Note 1 ...

Page 160

Table 4-20. Using Port Pin as Alternate-Function Pin (2/10) Pin Name Alternate Function Pnx Bit of Pn Register Name I/O Note P22 SOF2 Output P22 = Setting not required PM22 = Setting not required PMC22= 1 KR4 Input P22 = ...

Page 161

Table 4-20. Using Port Pin as Alternate-Function Pin (3/10) Pin Name Alternate Function Pnx Bit of Pn Register Name I/O P34 TIAA10 Input P34 = Setting not required PM34 = Setting not required PMC34 = 1 TOAA10 Output P34 = ...

Page 162

Table 4-20. Using Port Pin as Alternate-Function Pin (4/10) Pin Name Alternate Function Pnx Bit of Pn Register Name I/O P50 TIAB01 Input P50 = Setting not required PM50 = Setting not required PMC50 = 1 KR0 Input P50 = ...

Page 163

Table 4-20. Using Port Pin as Alternate-Function Pin (5/10) Pin Name Alternate Function Pnx Bit of Pn Register Name I/O Note P55 SCKF2 I/O P55 = Setting not required PM55 = Setting not required PMC55 = 1 KR5 Input P55 ...

Page 164

Table 4-20. Using Port Pin as Alternate-Function Pin (6/10) Pin Name Alternate Function Pnx Bit of Pn Register Name I/O P70 ANI0 Input P70 = Setting not required PM70 = 1 P71 ANI1 Input P71 = Setting not required PM71 ...

Page 165

Table 4-20. Using Port Pin as Alternate-Function Pin (7/10) Pin Name Alternate Function Pnx Bit of Pn Register Name I/O P93 TECR0 Input P93 = Setting not required PM93 = Setting not required PMC93 = 1 TIT00 Input P93 = ...

Page 166

Table 4-20. Using Port Pin as Alternate-Function Pin (8/10) Pin Name Alternate Function Pnx Bit of Pn Register Name I/O P99 SCKF1 I/O P99 = Setting not required PM99 = Setting not required PMC99 = 1 INTP14 Input P99 = ...

Page 167

Pin Name Alternate Function Pnx Bit of Pn Register Name I/O Note PCM0 WAIT Input PCM0 = Setting not required PMCM0 = Setting not required PMCCM0 = 1 PCM1 CLKOUT Output PCM1 = Setting not required PMCM1 = Setting not ...

Page 168

Table 4-20. Using Port Pin as Alternate-Function Pin (10/10) Pin Name Alternate Function Pnx Bit of Pn Register Name I/O PDL5 AD5 I/O PDL5 = Setting not required PMDL5 = Setting not required Note FLMD1 Input PDL5 = Setting not ...

Page 169

V850ES/JG3-U, V850ES/JH3-U 4.5 Cautions 4.5.1 Cautions on setting port pins (1) In the V850ES/JG3-U and V850ES/JH3-U, the general-purpose port functions share pins with several peripheral function I/O pins. Switch between the general-purpose port (port mode) and the peripheral function I/O ...

Page 170

V850ES/JG3-U, V850ES/JH3-U The setting procedure that may cause malfunction on switching from the P41 pin to the SCL01 pin is shown below. Setting Procedure <1> <2> <3> <4> <2> communication may be affected since the alternate-function ...

Page 171

V850ES/JG3-U, V850ES/JH3-U Figure 4-4. Example of Switching from P02 to NMI (Incorrect) PMC0m bit = 0: Port mode PMC0m bit = 1: Alternate-function mode NMI interrupt occurrence Remark [Example 2] Switching from external pin (NMI) ...

Page 172

V850ES/JG3-U, V850ES/JH3-U 4.5.2 Cautions on bit manipulation instruction for port n register (Pn) When a 1-bit manipulation instruction is executed on a port that provides both input and output functions, the value of the output latch of an input port ...

Page 173

V850ES/JG3-U, V850ES/JH3-U 4.5.3 Cautions on on-chip debug pins (V850ES/JG3-U only) The DRST, DCK, DMS, DDI, and DDO pins are on-chip debug pins. After reset by the RESET pin, the P56/INTP05/DRST pin is initialized to function as an on-chip debug pin ...

Page 174

V850ES/JG3-U, V850ES/JH3-U CHAPTER 5 BUS CONTROL FUNCTION The V850ES/JG3-U and V850ES/JH3-U are provided with an external bus interface function by which external memories such as ROM and RAM, and I/O can be connected. 5.1 Features Output is selectable from multiplexed ...

Page 175

V850ES/JG3-U, V850ES/JH3-U 5.2 Bus Control Pins The pins used to connect an external device are listed in the table below. Table 5-1. V850ES/JH3-U Bus Control Pins (Multiplexed Bus) Bus Control Pin Alternate-Function Pin AD0 to AD15 PDL0 to PDL15 A16 ...

Page 176

V850ES/JG3-U, V850ES/JH3-U 5.2.1 Pin status when internal ROM, internal RAM, or on-chip peripheral I/O is accessed When the internal ROM, internal RAM, or on-chip peripheral I/O are accessed, the status of each pin is as follows. Table 5-4. Pin Statuses ...

Page 177

V850ES/JG3-U, V850ES/JH3-U 5.3 Memory Block Function The 16 MB external memory space is divided into memory blocks of 2 MB, 4 MB, and 8 MB from the lowest of the memory space. The programmable wait function and bus cycle operation ...

Page 178

V850ES/JG3-U, V850ES/JH3-U 5.4 Bus Access 5.4.1 Number of clocks for access The following table shows the number of basic clocks required for accessing each resource. Area (Bus Width) Bus Cycle Type Instruction fetch (normal access) Instruction fetch (branch) Operand data ...

Page 179

V850ES/JG3-U, V850ES/JH3-U 5.4.3 Access by bus size The V850ES/JG3-U and V850ES/JH3-U access the on-chip peripheral I/O and external memory in 8-bit, 16-bit, or 32- bit units. The bus size is as follows. • The bus size of the on-chip peripheral ...

Page 180

V850ES/JG3-U, V850ES/JH3-U (2) Byte access (8 bits) (a) 16-bit data bus width <1> Access to even address (2n Byte data External data bus (b) 8-bit data bus width <1> Access to even address (2n) ...

Page 181

V850ES/JG3-U, V850ES/JH3-U (3) Halfword access (16 bits) (a) 16-bit data bus width <1> Access to even address (2n Halfword data External data bus (b) 8-bit data bus width <1> Access to even ...

Page 182

V850ES/JG3-U, V850ES/JH3-U (4) Word access (32 bits) (a) 16-bit data bus width (1/2) <1> Access to address (4n) First access Address Word data External ...

Page 183

V850ES/JG3-U, V850ES/JH3-U (a) 16-bit data bus width (2/2) <3> Access to address ( First access Address Word data External data ...

Page 184

V850ES/JG3-U, V850ES/JH3-U (b) 8-bit data bus width (1/2) <1> Access to address (4n) First access Address Word data External data Word ...

Page 185

V850ES/JG3-U, V850ES/JH3-U (b) 8-bit data bus width (2/2) <3> Access to address ( First access Address Word ...

Page 186

V850ES/JG3-U, V850ES/JH3-U 5.5 Wait Function 5.5.1 Programmable wait function (1) Data wait control register 0 (DWC0) To realize interfacing with a low-speed memory or I/ seven data wait states can be inserted in the bus cycle that is ...

Page 187

V850ES/JG3-U, V850ES/JH3-U 5.5.2 External wait function To synchronize an extremely slow external memory, I/O, or asynchronous system, any number of wait states can be inserted in the bus cycle by using the external wait pin (WAIT). Note 1 Note 2 ...

Page 188

V850ES/JG3-U, V850ES/JH3-U 5.5.3 Relationship between programmable wait and external wait Wait cycles are inserted as the result operation between the wait cycles specified by the set value of the programmable wait and the wait cycles controlled by ...

Page 189

V850ES/JG3-U, V850ES/JH3-U 5.5.4 Programmable address wait function Address-setup or address-hold waits to be inserted in each bus cycle can be set by using the AWC register. Address wait insertion is set for each chip select area (CS0, CS2, CS3). If ...

Page 190

V850ES/JG3-U, V850ES/JH3-U 5.6 Idle State Insertion Function To facilitate interfacing with low-speed memories, one idle state (TI) can be inserted after the T3 state in the bus cycle that is executed for each space selected by the chip select. By ...

Page 191

V850ES/JG3-U, V850ES/JH3-U 5.7 Bus Hold Function (V850ES/JH3-U only) 5.7.1 Functional outline The HLDRQ and HLDAK functions are valid if the PCM2 and PCM3 pins are set to their alternate function. When the HLDRQ pin is asserted (low level), indicating that ...

Page 192

V850ES/JG3-U, V850ES/JH3-U 5.7.2 Bus hold procedure The bus hold status transition procedure is shown below. <1> HLDRQ = 0 acknowledged <2> All bus cycle start requests inhibited <3> End of current bus cycle <4> Shift to bus idle status <5> ...

Page 193

V850ES/JG3-U, V850ES/JH3-U 5.8 Bus Priority Bus hold, DMA transfer, operand data accesses, instruction fetch (branch), and instruction fetch (successive) are executed in the external bus cycle. Bus hold has the highest priority, followed by DMA transfer, operand data access, instruction ...

Page 194

V850ES/JG3-U, V850ES/JH3-U 5.9 Bus Timing Figure 5-4. Multiplexed/Separate Bus Read Timing (Bus Size: 16 Bits, 16-Bit Access CLKOUT Note 1 A23 ASTB Note 2 CS3, CS2, CS0 WAIT AD15 to AD0 8-bit ...

Page 195

V850ES/JG3-U, V850ES/JH3-U Figure 5-6. Multiplexed/Separate Bus Write Timing (Bus Size: 16 Bits, 16-Bit Access CLKOUT Note 1 A23 to A0 ASTB Note 2 CS3, CS2, CS0 WAIT A1 AD15 to AD0 WR1, WR0 11 00 8-bit Access AD15 ...

Page 196

V850ES/JG3-U, V850ES/JH3-U Figure 5-8. Multiplexed/Separate Bus Hold Timing (Bus Size: 16 Bits, 16-Bit Access) (V850ES/JH3-U only) T1 CLKOUT HLDRQ HLDAK A23 AD15 to AD0 ASTB RD Note 2 CS3, CS2, CS0 Notes 1. This idle state (TI) ...

Page 197

V850ES/JG3-U, V850ES/JH3-U CHAPTER 6 CLOCK GENERATION FUNCTION 6.1 Overview The following clock generation functions are available. Main clock oscillator • In clock-through mode f = 3.0 to 6.0 MHz (f = 3.0 to 6.0 MHz • In PLL ...

Page 198

V850ES/JG3-U, V850ES/JH3-U 6.2 Configuration FRC bit XT1 f Subclock XT oscillator XT2 MFRC PLLON bit bit Main clock PLL oscillator X2 Main clock oscillator stop control STOP mode SELPLL bit CLKOUT Port CM UCKSEL UCLK Remark f ...

Page 199

V850ES/JG3-U, V850ES/JH3-U (1) Main clock oscillator The main clock oscillator oscillates the following frequencies (f • In clock-through mode f = 3.0 to 6.0 MHz X • In PLL mode f = 3.0 to 6.0 MHz (×8) X (2) Subclock ...

Page 200

V850ES/JG3-U, V850ES/JH3-U 6.3 Registers (1) Processor clock control register (PCC) The PCC register is a special register. sequences (see 3.4.7 Special registers). This register can be read or written in 8-bit or 1-bit units. Reset sets this register to 03H. ...

Related keywords