Page 1
User’s Manual V850ES/DJ2 32-bit System in Package Microcontroller Hardware µPD70F3325 Document No. U17763EE1V1UD00 Date Published September 2005 NEC Electronics 2005 Printed in Germany...
Page 3
NOTES FOR CMOS DEVICES 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 (MAX) and V (MIN) due to noise, etc., the device may malfunction.
Page 4
NEC Electronics does not assume any liability for infringement of patents, copyrights or other intellectual property rights of third parties by or arising from the use of NEC Electronics products listed in this document or any other liability arising from the use of such products. No license, express, implied or otherwise, is granted under any patents, copyrights or other intellectual property rights of NEC Electronics or others.
Page 5
All (other) product, brand, or trade names used in this pamphlet are the trademarks or registered trademarks of their respective owners. Product specifications are subject to change without notice. To ensure that you have the latest product data, please contact your local NEC Electronics sales office. User’s Manual U17763EE1V1UD00...
Page 6
Some information contained in this document may vary from country to country. Before using any NEC product in your application, please contact the NEC office in your country to obtain a list of authorized representatives and distributors. They will verify: •...
Page 7
This manual is intented for users who want to understand the functions of the V850ES/DJ2. Purpose This manual presents the hardware manual of the V850ES/DJ2. This User’s Manual is an extension of the F_Line User’s Manual. F_Line Items: For all of the items regarding the FG2 please refer to the F_Line User’s Manual/Data sheet (U17215EJ2V0UD00 (2nd edition) and further releases).
1.1 General The V850ES/DJ2 is a 32-bit System in Package (SiP) microcontroller that includes a V850ES CPU core device of the F_Line (V850ES/FG2) and a Meter Controller/Driver (MTRC) in one package. The F_Line includes peripheral functions such as ROM/RAM, a timer/counter, serial interfaces, and an A/D converter.
Chapter 1 Introduction 1.3 About the Subject of this User’s Manual This User’s Manual is an extension of the F_Line User’s Manual. F_Line Items: For all of the items regarding the FG2 please refer to the F_Line User’s Manual/Data Sheet (U17215EJ2V0UD00 (2nd edition) and further releases).
Chapter 1 Introduction 1.5 Communication Between the FG2 and MTRC The clocked synchronous serial interface CSIB1 of the FG2 device is used for the communication with the MTRC. The communication I/F of the MTRC is fixed to the following settings: •...
Chapter 1 Introduction 1.5.2 Internal or external communication via CSIB1 Via the PCM0/CS signal the output functionality of the PMT4 port will be controlled, too. Figure 1-2: CS Functionality V850ES/FG2 MTRC DJ2 pins CLKOUT PMT43/EXCLO SIB1 SOB1 Macro SCKB1 PMT40/EXSI1 PMT41/EXSO1 EXCSI1 PMT42/EXSCK1...
Chapter 2 V850ES/FG2 Introduction The V850ES/FG2 is one of the products of NEC Electronics’ V850 Series of single-chip microcontrol- lers for real-time control. The V850ES/FG2 is a 32-bit single-chip microcontroller that includes the V850ES CPU core and inte- grate peripheral functions such as ROM/RAM, DMA controller, and timers/counters. These microcon- trollers also incorporate a CAN (Controller Area Network) as an automotive LAN.
Page 26
Chapter 2 V850ES/FG2 Introduction • Power save function - HALT - IDLE1 - IDLE2 - software STOP - subclock - sub-IDLE modes Pin identification ADTRG: A/D trigger input PCM0 to PCM3: Port CM ANI0 to ANI15: Analog input PCS0, PCS1: Port CS ASCKA0: Asynchronous serial clock...
Page 27
Chapter 2 V850ES/FG2 Introduction Figure 2-1: Block Diagram Flash Memory INTC 256 KB, Instruction INTP0 to INTP10 384 KB queue Mask Rom TIQ00 to TIQ10 32-bit barrel Multiplier TIQ01 to TIQ11 128 KB, 16 × 16 → 32 shifter TIQ02 to TIQ12 256 KB TIQ03 to TIQ13 16-bit timer/...
Chapter 2 V850ES/FG2 Introduction 2.1 Pin Functions This section explains the names and functions of the pins of the V850ES/FG2. Three I/O buffer power supplies, AV and EV , are available. The relationship between the REF0, power supplies and the pins is shown below. Table 2-1: Pin I/O Buffer Power Supplies (V850ES/FG2 Power Supply Corresponding Pin...
Page 29
Chapter 2 V850ES/FG2 Introduction Table 2-2: Pin List (Port Pins) (Continued) Pin Name Function Alternate Function KR0/TIQ01/TOQ01 KR1/TIQ02/TOQ02 Port 5 KR2/TIQ03/TOQ03/DDI 6-bit I/O port KR3/TIQ00/TOQ00/DDO Input/output can be specified in 1-bit units. KR4/DCK KR5/DMS Port 7 P70 to P715 16-bit I/O port ANI0 to ANI15 Input/output can be specified in 1-bit units.
Page 30
Chapter 2 V850ES/FG2 Introduction Table 2-3: Pin List (Non-Port Pins) Pin Name Alternate Function Function External interrupt input Input (non-maskable, with analog noise eliminated) INTP0 P03/ADTRG INTP1 INTP2 P05/DRST INTP3 INTP4 P913/PCL External interrupt request input INTP5 Input P914 (maskable, with analog noise eliminated) INTP6 P915 INTP7...
Page 32
Chapter 2 V850ES/FG2 Introduction Table 2-3: Pin List (Non-Port Pins) (Continued) Pin Name Function Alternate Function Input Debug clock input P54/KR4 DRST Input Debug reset input P05/INTP2 FLMD0 Input Flash programming mode setting pins FLMD1 PDL5 CLKOUT Output Internal system clock output PCM1 Clock output (timing output of X1 input clock and sub- Output...
Page 33
Chapter 2 V850ES/FG2 Introduction Table 2-4: Pin I/O Circuit Types and Recommended Connection of Unused Pins I/O Cir- Recommended Connection cuit Type P00/TIP31/TOP31 P01/TIP30/TOP30 Input: Independently connect to EV or EV via a resistor P02/NMI Output: Leave open P03/INTP0/ADTRG P04/INTP1 Input: Independently connect to EV via a resistor P05/INTP2/DRST...
Page 34
Chapter 2 V850ES/FG2 Introduction Table 2-4: Pin I/O Circuit Types and Recommended Connection of Unused Pins (Continued) P96/TIP21/TOP21 P97/SIB1/TIP20/TOP20 P98/SOB1 P99/SCKB1 P910 Input: Independently connect to EV or EV via a resistor Output: Leave open P911 P912 P913/INTP4/PCL P914/INTP5 P915/INTP6 PCM0 Input: Independently connect to BV or BV...
Page 35
Chapter 2 V850ES/FG2 Introduction Figure 2-2: Pin I/O Circuit Types (1/2) Type 2 Type 5-AF Pullup enable P-ch Data P-ch IN/OUT Output N-ch disable Input enable N-ch Schmitt-triggered input with hysteresis characteristics Pulldown enable Type 5 Type 11-G REF0 Data P-ch IN/OUT Data...
Page 36
Chapter 2 V850ES/FG2 Introduction Figure 2-3: Figure 2-1. Pin I/O Circuit Types (2/2) Type 5-A Type 16 Feedback cut-off Pullup P-ch enable P-ch Data P-ch IN/OUT Output N-ch disable Input enable Type 5-W Pullup P-ch enable Data P-ch IN/OUT Output N-ch disable Input...
Chapter 2 V850ES/FG2 Introduction 2.2 Port Functions Features • I/O ports: 84 • Port pins function alternately as other peripheral-function I/O pins • Can be set in input or output mode in 1-bit units. The V850ES/FG2 has a total of 84 I/O ports, ports 0, 1, 3 to 5, 7, 9, CM, CS, CT, and DL. The port con- figuration is shown below.
Chapter 2 V850ES/FG2 Introduction 2.3 CPU Functions Based on the RISC architecture, the CPU of the V850ES/FG2 executes most of the instructions in one clock under control of a five-stage pipeline. Features • Minimum instruction execution time: 50 ns (at 20 MHz operation) •...
Chapter 2 V850ES/FG2 Introduction 2.4 Clock Generation Function The following clock generation functions are available. • Main clock oscillator • In clock-through mode = 4 to 5 MHz (f = 4 to 5 MHz) • In PLL (Phase Locked Loop) mode = 4 to 5 MHz (f = 16 to 20 MHz) •...
Page 40
Chapter 2 V850ES/FG2 Introduction Figure 2-5: Clock Generator FRC bit Xtal Subclock Watch timer clock oscillator IDLE 1/2 divider control Select IDLE mode 0, 1 oscillator /2 to f Watch timer (WT) clock, Prescaler 3 CSIB0 clock IDLE mode0, 1 PLLON MFRC bit Main clock oscillator...
Chapter 2 V850ES/FG2 Introduction 2.5 16-bit Timer/event Counter P The V850ES/FG2 includes 16-bit timer/event counter P (TMP0 to TMP3). Features Timer P (TMP) is a 16-bit timer/event counter that can be used in various ways. TMP can perform the following operations. •...
Chapter 2 V850ES/FG2 Introduction 2.6 16-bit Timer/event Counter Q The V850ES/FG2 includes 16-bit timer/event counter Q (TMQ0, TMQ1). Features Timer Q (TMQ) is a 16-bit timer/event counter that can be used in various ways. TMQ can perform the following operations. •...
Chapter 2 V850ES/FG2 Introduction 2.7 16-bit Interval Timer M The V850ES/FG2 includes 16-bit interval timer M (TMM0). Features Timer M (TMM) supports only a clear & start mode. It does not support a free-running mode. To use timer M in a manner equivalent to in the free-running mode, set the compare register to FFFFH and start the 16-bit counter.
Chapter 2 V850ES/FG2 Introduction 2.8 Watch Timer Functions Features The watch timer has the following functions. • Watch timer • Interval timer The watch timer and interval timer functions can be used at the same time. Figure 2-9: Block Diagram of Watch Timer Reset Clear 5-bit counter...
Page 47
Chapter 2 V850ES/FG2 Introduction Figure 2-10: Block Diagram of Prescaler 3 3-bit prescaler BGCS 8-bit counter Match Output control Prescaler compare register0 (PRSCM0) BGCE0 BGCS01 BGCS00 Prescaler mode register 0 (PRSM0) Remark: :Prescaler 3 count clock frequency BGCS 1. f :Prescaler 3 output frequency 2.
Chapter 2 V850ES/FG2 Introduction 2.10 A/D Converter Features The A/D converter converts analog input signals into digital values, has a resolution of 10 bits, and can handle 16 analog input signal channels (ANI0 to ANI15). The A/D converter has the following features. •...
Chapter 2 V850ES/FG2 Introduction 2.11 Asynchronous Serial Interface A (UARTA) The V850ES/FG2 includes asynchronous serial interface A (UARTA). Features • Transfer rate: 300 bps to 312.5 kbps (using internal system clock of 20 MHz and dedicated baud rate generator) • Full-duplex communication - UARTA receive data register n (UAnRX) - UARTA transmit data register n (UAnTX) •...
Page 51
Chapter 2 V850ES/FG2 Introduction Figure 2-13: Block Diagram of Asynchronous Serial Interface A Internal bus INTUAnT INTUAnR Reception unit Transmission unit UAnRX UAnTX Transmit Receive shift Reception Transmission shift register register controller controller Filter Baud rate Baud rate Selector TXDAn generator generator RXDAn...
Chapter 2 V850ES/FG2 Introduction 2.12 3-Wire Serial Interface (CSIB) The V850ES/FG2 includes a 3-wire serial interface (CSIB). Features • Master mode and slave mode selectable • 3-wire serial interface for 8-bit to 16-bit transfer • Interrupt request signals (INTCBnT and INTCBnR) •...
• Automatic block transmission function • Multi-buffer receive block function • Mask setting of four patterns is possible for each channel Figure 2-15: Block Diagram of CAN Module Interrupt request INTCnTRX (NEC peripheral I/O bus) INTCnREC INTCnERR INTCnWUP CAN bus CAN module...
Chapter 2 V850ES/FG2 Introduction 2.14 Interrupt/Exception Processing Function The V850ES/FG2 is provided with a dedicated interrupt controller (INTC) for interrupt servicing. An interrupt is an event that occurs independently of program execution, and an exception is an event whose occurrence is dependent on program execution. The V850ES/FG2 can process interrupt request signals from the on-chip peripheral hardware and external sources.
Chapter 2 V850ES/FG2 Introduction 2.15 DMA Controller (DMAC) The V850ES/FG2 incorporates a direct memory access (DMA) controller (DMAC) that executes and controls DMA transfer. The V850ES/FG2 incorporates four independent DMA channels. The DMAC controls data transfer between memory and I/O, between memories, or between I/Os based on DMA requests issued by the on-chip peripheral I/O (serial interface, real-time pulse unit, and A/D converter), interrupts from external input pins, or software triggers (memory refers to internal RAM or external memory).
Chapter 2 V850ES/FG2 Introduction 2.16 Key Interrupt Function Features A key interrupt request signal (INTKR) can be generated by inputting a falling edge to the eight key input pins (KR0 to KR7) by setting the key return mode register (KRM). Table 2-5: Assignment of Key Return Detection Pins Flag Pin Description...
Chapter 2 V850ES/FG2 Introduction 2.17 Standby Function Overview The power consumption of the system can be effectively reduced by using the standby modes in com- bination and selecting the appropriate mode for the application. The available standby modes are listed below. Table 2-6: Standby Modes Mode Functional Outline...
Chapter 2 V850ES/FG2 Introduction 2.18 Reset Function The reset function is outlined below. • Reset function by RESET pin input • Reset function by overflow of watchdog timer 2 (WDT2RES) • System reset by low voltage detector (LVI) • System reset by clock monitor (CLM) Preliminary User’s Manual U17763EE1V1UD00...
Chapter 2 V850ES/FG2 Introduction 2.19 Clock Monitor The clock monitor samples the main clock by using the on-chip Ring-OSC and generates a reset request signal when oscillation of the main clock is stopped. Once the operation of the clock monitor has been enabled by an operation enable flag, it cannot be cleared to 0 by any means other than reset.
Chapter 2 V850ES/FG2 Introduction 2.20 Low-voltage Detector Features The low-voltage detector (LVI) has the following functions. • Compares the supply voltage (V ) and detected voltage (V ) and generates an internal LVII interrupt signal or internal reset signal when V <...
Chapter 2 V850ES/FG2 Introduction 2.21 Voltage Regulator Features This product has an on-chip regulator to lower the power consumption and noise. This regulator supplies a voltage lower than the supply voltage V to the oscillator block and internal logic circuits (except the A/D converter and I/O buffers). The output voltage of the regulator is set to 2.5 V (±0.2 V).
Chapter 2 V850ES/FG2 Introduction 2.22 Flash Memory The following products are flash memory versions of the V850ES/FG2. Caution: There are differences in the amount of noise tolerance and noise radiation between flash memory versions and mask ROM versions. When considering changing from a flash memory version to a mask ROM version during the process from experimental manufacturing to mass production, make sure to sufficiently evaluate commercial samples (CS) (not engineering samples (ES)) of the mask ROM versions.
Chapter 2 V850ES/FG2 Introduction 2.23 ROM Mask Options Function Mask Options (Flash ROM Product) The flash memory versions in this product series have an option data area where a block subject to mask options is specified. When writing a program to a flash memory version, be sure to set the option data corresponding to the following option in the program at address 007AH as default data.
Chapter 2 V850ES/FG2 Introduction 2.24 On-chip Debug Unit (Flash Memory Versions only) The V850ES/FG2 includes an on-chip debug unit. By connecting an N-Wire emulator, on-chip debug- ging can be executed with the V850ES/FG2 alone. Caution: The following debug functions are supported by the V850ES/FG2, and whether they are usable or not differs depending on the debugger.
Page 65
Mask function Each signal can be masked. The correspondence with the mask functions of the debugger (ID850NWC) for the N-Wire emulator (IE- V850E1-CD-NW) of NEC Electronics is shown below. • NMI0 mask function:NMI pin • NMI1 mask function:WDT2 interrupt • NMI2 mask function:–...
Chapter 3 Pin Function of MTRC 3.2 List of Pin Functions Table 3-1: List of Pin Functions (1/2) Symbol Function Connection PMT00 I/O Port External PMT01 I/O Port External PMT02 I/O Port External PMT03 I/O Port External SM11 O - Hi-Z Meter1 PWM Output Signal (sin+) External SM12...
Page 68
Chapter 3 Pin Function of MTRC Table 3-1: List of Pin Functions (2/2) Symbol Function Connection PMT42/EXSCK1 IO/O I/O Port / Expand Pin for SCK External PMT43/EXCLO IO/O I/O Port / Expand Pin for System Clock External SMVDD1 Power Supply Input Voltage for Meter1, Meter2 External SMVSS1 Ground Potential for Meter1, Meter2...
Page 69
Chapter 3 Pin Function of MTRC Table 3-2: List of Pin Functions (1/2) Symbol Alternate Function I/O Circuit Recommended connection Input: Independently connect to MTV or MTV via a resistor PMT00 Output: Leave open Input: Independently connect to MTV or MTV via a resistor PMT01 Output: Leave open...
Page 70
Chapter 3 Pin Function of MTRC Table 3-2: List of Pin Functions (2/2) Symbol Alternate Function I/O Circuit Recommended connection Input: Independently connect to MTV or MTV via a resistor PMT30 Output: Leave open Input: Independently connect to MTV or MTV via a resistor PMT31 Output: Leave open...
Chapter 3 Pin Function of MTRC 3.3 Pin I/O Circuits Each type of port block diagram is as follows. Then, the type of each port is shown in each chapter. 3.3.1 Type A-1 Figure 3-2: Type A-1 PMMT PMMTmn PMTmn PMTmn Address 3.3.2 Type B-1...
Chapter 3 Pin Function of MTRC 3.3.10 Type SCK Figure 3-11: Type SCK P-ch pull-up disable 3.3.11 Type SI Figure 3-12: Type SI pull-down enable N-ch 3.3.12 Type SO Figure 3-13: Type SO Preliminary User’s Manual U17763EE1V1UD00...
Chapter 4 Port Functions 4.1 Setting Alternate Pin Functions Set “1” to the PMCmn bit of PMCm register to set the pin to the alternate pin function. Refer to the following table for setting the alternate pin function for every port pin. Not any port provides alternate pin function and therefore this registers has no PMCMTmn register.
Page 77
Chapter 4 Port Functions Table 4-1: Alternate Pin Functions (2/2) Setting value when selecting alternate function Alternate Port name pin name PMTmn PMMTmn PMCMTmn Remark Note 4 PMT40 EXSI1 Connect to SO only if MTCS = “0” Note 4 PMT41 EXSO1 Connect to SI only if MTCS = “0”...
Chapter 4 Port Functions 4.2 Port MT0 4.2.1 Port MT0 functions • 4-bit I/O Port • Port I/O data specified in 1-bit units Table 4-2: Port MT0 Functions Register Port Mode Alternate Function TYPE PORT PMT00 × × PMT01 × ×...
Chapter 4 Port Functions 4.2.2 Register Port Register 0 (PMT0) MTRC Port register 0 (MT0) is an 8-bit register that controls pin level read, output level write. It can be read and written in 8-bit unit. Figure 4-1: Port Register 0 (PMT0) Format Initial Address value...
Chapter 4 Port Functions 4.3 Port MT1 4.3.1 Port MT1 functions • 8-bit output port • Port I/O specified in 1-bit units (PMMT1 register) • Port mode/control mode (alternate function) specified in 1-bit units (PMCMT1 register) Table 4-3: Port MT1 Functions Register Port Mode Alternate Function...
Chapter 4 Port Functions 4.3.2 Registers Port Register 1 (PMT1) MTRC Port register 1 (MT1) is an 8-bit register that controls pin level read, output level write. It can be read and written in 8-bit unit. Figure 4-3: Port Register 1 (PMT1) Format Initial Address value...
Page 82
Chapter 4 Port Functions Port Mode Control Register (PMCMT1) It can be read and written in 8-bit unit. Figure 4-5: Port Mode Control Register 1 (PMCMT1) Format Initial Address value PMCMT1 PMCMT17 PMCMT16 PMCMT15 PMCMT14 PMCMT13 PMCMT12 PMCMT11 PMCMT10 0x2A 0x00 PMCMT1n PMMT1n...
Chapter 4 Port Functions 4.4 Port SM1/SM2 4.4.1 Port SM1/SM2 functions • 8-bit output port • Port mode/control mode (Hi-Z output as alternate function) specified in 1-bit units (SM12MC register) Table 4-4: Port MT2 Functions Register Port Mode Alternate Function TYPE PORT Hi-Z...
Chapter 4 Port Functions 4.5 Port MT2 4.5.1 Port MT2 functions • 8-bit output port • Port mode/control mode (alternate function) specified in 1-bit units (PMCMT2 register) • Hi-Z output controllable in 1-bit units (PMMT2, PMCMT2 register) Table 4-5: Port MT2 Functions Register Port Mode Alternate Function...
Chapter 4 Port Functions 4.5.2 Registers Port Register 2 (PMT2) MTRC Port register 2 (MT2) is an 8-bit register that controls pin level read, output level write. It can be read and written in 8-bit unit. Figure 4-7: Port Register 2 (PMT2) Format Initial Address value...
Page 86
Chapter 4 Port Functions Port Mode Control Register 2 (PMCMT2) It can be read and written in 8-bit unit. Figure 4-9: Port Mode Control Register 2 (PMCMT2) Format Initial Address value PMCMT2 PMCMT27 PMCMT26 PMCMT25 PMCMT24 PMCMT23 PMCMT22 PMCMT21 PMCMT20 0x2B 0x00 PMCMT2n...
Chapter 4 Port Functions 4.6 Port MT3 Caution: Some ports of are not connected to the D_Line pinout, therefore for at DJ2 n = 0 to 3 has effects only. 4.6.1 Port MT3 functions • 8-bit I/O port • Port I/O specified in 1-bit units Table 4-6: Port MT3 Functions Register Port Mode...
Chapter 4 Port Functions 4.6.2 Registers Port Register 3 (PMT3) MTRC Port register 3 (MT3) is an 8-bit register that controls pin level read, output level write. It can be read and written in 8-bit unit. Figure 4-10: Port Register 3 (PMT3) Format Initial Address value...
Chapter 4 Port Functions 4.7 Port MT4 4.7.1 Port MT4 functions • 4-bit I/O port • Port I/O specified in 1-bit units (PMMT4 register) • Port mode/control mode (alternate function) specified in 1-bit units (PMCMT4 register) Table 4-7: Port MT4 Functions Register Port Mode Alternate Function...
Chapter 4 Port Functions 4.7.2 Registers Port Register 4 (PMT4) MTRC Port register 4 (MT4) is an 8-bit register that controls pin level read, output level write. It can be read and written in 8-bit unit. Figure 4-12: Port Register 4 (PMT4) Format Initial Address value...
Page 91
Chapter 4 Port Functions Port Mode Control Register 4 (PMCMT4) It can be read and written in 8-bit unit. Figure 4-14: Port Mode Control Register 4 (PMCMT4) Format Initial Address value PMCMT4 PMCMT43 PMCMT42 PMCMT41 PMCMT40 0x2C 0x00 PMCMT43 PMCMT43 mode control I/O port EXCLO output PMCMT42...
Chapter 5 Clock Generator 5.1 Ring Oscillator To support a high frequency clock source for the MTRC an internal high speed Ring Oscillator is imple- mented in the MTRC. This Ring Oscillator is controlled with SFRs to realize stop, restart and calibra- tion.
Chapter 5 Clock Generator 5.2 Ring Oscillator Control Registers 5.2.1 RingOSC Control Register (MRCTL) The MRCTL register is an 8-bit register that controls the RingOSC operation. This register can be read or written in 8-bit units. However, bits 1 (MRCALSF) and 0 (MRCALERR) are read-only.
Page 94
Chapter 5 Clock Generator Figure 5-1: RingOSC Control Register for the Meter (MRCTL) Format (2/2) MRCALEN Ring Oscillator frequency calibration operation control Calibration disabled Calibration enabled Caution: After the MTRESET pin has been released, the MRCALEN bit can be written only one time.
Chapter 5 Clock Generator 5.2.2 RingOSC Calibration Register (MRCAL) The MRCAL register is a 5-bit register for the RingOSC calibration operation. This register can be read or written in 8-bit units. This register can be set in a range of 0x01to 0x1F. The frequency of RingOSC will be increased by the MRCAL register value.
Page 96
Chapter 5 Clock Generator Figure 5-3: Flowchart for Frequency Calibration FG2 pin settings (SOB1, SCKB1, SIB1, PCM0). Initial Settings Setting to form the specified pulse via PCM0 (Timer etc.) MTRESET=1 RingOSC oscillation start, enable MRINGCTL operation Set PCM0 pin=1 (after eliminating noise time of MTCSP pin) wait for eliminating noise time Set PCM0 pin=0 wait for oscillation stabilization time...
Page 97
Chapter 5 Clock Generator Figure 5-4: Timing Diagram for Frequency Calibration Ring Oscillator MTRESET pin eliminating noise time PCM0/CS pin Oscillation stabilization time 1st specified pulse 2nd specified pulse MRON bit MRCALSF bit "H" MRCALEN bit RingOSC oscillation start enable MRINGCTL operation RingOSC count start Calibration...
Chapter 5 Clock Generator 5.4 MTRESET Release of the MTRC If the MTRC is reset, the MRCAL register will be reset, too. Therefore the beforehand stored MRCAL register value has to be written back. Please see the following procedure for the MTRESET Release of the MTRC. Figure 5-5: Flowchart for MTRESET Release Ring Oscillator is stopped Initial Settings...
Page 99
Chapter 5 Clock Generator Figure 5-6: Timing for MTRES Release Autocalibration won't performed even for rising edge at PCM0/CS pin Ring Oscillator MTRESET pin eliminating noise time PCM0/CS pin Oscillation stabilization time MRON bit MRCALSF bit "L" MRCALEN bit RingOSC oscillation start enable MRINGCTL operation...
Chapter 5 Clock Generator 5.5 Standby Mode Release of the Ring Oscillator To save power, the ring oscillator could be switched off via setting the MRON bit of the MRCTL register = 0. During the time of the stopped Ring Oscillator, the data retention of the MRCAL register can’t be guar- anteed.
Page 101
Chapter 5 Clock Generator Figure 5-8: Timing Diagram for Standby Mode Release Autocalibration won't performed even for rising edge at PCM0/CS pin (Standby mode) Ring Oscillator MTRESET pin Eliminating noise time PCM0/CS pin Oscillation stabilization time MRON bit MRCALSF bit "L"...
Chapter 5 Clock Generator 5.6 Cautions The calibration has to be performed at the specified conditions (Temperature and Voltage). If performing at other condition, the accuracy of the ring oscillator cannot be guaranteed. The basic calibration pulse must have the specified High and Low pulse width at the PCM0/CS pin.
Chapter 6 Serial Interface 6.1 Communication Protocol The CSI of the MTRC is fixed to the following operation mode: Communication protocol: Clocked synchronous serial interface • Data length: 8-bits fixed • Transfer direction: MSB first • Transfer mode: Transmit/Receive mode •...
Chapter 6 Serial Interface 6.2.1 Command Byte This is the 1st Received Data at communication start, that was sent from the FG2 device. Command AUTO R/W Selection of MTRC Read Write AUTO Operation mode of Communication Disable Continuous transfer Enable Continuous transfer A5 to A0 Address define address data as 6-bit format...
Chapter 6 Serial Interface 6.3 Serial I/F Operation 6.3.1 Read from MTRC operation After PCM0/CS = “1”, the MTRC is waiting for the command byte via the SI pin. If the read command is received the MTRC outputs data via the SO pin, which were specified with the address bits A5 to A0. When continuous transfer is selected (Auto bit of Command Byte = “1”), the MTRC outputs next data, at the incremented address via the SO pin.
Chapter 6 Serial Interface 6.3.2 Timing of MTRC Read operation Figure 6-2: MTRC Read Operation (Auto=0) After Last data transfer start, FG2 can set CS = 0 (last Data byte will be sent from MTRC) Dummy Write Dummy Write READ command READ command READ data READ data...
Chapter 6 Serial Interface 6.3.3 MTRC Write operation After CS pin = “1", MTRC received write command/address via SI pin. After receive command, MTRC write next receive data, which is specified address. When select continuous mode (Auto = “1”), next receive data will be written 1 incremented address. When select disable continuous mode (Auto = “0”), After receive 1 byte data, MTRC decide that next received data as command/address Figure 6-4: Operation Flow on MTRC Writing...
Chapter 6 Serial Interface 6.3.4 Timing of MTRC Write operation Figure 6-5: MTRC Write Operation (Auto bit = 0) After Last data transfer start, FG2 can set CS = 0 (last Data byte will be received from MTRC) WRITE command WRITE data WRITE command WRITE data...
Chapter 6 Serial Interface 6.4 External CSIB1 Function (EXCSI1) If the PMT4 port is configured for peripheral mode the PCM0/CS signal controls the output function of the external CSIB1 (EXCSI1) functionality. The EXCSIB1 provide the FG2 CSIB1 communication for external components, too. This function can be used, if there’s no internal communication between the FG2 device and the MTRC (refer to Figure 1-2, “CS Functionality,”...
Chapter 6 Serial Interface 6.5 Internal CSIB1 Function 6.5.1 Operation of Serial Interface The communication I/F of the MTRC is fixed to the following settings: • I/F: • Mode: Slave mode • Data length: 8-bits (support continuous data transfer, therefore the FG2 CSIB1 can use 16-bit data length) •...
Page 112
Chapter 6 Serial Interface Basic operation The MTRC serial interface is only working in slave mode. When iSCK clock is applied the transfer operation is started. There’s a delay between SCK of the CSIB1 from FG2 and the iSCK of the MTRC. The iSCK signal is synchronised with the MTRC Ring Oscillator.
Chapter 7 Meter Controller Driver 7.2 Register Setting 7.2.1 Free Running Counter m (MCNTm, m = 0, 1) MCNTm is an 8-bit free running counter. This counter will be incremented by f (n = 0, 1). This fre- quency is generated from CLK1 and the selected prescaler. The counter starts by setting the PCEm bit =”1”...
Chapter 7 Meter Controller Driver 7.2.2 Sin Compare Register n0 (MCMPn0, n = 1 to 6) MCMPn0 is an 8-bit register, which continuously compares its value with the MCNTm value. When the two values match, a match signal of sin side of meter n is generated. MCMP10 to MCMP40 are compared with MCNT0, MCMP50 to MCMP60 are compared with MCNT1.
Chapter 7 Meter Controller Driver 7.2.3 Cos Compare Register n1 (MCMPn1, n = 1 to 6) MCMPn1 is an 8-bit register, with the same functionality of the MCMPn0 register but for the cos signal. When the above two values match, a match signal of cos side of meter n is generated. MCMP11 to MCMP41 are compared with MCNT0, MCMP51 to MCMP61 are compared with MCNT1.
Chapter 7 Meter Controller Driver 7.2.4 Compare Control Register (MCMPCn, n = 1 to 6) MCMPCn is an 8-bit register that controls the operation of the compare register and output direction of the PWM pin. TENn bit becomes “0” automatically after finished transmission from master register to slave register.
Page 119
Chapter 7 Meter Controller Driver Figure 7-5: Compare Control Register MCMPCn Format (2/2) ADBn1 Control of 1-bit addition circuit (cos side of meter n) No 1-bit addition 1-bit addition ADBn0 Control of 1-bit addition circuit (sin side of meter n) No 1-bit addition 1-bit addition The 1-bit addition adds 1 further PWM tick to the PWM value that was set with the MCMPnm register,...
Chapter 7 Meter Controller Driver 7.2.5 Timer Mode Control Register (MCNTm) (m = 0, 1) MCNTCm is an 8-bit register that controls the operation of the timer counter MCNTm. MCNTCm is set with an 8-bit memory instruction. MTRESET =”0” clears MCNTCm to 00H. Figure 7-6: Timer Mode Control Register (MCNTm) Format (1/2) Initial Address...
Chapter 7 Meter Controller Driver 7.3 Operation 7.3.1 Count timing The counter is counted up by the rising edge of the f clock signal that is selected by the SMCLm2 to 0 bits. The counting operation is enabled or disabled by the PCEm bit of the timer mode control register. The MCNTm register is cleared by MTRESET = “0”...
Chapter 7 Meter Controller Driver 7.3.2 Operation of 1-bit addition circuit 1-bit addition to the PWM output is activated by setting ADBn1, ADBn0 bit of the MCMPCn register to “1”. 1-bit addition mode repeats 1-bit addition/non-addition to PWM output alternately upon MCNTm over- flow output, and enables the state of PWM output between current compare value N and the next com- pare value N+1.
Chapter 7 Meter Controller Driver 7.3.3 PWM output with 1 clock shifted operation If the output of the sin/cos signal of meter channel 1 to 4 (5 and 6) rises/falls internally as indicated by the broken line, the SM11 to SM44 (SM51 to SM64) pins always shift the rising edge of the output pin by 1 count clock of the MCNTm counter.
Chapter 7 Meter Controller Driver 7.4 Method of Using Figure 7-11: Using of the SM MCMPn1 setting value MCMPn0 setting value MCNTm SMn1 SMn2 "L" SMn3 SMn4 "L" TENn MCMPn0/MCMPn1, MCMPn0/MCMPn1, (6) ~ (8) (1) ~ (4) ADBn0/ADBn1, ADBn0/ADBn1, DIRn0/DIRn1 transfer DIRn0/DIRn1 transfer Setting SM pin to output mode by Port mode register assigned to SMn1 to SMn4 output Input clock is supplied to the macro by setting CAE = “1”...
Chapter 7 Meter Controller Driver 7.4.1 Macro Standby operation By setting PCE1 and PCE0/CAE = “0” of MCMTCn register, the timer stops count operation and the PWM output is set to “0”. After that the macro is in power saving standby mode state. Figure 7-12: SM Standby Operation MCMPn0/MCMP1 MCMPn0/MCMP1...
MTRC RESET RESET IC V850ES/DJ2 This circuitry is the best choose for safety applications, but consumes more power in power save modes. If the FG2 will be reset via an internal (LVI or WD) or external function (RESET), the Pxx pin will be set into its reset mode (input) and the pull down resistor will set the MTRC into reset state, too.
MTRC RESET RESET IC V850ES/DJ2 This circuitry saves more power, but at internal reset in the FG2 device, the MTRC will be left active with its last configured settings. If MTVDD will be applied, the signal at MTRESET pin will release the reset mode of the MTRC. The capacitor will cause a delay between MTVDD apply and MTRESET release, to ensure the minimum specified time between this points of time.
Chapter 9 Electrical Specification 9.2 Capacitance =25°C, =MTV =SMV =MTV =SMV =0 V) REF0 Parameter Symbol Conditions MIN. TYP. MAX. Unit Input f=1 MHz, Other than unmeasured pins:0 V capacitance f=1 MHz, Other than unmeasured pins:0 V Input / Output PMT00-PMT03, PMT30-PMT37, capacitance PMT40-PMT43...
Chapter 9 Electrical Specification 9.5 Voltage Regulator Characteristics =MTV =SMV =4.0 to 5.5 V, REF0 =MTV =SMV =0 V, =-40 to +85°C) Parameter Symbol Conditions MIN. TYP. MAX. Unit Input voltage Output voltage After V reaches MIN.: 3.5 V ± Connect C = 4.7 µF Lock time 20% to REGC...
Chapter 9 Electrical Specification 9.6.3 Specific Power Supply Current =MTV =SMV =4.0 to 5.5 V =4.0 to 5.5 V REF0 =MTV =SMV =0 V =-40 to +85°C) Parameter Symbol Conditions MIN. TYP. MAX. Unit =20 MHz (OSC=5 MHz) 32.5 MTRC-Ring Oscillator On IDD1 Operating mode All peripherals stopped MTRC-Ring Oscillator On...
Chapter 9 Electrical Specification 9.6.4 Data Retention Characteristics =MTV =SMV =2.0 to 5.5 V, REF0 =MTV =SMV =0 V, =-40 to +85°C) Parameter Symbol Conditions MIN. TYP. MAX. Unit Data retention voltage In STOP mode DDDR Data retention current = 2.0 V µA DDDR DDDR...
Chapter 9 Electrical Specification 9.7 AC Characteristics AC Test Input Measurement Points (V , AV , EV , MTV , MTV IH (MIN.) IH (MIN.) Measurement points IL (MAX.) IL (MAX.) AC Test Output Measurement Points OH (MIN.) OH (MIN.) Measurement points OL (MAX.) OL (MAX.)
Chapter 9 Electrical Specification CSI1 CSI1 can be only used in Master Mode. (a) Master Mode =MTV =SMV =4.0 to 5.5 V, REF0 =MTV =SMV =0 V, =-40 to +85°C, C =50 pF) Parameter Symbol Conditions MIN. MAX. Unit EXSCK1 cycle time 250/1000 KCY1 /2 - 30...
Chapter 9 Electrical Specification 9.7.7 CAN timing =MTV =SMV =4.0 to 5.5 V, REF0 =MTV =SMV =0 V, =-40 to +85°C, C =50 pF) Parameter Symbol Conditions MIN. MAX. Unit Transfer rate Mbps Internal delay time Internal delay time (t ) = Internal transfer delay time (t ) + Internal receive delay time (t NODE...
Chapter 9 Electrical Specification 9.7.8 AD Converter =MTV =SMV =4.0 to 5.5 V, REF0 =MTV =SMV =0 V, =-40 to +85°C, C =50 pF) Parameter Symbol Conditions MIN. TYP. MAX. Unit Resolution 4.0 ≤ AV ≤ 5.5 V ±0.15 ±0.45 %FSR Overall error REF0...
Chapter 9 Electrical Specification 9.7.10 RAM retention flag =MTV =SMV =4.0 to 5.5 V, REF0 =MTV =SMV =0 V, =-40 to +85°C, C =50 pF) Parameter Symbol Conditions MIN. TYP. MAX. Unit Detection voltage RAMH = 0 V → 3.5 V Supply voltage rise time 0.002 1,800...
Chapter 9 Electrical Specification 9.7.11 Flash Memory Programming characteristics =MTV =SMV =4.0 to 5.5 V, REF0 =MTV =SMV =0 V, =-40 to +85°C, C =50 pF) Basic characteristics Parameter Symbol Conditions MIN. TYP. MAX. Unit Operating frequency Supply voltage Number of writes Times Input voltage, high FLMD0...
Chapter 10 Package Drawings Figure 10-1: V850ES/DJ2 144-PIN PLASTIC LQFP (FINE PITCH) (20x20) detail of lead end NOTE ITEM MILLIMETERS Each lead centerline is located within 0.08 mm of 22.0±0.2 its true position (T.P.) at maximum material condition. 20.0±0.2 20.0±0.2 22.0±0.2...
Solder this product under the following recommended conditions. For details of the recommended soldering conditions, refer to information document Semiconductor Device: Mounting Technology Manual (C10535E). For soldering methods and conditions other than those recommended please consult NEC. Symbol of Recommended Soldering Method Soldering Condition...
Page 159
Facsimile Message Although NEC has taken all possible steps to ensure that the documentation supplied to our customers is complete, bug free and up-to-date, we readily accept that From: errors may occur. Despite all the care and precautions we've taken, you may Name encounter problems in the documentation.