| The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers. |
µPD78320,78322 16/8-BIT SINGLE-CHIP MICROCONTROLLER DESCRIPT
Top Searches for this datasheetINTEGRATED CIRCUIT µPD78320,78322 16/8-BIT SINGLE-CHIP MICROCONTROLLER DESCRIPTION µPD78322 16-/8-bit single-chip microcontroller that incorporates high-performance 16-bit CPU. µPD78322 78K/III series. realtime pulse unit realtime pulse control required motor control, converter, ROM, have been integrated into chip. µPD78322 incorporates 16K-byte mask 640-byte RAM. µPD78320 provided ROM-less product µPD78322. Also, µPD78P322 provided on-chip PROM product. Detailed information about product features specifications found following document. µPD78322 User's Manual IEU-1248 FEATURES Internal 16-bit architecture external 8-bit data High-speed processing pipeline control instruction prefetch Minimum instruction execution time: (with external clock operation) Instruction suitable control operations (µPD78312 upward compatible) Multiplication/division instruction bits bits, bits bits) manipulation instruction String instruction, etc. On-chip high-function interrupt controller 3-level priority specifiable 3-type interrupt servicing mode selectable (Vectored interrupt function, context switching function, macro service function) Variety peripheral hardware Realtime pulse unit 8-channel, 10-bit converter Watchdog timer Powerful serial interface (with on-chip dedicated baud rate generator) UART channel (NEC Standard Serial Interface) 3-wire serial channel APPLICATIONS Motor control devices Unless there particular notices, µPD78322 described representative model this document. information this document subject change without notice. Document U10455EJ7V0DS00 (7th edition) (Previous IC-2354) Date Published November 1995 Printed Japan mark shows major revised points. 1989 µPD78320, 78322 ORDERING INFORMATION Part Number Package 80-pin 74-pin 68-pin 80-pin 74-pin 68-pin plastic plastic plastic plastic plastic plastic mil) mil) Internal None None None Mask Mask Mask µPD78320GF-3B9 µPD78320GJ-5BJ µPD78320L Remark indicates code number. µPD78320, 78322 CONFIGURATION 68-pin plastic µPD78320L mil) P27/INTP6/TI P26/INTP5 P25/INTP4 P24/INTP3 P23/INTP2 P22/INTP1 P21/INTP0 P77/AN7 P76/AN6 P75/AN5 P74/AN4 P73/AN3 P72/AN2 P20/NMI P30/T P31/R P32/SO/SB0 P33/SI/SB1 P34/SCK P80/TO00 P81/TO01 P82/TO02 P83/TO03 P84/TO10 P85/TO11 RESET WDTO RTP0/P00 P71/AN1 P70/AN0 P57/A15 P56/A14 P55/A13 P54/A12 P53/A11 P52/A10 P51/A9 P50/A8 P47/AD7 P46/AD6 P45/AD5 P44/AD4 P43/AD3 P92/TAS P40/AD0 P41/AD1 P93/TMD RTP1/P01 RTP2/P02 RTP3/P03 RTP4/P04 RTP5/P05 RTP6/P06 RTP7/P07 P42/AD2 P91/WR P90/RD ASTB µPD78320, 78322 74-pin plastic µPD78320GJ-5BJ P07/RTP7 P06/RTP6 P05/RTP5 P04/RTP4 P03/RTP3 P02/RTP2 P01/RTP1 P93/TMD P42/AD2 P41/AD1 P40/AD0 P92/TAS P91/WR P90/RD ASTB P43/AD3 P44/AD4 P45/AD5 P46/AD6 P47/AD7 P50/A8 P51/A9 P52/A10 P53/A11 P54/A12 P55/A13 P56/A14 P57/A15 P70/AN0 P71/AN1 P00/RTP0 WDTO RESET P85/TO11 P84/TO10 P83/TO03 P82/TO02 P81/TO01 P80/TO00 P34/SCK P33/SI/SB1 P32/SO/SB0 P31/R P30/T P27/INTP6/TI P20/NMI P21/INTP0 P22/INTP1 P23/INTP2 P24/INTP3 P25/INTP4 P26/INTP5 P72/AN2 P73/AN3 P74/AN4 P75/AN5 P76/AN6 P77/AN7 Caution should connected noise control (can also left open). µPD78320, 78322 80-pin plastic µPD78320GF-3B9 P27/INTP6/TI P30/TxD P31/RxD P32/SO/SB0 P33/SI/SB1 P34/SCK P80/TO00 P81/TO01 P82/TO02 P83/TO03 P84/TO10 P85/TO11 RESET WDTO RTP0/P00 RTP1/P01 P26/INTP5 P25/INTP4 P24/INTP3 P23/INTP2 P22/INTP1 P21/INTP0 P20/NMI AVDD AVREF P77/AN7 P76/AN6 P75/AN5 P74/AN4 P73/AN3 P72/AN2 P71/AN1 P70/AN0 AVSS P57/A15 P56/A14 P55/A13 P54/A12 P53/A11 P52/A10 P51/A9 P50/A8 P47/AD7 P46/AD6 P45/AD5 P44/AD4 P43/AD3 P42/AD2 Caution should connected noise control (can also left open). RTP3/P03 RTP4/P04 RTP5/P05 RTP6/P06 RTP7/P07 P93/TMD P92/TAS P91/WR P90/RD ASTB P40/AD0 P41/AD1 RTP2/P02 µPD78320, 78322 INTP0 INTP6 RTP0 RTP7 SB0/SO SB1/SI TO00 TO03 TO10, TO11 Port0 Port2 Port3 Port4 Port5 Port7 Port8 Port9 Nonmaskable Interrupt Interrupt From Peripherals Realtime Port Timer Input Transmit Data Receive Data Serial Bus/Serial Output Serial Bus/Serial Input Serial Clock Timer Output RESET WDTO ASTB AVREF AVSS AVDD Reset Crystal Watchdog Timer Output External Access Turbo Mode Turbo Access Strobe Write Strobe Read Strobe Address Strobe Address/Data Address Analog Input Analog Reference Voltage Analog Analog Power Supply Ground Non-connection µPD78320, 78322 GENERAL DESCRIPTION FUNCTIONS Basic instructions Minimum instruction execution time (with external clock operation) 16384 bits (µPD78322) None (µPD78320) bits bytes bits banks (memory mapping) Input port Input/output port (dual-function analog input: (µPD78322) (µPD78320) 18-/16-bit free running timer 16-bit timer/event counter 16-bit compare register 18-bit capture register 18-bit capture/compare register Realtime output port Internal memory Memory space General registers line Realtime pulse unit Serial communication interface converter Serial interface with dedicated baud rate generator UART channel (NEC Serial Interface) channel 10-bit resolution analog inputs) External internal (dual-function external servicing modes (vectored interrupt function, context switching function, macro service function) Internal STOP mode/HALT mode 16-bit transfer/operation instruction, multiplication/division instruction 16), manipulation instruction, string instruction, etc. On-chip watchdog timer 68-pin plastic mil) 74-pin plastic 80-pin plastic Interrupt Test factor Standby Instruction Others Package µPD78320, 78322 DIFFERENCES BETWEEN µPD78322 78320 Product Name Item Internal Input line Input /output µPD78322 bytes (dual-function analog input: Specifiable 8-bit unit. Functions multiplexed address/data buses (AD0 AD7) external memory expansion mode. Specifiable bit-wise. Functions address A15) external memory expansion mode. Specifiable bit-wise. external memory expansion mode, function strobe signal output strobe signal output, respectively. external memory high-speed fetch mode, function output output, respectively. Port mode 8-bit unit µPD78320 None Port (P40 P47) Functions always multiplexed address/data buses. Port (P50 P57) Functions always address bus. Port (P90 P93) Always function strobe strobe signal output, respectively. Memory expansion mode register (MM) Port mode register Port mode bit-wise. (PM5) µPD78322 emulation mode, turbo access manager (µPD71P301)Note pins controlled port port emulation pins. Note Maintenance product BLOCK DIAGRAM Main (P20) PROGRAMMABLE INTERRUPT CONTROLLER GENERAL REGISTERS bytes DATA MEMORY bytes ROM/Peripheral RESET INTP0-INTP5 (P21-P26) Note bytes/ Peripheral bytes SYSTEM CONTROL CONTROL PREFETCH CONTROL ASTB (P90) (P91) (P92) (P93) A8-A15 (P50-P57) AD0-AD7 (P40-P47) (P80) TO00 (P81) TO01 (P82) TO02 (P83) TO03 (P84) TO10 (P85) TO11 (P27) TI/INTP6 TIMER/COUNTER UNIT (REALTIME PULSE UNIT) MICRO SEQUENCE CONTROL MICRO ROM. (P34) (P32) SO/SB0 (P33) SI/SB1 (P30) (P31) SERIAL INTERFACE (SBI) (UART) CONVERTER BITS) PORT P90-P93 P80-P85 P70-P77 P50-P57 P40-P47 P30-P34 P20-P27 P00-P07 (REALTIME PORT) AN0-AN7 (P70-P77) AVDD AVSS AVREF WDTO µPD78320, 78322 Note µPD78320 does incorporate ROM. µPD78320, 78322 CONTENTS LIST FUNCTIONS PORT PINS NON-PORT PINS INPUT/OUTPUT CIRCUITS RECOMMENDED CONNECTION UNUSED PINS ARCHITECTURE MEMORY SPACE PROCESSOR REGISTERS 2.2.1 2.2.2 2.2.3 2.3.1 2.3.2 2.3.3 Control Registers General Registers Special Function Registers (SFR) General Register Addressing Short Direct Addressing Special Function Register (SFR) Addressing DATA MEMORY ADDRESSING BLOCK FUNCTIONS CONTROL UNIT (BCU) EXECUTION UNIT (EXU) ROM/RAM INTERRUPT CONTROLLER PORT FUNCTIONS CLOCK GENERATOR REALTIME PULSE UNIT (RPU) 3.7.1 3.7.2 Configuration Realtime Output Function CONVERTER SERIAL INTERFACE 3.10 WATCHDOG TIMER INTERRUPT FUNCTIONS OVERVIEW MACRO SERVICE CONTEXT SWITCHING FUNCTION 4.3.1 4.3.2 Context Switching Function Interrupt Request Context Switching Function BRKCS Instruction STANDBY FUNCTIONS EXTERNAL DEVICE EXPANSION FUNCTION OPERATION AFTER RESET INSTRUCTION ELECTRICAL SPECIFICATIONS µPD78320, 78322 PACKAGE DRAWINGS RECOMMENDED SOLDERING CONDITIONS APPENDIX LIST 78K/ SERIES PRODUCTS APPENDIX TOOLS DEVELOPMENT TOOL EVALUATION TOOL EMBEDDED SOFTWARE µPD78320, 78322 LIST FUNCTIONS PORT PINS DualFunction Name Port 8-bit input/output port Input/output specified bit-wise Also serves realtime output port. Function Input/ output RTP0 RTP7 INTP0 INTP1 Input/ output Port 8-bit input/output port Input/output specified 8-bit unit. Port 8-bit input/output port Input/output specified bit-wise Port 8-bit dedicated input port Input/ output Port 5-bit input/output port Input/output specified bit-wise Input Port 8-bit dedicated input port INTP2 INTP3 INTP4 INTP5 INTP6/TI SO/SB0 SI/SB1 Input/ output Input TO00 TO01 Input/ output Port 6-bit input/output port Input/output specified bit-wise TO02 TO03 TO10 TO11 Input/ output Port 4-bit input/output port Input/output specified bit-wise µPD78320, 78322 NON-PORT PINS (1/2) DualFunction Name Function Realtime output port which generates pulses synchronization with trigger signal transmitted from realtime pulse unit (RPU). Nonmaskable interrupot request input capable specifying effective rising falling edge mode register. RTP0 RTP7 Output INTP0 INTP1 INTP2 INTP3 INTP4 INTP5 INTP6 Input Input External interrupt request input capable specifying effective edgy mode register. P27/TI Input Output Input Output Input Input /output Input /output Input /output Output External count clock input timer (TM1) Serial data output asynchronous serial interface (UART) Serial data input asynchronous serial interface (UART) Serial data output clocked serial interface 3-wire mode Serial data input clocked serial interface 3-wire mode Serial data input/output clocked serial interface mode P27/INTP6 P32/SB0 P33/SB1 P32/SO P33/SI Serial clock input/output clocked serial interface TO00 TO01 TO02 TO03 TO10 TO11 Multiplexed address/data external memory expansion Address external memory expansion Output Pulse output from realtime pulse unit Strobe signal output generated external memory read operation Output Strobe signal output generated external memory write operation Control signal output generated access turbo access manager µPD71P301Note Output Output Signal output indicating that watchdog timer generated nonmascable interrupt. Timing signal output generated externally latching lower address information output from pins order access external memory. WDTO ASTB Note Maintenance product µPD78320, 78322 NON- PORT PINS (2/2) DualFunction Name Function µPD78322, normally connected VDD. Connecting sets ROM-less mode accesses external memory. µPD78320, this should fixed (low level). level cannot changed during operation. converter analog input converter reference voltage input converter analog power supply converter System reset input Crystal connect sysem clock oscillation. When external clock supplied, clock input inverted clock input also left open.) Positive power supply internally connected. Connected (GND) (can also left open). Input AVREF AVDD AVSS RESET Input Input Input Input µPD78320, 78322 INPUT/OUTPUT CIRCUITS RECOMMENDED CONNECTION UNUSED PINS input/output circuits, partly simplified, shown Table Figure 1-1. Table 1-1. Circuit Types Pins their Recommended Connection Methods when Unused Input/Output Circuit Type Recommended Connection Method Input mode Individually connected resistor Output mode Leave open Connected P07/RTP0 RTP7 P20/NMI P26/INTP0 INTP5 P27/INTP6/TI P30/TXD P31/RXD P32/SO/SB0 P33/SI/SB1 P34/SCK P47/AD0 P57/A8 P77/AN0 P83/TO00 TO05 P84, P85/TO10, TO11 P90/RD P91/WR P92/TAS P93/TMD WDTO ASTB RESET AVREF, AVSS AVDD Individually connected resistor Output mode Leave open Input mode Input mode Individually connected resistor Output mode Leave open Connected Leave open Connected Connected Connected (can also left open) µPD78320, 78322 Figure 1-1. Input/Output Circuits Type Type data P-ch IN/OUT P-ch N-ch input enable output disable N-ch Type Type data P-ch output disable N-ch IN/OUT Schmitt-triggered input having hysteresis characteristics. Type P-ch N-ch Vref (Threshold Voltage) input enable P-ch N-ch Type Comparator Type data P-ch output disable N-ch Push-pull output which become high-impedance output (with both P-ch N-ch off) µPD78320, 78322 ARCHITECTURE MEMORY SPACE µPD78322 maximum bytes memory addressed (see Figure 2-1). Program fetches performed within area from 0000H FDFFH. However, when external memory expansion implemented area from FE00H FFFFH (main special function register area), program fetches also performed this area. this case, program fetch performed external memory, main special function registers. Vector table area Interrupt request from peripheral hardware, reset input, external interrupt request interrupt branch address break instruction stored 0000H 003FH 64-byte area. Generation interrupt request sets even address content each table lower bits program counter (PC) address content higher bits, branch made. Interrupt Source RESET TMF0 EXF0 EXF1 EXF2 EXF3 EXF4/CCFX0 EXF5/CCFX1 EXF6/TI CMF00 CMF01 CMF02 CMF03 CMF10 CMF11 CSIIF Operation code Vector Table Address 0000H 0002H 0004H 0006H 0008H 000AH 000CH 000EH 0010H 0012H 0014H 0016H 0018H 001AH 001CH 001EH 0020H 0024H 0026H 0028H 002AH 003CH 003EH (RESET input) (NMI input) (Watchdog timer) (Realtime pulse unit) (INTP0 input) (INTP1 input) (INTP2 input) (INTP3 input) (INTP4 input/realtime pulse unit) (INTP5 input/realtime pulse unit) (INTP6/TI input) (Realtime pulse unit) (Realtime pulse unit) (Realtime pulse unit) (Realtime pulse unit) (Realtime pulse unit) (Realtime pulse unit) (Serial receive complete) (Serial send complete) (Clocked serial interface) (A/D converter) trap (Break instruction) (TPF) control word (CCW) 8002H 803FH external memory area used interrupt vector table place 0002H 003FH. µPD78320, 78322 CALLT table area tables call addresses 1-byte call instruction (CALLT) stored 0040H 007FH 64-byte area. (TPF) control word (CCW) 8040H 807FH external memory area used CALLT instruction table place 0040H 007FH. CALLF entry area 0800H 0FFFH area directly subroutine-called 2-byte call instruction (CALLF). Internal area 640-byte built FC80H FEFFH area. This area composed following RAMs. Peripheral FC80H FDFFH (384 bytes) Main FE00H FEFFH (256 bytes) main accessed high speed. main area, macro service control word general register group composed register banks mapped onto bytes from FE06H FE2BH bytes from FE80H FEFFH, respectively. Special function register (SFR) area Registers having specially assigned functions, such on-chip peripheral hardware mode registers control registers, mapped FF00H FFFFH area. Addresses without mapped registers cannot accessed. External memory area µPD78322 external memories (ROM, RAM) 48K-byte (4000H FFFFH) area gradually. µPD78320 connect external memories (ROM, RAM) 64K-byte (0000H FFFFH) area. Each external memory accessed using P40/AD0 P47/AD7 (multiplexed address/data bus), P50/A8 P57/ (address bus) ASTB signals. external access area mapped FFD0H FFDFH 16-byte area special function register (SFR). this way, external memory accessed addressing. Dedicated pins (TAS pins) provided connect turbo access manager (µPD71P301)Note. µPD71P301 used, program processing speed equal that internal obtained. Note Maintenance product Figure 2-1. Memory (µPD78322) FFFFH FF00H FEFFH Special Function Register (SFR) (256 µPD78320 µPD78322 ROM-Less Mode FEFFH FE80H General Register (128 Main (256 FE00H Data Memory FDFFH Peripheral (384 FC80H FC7FH Memory Space (64K Program Memory Data Memory FE2BH FE06H Macro Service Control Data Area (640 FC80H 3FFFH External MemoryNote (48256 Program Area 1000H 0FFFH 0800H 07FFH 0080H 007FH CALLT Instruction Table Area 0040H 003FH Vector Table Area 0FFFH CALLF Instruction Entry Area (2048 Program Area External Memory (64640 4000H 3FFFH Program Memory Data Memory Internal (16384 µPD78320, 78322 0000H 0000H 0000H Note Accessed external memory expansion mode. Caution word access (including stack operations) main area (FE00H-FEFFH), address that specifies operand must even value. µPD78320, 78322 PROCESSOR REGISTERS processor registers consist mainly three groups. They general registers consisting banks sixteen 8bit registers, control registers consisting 8-bit register three 16-bit registers, special function registers such peripheral hardware mode registers. Figure 2-2. Register Configuration Control Registers General Registers Special Function Registers Remark CCWs control registers mapped special function register (SFR) area. µPD78320, 78322 2.2.1 Control Register control registers carry dedicated functions such control program sequence, status stack memory, modification operand addressing. They consist three 16-bit registers 8-bit register. Program counter (PC) This 16-bit register which holds address information next program executed. normally incremented according number bytes instruction fetched. instruction with data branch executed, immediate data register content set. RESET input sets branches data 0000H 0001H reset vector tables Program status word (PSW) This 16-bit register consisting various flags which reset result instruction execution. Read/ write access carried units higher bits (PSWH) lower bits (PSWL). Each flag manipulated using manipulation instruction. interrupt request made instruction executed, data automatically saved stack recovered RETI RETB instruction. bits reset RESET input. Figure 2-3. Format PSWH PSWL RBS2 RBS1 RBS0 Interrupt priority level transition flag (LT) This flag used control interrupt priority. normal operation interrupt control circuit, this must manipulated program. Carry flag (CY) carry generated result execution operation instruction borrow generated into this flag other cases, this flag reset This flag tested conditional branch instruction. When manipulation instruction executed, this flag functions accumulator. Zero flag When operation result zero, this flag other cases, this flag reset This flag tested conditional branch instruction. Sign flag When operation result "1", this flag When "0", this flag reset This flag tested conditional branch instruction. Parity/overflow flag (P/V) Only when overflow underflow occurs two's complement during execution arithmetic operation instruction, this flag other cases, reset (overflow flag operation). number operation result even during execution logic operation instruction, this flag number odd, this flag reset (parity flag operation). This flag tested conditional branch instruction. µPD78320, 78322 Auxiliary carry flag (AC) carry generated result operation borrow generated into this flag other cases, this flag reset This flag tested conditional branch instruction. Register select flag (RSS) This flag used specify general registers which function shown Table 2-1, value determines relationship between functional register absolute register. Thus, another register used switching flag. Interrupt request enable flag (IE) This flag used indicate interrupt request enable/disable. This flag execution instruction reset execution instruction acceptance interrupt. Register bank select flag (RBS0 RBS2) This 3-bit flag select eight register banks (RBANK0 RBANK7). User flag (UF) This flag reset user program used program control. Stack pointer (SP) This 16-bit register which holds first address stack area (LIFO format) memory. manipulated dedicated instruction. decremented before write (save) operation into stack memory incremented after read (restore) operation from stack memory. Since becomes indeterminate RESET input, must before subroutine call, etc. µPD78320, 78322 control word (CCW) This 8-bit register consisting control related flags. mapped special function register area controlled software. bits reset RESET input. Figure 2-4. Format Table position flag (TPF) This flag used specify interrupt vector table area memory area used CALLT instruction table area. been reset after application RESET input, 0000H 007FH address used each table area. 8002H 807FH address external memory area place 0002H 007FH address used each table area setting using software. vector tables instruction, operation code trap interrupt reset input fixed 003EH, 003CH 0000H, respectively, they affected TPF. 2.2.2 General Registers These 128-byte registers mapped special area (FE80H FEFFH) internal space. They consist eight register banks. general register bank consists sixteen 8-bit registers. Figure 2-5. General Register Memory Location 8-Bit Processing FEFFH RBNK0 RBNK1 RBNK2 RBNK3 RBNK4 RBNK5 RBNK6 FE80H RBNK7 16-Bit Processing (FH) (DH) (BH) (9H) (7H) (5H) (3H) (1H) (EH) (CH) (AH) (8H) (6H) (4H) (2H) (0H) µPD78320, 78322 sixteen 8-bit registers function eight 16-bit register pairs (RP0 RP7) well. shown Table 2-1, sixteen 8-bit registers characterized functional names. register functions lower half 16-bit accumulator, register functions upper half 8-bit 16-bit accumulator, registers function counters, function address register pairs. particular register functions base register register functions user stack pointer. unique function register changes shown Table according value register select flag (RSS) PSW. Thus, program described functional name, another register used means flag. µPD78322 carry processed data addressing operations, implied addressing functional names with importance attached unique function each register register addressing absolute names with view fast processing with small number data transfers creating highly descriptive programs. Table 2-1. General Register Configuration Absolute Name Functional Name Absolute Name Functional Name µPD78320, 78322 2.2.3 Special Function Registers (SFR) These registers provided with special functions. They include various peripheral hardware mode registers control registers (CCW). special function registers assigned FF00H FFFFH 256-byte space. Short direct memory addressing applied FF00H FF1FH 32-byte area processing with short word length. manipulation, arithmetic transfer instructions executed areas. FFD0H FFDFH 16-byte area externally accessible addressing. Thus, external memory accessed external device manipulation carried instruction having short word length. Table lists special function registers (SFR). items table have following meanings. Symbol. Indicates address built-in special function register. described instruction operand column. R/W.Indicates corresponding special function register read write. Read/write enable Read only enable (register test enable) Manipulable unit Write only enable Indicates applicable manipulation unit corresponding special function register. 16-bit manipulable described operand sfrp. When specified address, even address described. 1-bit manipulable described manipulation instruction. reset Indicates state each register when RESET input. Cautions Addresses which special function registers have been assigned cannot accessed FF00H FFFFH area. write read only register. data written, internal circuit malfunction. µPD78320, 78322 Table 2-2. List Special Function Registers (1/4) Manipulable Unit Address FF00H FF02H FF03H FF04H FF05H FF07H FF08H FF09H FF0AH FF0BH FF10H FF11H FF12H FF13H FF14H FF15H FF16H FF17H FF18H FF19H FF1AH FF1BH FF20H FF23H FF25H FF28H FF29H FF2AH FF2BH FF2CH Timer register FF2DH FF30H FF31H FF32H FF33H FF34H FF35H Capture register (higher bits) Note Special Function Register (SFR) Name Port Port Port Port Port Port Port Port Free running counter (lower bits) Note Capture register (lower bits) Note Symbol bits bits Reset Undefined TM0LW 0000H CTX0LW CT01LW CT02LW CT03LW CCX0LW CC01LW TM0UW CTX0UW CT01UW CT02UW Capture register (lower bits) Note Undefined Capture register (lower bits) Note Capture register (lower bits) Note Capture/compoare register (lower bits) Note Capture/compoare register (lower bits) Note 1111B 1111B 1111B Port mode register Port mode register Port mode register Port mode register Port mode register Free runnting counter (higher bits) Note 0000H Capture register (higher bits) Note Undefined Capture register (higher bits) Note Note Upper lower half 18-bit register. µPD78320, 78322 Table 2-2. List Special Function Registers (2/4) Manipulable Unit Address FF36H FF37H FF38H FF39H FF3AH FF3BH FF40H FF41H FF43H FF48H FF4CH Baud rate generator FF4DH FF60H FF61H FF62H FF68H FF6AH Realtime output port register Realtime output port reset register Port read control register converter mode register conversion result register ADCR (for 16-bit access) conversion result register FF6BH FF70H FF71H FF72H FF73H FF74H FF75H FF76H FF77H FF7CH FF7DH FF7EH Compare register FF7FH FF80H FF82H FF86H Clocked serial interface mode register Serial interface control register Serial shift register CSIM SBIC CM11 Compare register CM10 Compare register CM03 Compare register CM02 Compare register CM01 Undefined ADCRH (for upper 8-bit access) Compare register CM00 RTPR PRDC Special Function Register (SFR) Name Capture register (higher bits) Note Symbol bits bits Reset CT03UW Capture/compoare register (higher bits) Note CCX0UW PMC0 RTPS PMC3 PMC8 CC01UW Undefined Capture/compoare register (higher bits) Note 0000B 0000B Port mode control register Realtime output port register Port mode control register Port mode control register Undefined Undefined Note Upper lower half 18-bit register. µPD78320, 78322 Table 2-2. List Special Function Registers (3/4) Manipulable Unit Address Special Function Register (SFR) Name Asynchronous serial interface mode FF88H register Asynchronous serial interface status FF8AH register FF8CH FF8EH FFB0H FFB1H FFB2H FFB8H FFB9H FFBFH FFC0H FFC1H FFC2H FFC4H FFC6H FFC9H FFD0H External acces area FFDFH FFE0H FFE1H FFE2H FFE3H FFE4H FFE5H FFE6H FFE7H FFE8H FFE9H FFEAH FFEBH FFECH FFEDH FFEEH FFEFH Interrupt request flag rgister Interrupt request flag rgister Interrupt request flag rgister Interrupt mask flag rgister Interrupt mask flag rgister Interrupt mask flag rgister Priority specify bufer register Priority specify bufer register Priority specify bufer register Interrupt servicing mode specify register Interrupt servicing mode specify register Interrupt servicing mode specify register Symbol bits bits Reset ASIM ASIS BRGM TOC0 TOC1 RPUM STBC R/WNote R/WNote Serial receive buffer Serial send shift register Timer control register Baud rate generator mode register Prescalar mode register Timer output control register Timer output control register mode register Standby control register control word Watchdog timer mode register Memory expansion mode register :UART :UART Undefined Undefined 0000 000B Programmable wait control register Fetch cycle control register IF0L IF0H IF1L MK0L MK0H MK1L PB0L PB0H PB1L ISM0L ISM0 ISM0H ISM1L ISM1 111B Note Write enable case special instructions. µPD78320, 78322 Table 2-2. List Special Function Registers (4/4) Manipulable Unit Address FFF0H FFF1H FFF2H FFF3H FFF4H FFF5H FFF8H FFF9H Special Function Register (SFR) Name Context switching enable register Context switching enable register Context switching enable register External interupt mode register External interupt mode register In-service priority register Priority specify register Symbol CSE0L CSE0 CSE0H CSE1L CSE1 INTM0 INTM1 ISPR PRSL bits bits Reset DATA MEMORY ADDRESSING µPD78322, internal space (FC80H FEFFH) special function register area (FF00H FFFFH) mapped FC80H FFFFH area. FE20H FF1FH space data memory, short direct addressing enables direct addressing 1-byte data instruction word. Figure 2-6. Data Memory Addressing FFFFH FF1FH FF00H FEFFH FE80H FE20H Main FE00H FDFFH Peripheral FC80H Direct Addressing Register Indirect Addressing Based Addressing Based Indexed Addressing Based Indexed Addressing (Provided with Displacement) Special Function Register (SFR) General Register Addressing Register Addressing Short Direct Addressing External Memory 3FFFH Internal ROMNote 0000H Note When with µPD78320, this external memory. Caution word access (including stack operations) main area (FE00H-FEFFH), address that specifies operand must even value. µPD78320, 78322 2.3.1 General Register Addressing general registers consist eight register banks, each consisting sixteen 8-bit registers eight 16-bit registers. General register addressing carried using register specify field bits supplied from instruction word, register bank select flag (RBS0 RBS2) register select flag (RSS) PSW. 2.3.2 Short Direct Addressing Short direct addressing which enables direct address specification 1-byte data instruction word applied FE20H FF1FH space. short direct memory accessed 8-bit 16-bit data. When accessing memory 16bit data, specification even data 1-byte address specify data will cause 2-byte data specified continuous addresses even addresses accessed. specify number address specify data.) 2.3.3 Special Function Register (SFR) Addressing This addressing applied operations special function register (SFR) mapped area FF00H FFFFH. Addressing performed 1-byte data instruction word corresponding lower bits special function register address. 16-bit access 16-bit manipulable SFR, 2-byte data specified continuous even addresses accessed case with short direct addressing. µPD78320, 78322 BLOCK FUNCTIONS CONTROL UNIT (BCU) BCU, necessary cycle started according physical address obtained execution unit (EXU). cycle startup request made from EXU, prefetch address generated instruction prefetch carried out. prefetched operation code fetched into instruction queue. EXECUTION UNIT (EXU) EXU, address calculation, arithmetic logical operation data transfer controlled microprograms. 256byte built EXU. 256-byte main accessible relevant instruction faster than peripheral (384 bytes). ROM/RAM This block consists 16K-byte 384-byte peripheral RAM. However, µPD78320 does incorporate ROM. access disabled pin. INTERRUPT CONTROLLER Various interrupt requests (NMI, INTP0 INTP6) generated either externally from peripheral hardware serviced context switch, vectored interrupt macro service function. 3-level interrupt priority also specified. µPD78320, 78322 PORT FUNCTIONS Table lists digital input/output ports. Each port carry many control operations including other data input/output manipulations. Table 3-1. Port Functions Features Port Name Function Feature Specifiable bit-wise input/output. Also specifiable realtime output port. Remarks Dual-function pins RTP0 RTP7 Dual-function pins NMI, INTP0 INTP5, INTP6/TI Dual-function pins TXD, RXD, SO/SB0, SI/SB1, Port 8-bit input/outpput Port 8-bit input Input port pin. Functions external interrupt input. Port 5-bit input/output Specifiable bit-wise port pins control pins. Port 8-bit input/output Specifiable 8-bit units input output. Functions multiplexed address/data (AD0 AD7) external memory expansion mode. Specifiable bit-wise input output. Functions address A15) external memory expansion mode. Pins which used address used port. Input port pin. Also functions analog input converter. -------- Port 8-bit input/output -------- Port 8-bit input Dual-function pins Dual-function pins TO00 TO03, TO10 TO11 Port 6-bit input/output Specifiable bit-wise port control pin. Port 4-bit input/output Specifiable bit-wise input/output. function output output, respectively, external memory expansion mode. function output output, respectively, external memory high-speed fetch mode. -------- µPD78320, 78322 CLOCK GENERATOR clock generator generates controls internal system clocks (CLK) supplied CPU. configured shown Figure 3-1. Figure 3-1. Clock Generator Block Diagram Divider System Clock Generator fCLK Internal System Clock (CLK) STOP Mode Remarks Crystal oscillator frequency External clock frequency fCLK Internal system clock frequency system clock oscillator oscillates crystal resonator connected pins. stops oscillating when standby mode (STOP). External clocks input system clock oscillator. such cases, input clock signal input inverted clock signal pin. also left open. Caution When using external clocks, STBC bit. divider generates internal system clocks (fCLK) dividing system clock oscillator output (fxx crystal oscillation external clocks) into parts. µPD78320, 78322 Figure 3-2. Externally-Mounted System Clock Oscillator Crystal oscillator PD78322 External clock When inverted phase external clock input input PD78322 External Clock External Clock (ii) When left open PD78322 Open Cautions When system clock oscillator used, following points should noted concerning wiring within broken lines shown Figure 3-2, order prevent effects wiring capacitance, etc. Keep wiring short possible. cross other signal lines, keep clear lines which high fluctuating current flows. Ensure that oscillator capacitor connection points always same potential VSS. ground ground pattern which high current flows. take signal from oscillator. When external clock input left open, ensure that loads such wiring capacitance connected pin. µPD78320, 78322 REALTIME PULSE UNIT (RPU) This unit measure pulse intervals frequencies, generate programmable pulse outputs. consists mainly timers. flexibly cope with many applications, configuration registers connected timers changed using programs. meet various applications, toggle output max.) set/reset output max.) selected timer output. 3.7.1 Configuration realtime pulse unit configured mainly timer (TM0) which functions 16-bit 18-bit free running timer timer (TM1) which functions 16-bit timer/event counter shown Figure 3-3. Figure 3-3. Realtime Pulse Unit Configuration fCLK/4 fCLK/8 INTCM00 COMPARE REG. CM00 COMPARE REG. CM01 COMPARE REG. CM02 COMPARE REG. CM03 INTP0 INTP1 INTP2 INTP3 INTCCX0 INTP5 CAPTURE REG. CT01 CAPTURE REG. CT02 CAPTURE REG. CT03 INTCC01 Match MODE0 MODE1 TO03 TO02 Match COMPARE REG. CM10 COMPARE REG. CM11 INTCM10 INTCM11 Match TO11 TO10 TO01 TO00 INTOV (CLEAR CONTROL) INTP6/TI fCLK/16 16-BIT TIMER/EVENT COUNTER INTP0 (OPPOSITE EDGE) 16/18-BIT FREE RUNNING TIMER INTCM01 INTCM02 INTCM03 CAPTURE/COMPARE REG. CC01 µPD78320, 78322 INTP0 INTP4 CAPTURE REG. CTX0 CAPTURE/COMPARE REG. CCX0 Match INTP0 INTCCX0 µPD78320, 78322 3.7.2 Realtime Output Function realtime output port set/reset port outputs bit-wise synchronization with trigger signal transmitted from (Realtime Pulse Unit). enables generate multi-channel synchronous pulses easily. Figure 3-4. Realtime Output Port WRPORT PMC0n Output Latch WRRTPR INTCM03 RTPn RTPRn WRPTP PMC0n Internal WRRTPS RTPSn INTCCX0 PM0n PM0n µPD78320, 78322 CONVERTER µPD78322 incorporates high-speed, high-resolution 10-bit analog/digital (A/D) converter. This converter equipped with eight analog inputs (AN0 AN7) conversion result register (ADCR) which holds conversion results. Upon termination conversion, interrupt which start macro service generated. Figure 3-5. Converter Block Diagram Sample Hold Circuit AVREF Input Circuit Converter AVSS Comparator Internal (10) ADCR (10) Internal SERIAL INTERFACE µPD78322 equipped with following independent channels serial interface function. Asynchronous serial interface Clocked serial interface 3-wire serial mode Serial interface mode (SBI mode) Since µPD78322 incorporates baud rate generator, serial transfer rate irrespective operating frequency. baud rate generator functions 2-channel serial interface common. serial transfer rate selected from 19.2 Kbps setting mode register. Figure 3-6. Asynchronous Serial Interface Block Diagram Internal ASIM Receive Buffer BRGM ASIS Shift Register Shift Register Match Receive Control Parity Check Clear INTSER INTSR Send Control Parity Addition fCLK/8 INTST µPD78320, 78322 Selector Send/Receive Baud Rate Generator Output fCLK/4 Baud Rate Generator Figure 3-7. Block Diagram Clocked Serial Interface Internal CSIM MOD2 CTXE CRXE MOD1 CLS1 CLS0 MOD0 CLEAR SBIC RELT CMDT RELD CMDD ACKT ACKE ACKD BSYE SI/SB1 Shift Register Latch SO/SB0 Busy/ Acknowledge Detector N-ch Open-Drain Output Enable Release/ Command/Acknowledge Detector Interrupt Signal Generation Controller Serial Clock Counter INTCSI Baud Rate Generator Output fCLK/8 fCLK/32 µPD78320, 78322 Serial Clock Controller CLS1 CLS0 µPD78320, 78322 3.10 WATCHDOG TIMER watchdog timer used prevent program overrun deadlock. Normal operation program system confirmed checking that watchdog timer interrupt been generated. Thus, instruction clear watchdog timer (timer start) into each program module. watchdog timer clear instruction cleared within time period into watchdog timer watchdog timer overflows, watchdog timer interrupt generated, level generated WDTO pin, thereby notifying error program. watchdog timer also used maintain oscillation stabilization time oscillator after stop mode been released. Figure shows watchdog timer configuration. Figure 3-8. Watchdog Timer Configuration fCLK/28 fCLK/210 fCLK/212 Timer Bits) Clear STOP INTWDT WDTO Watchdog Timer Bits) Overflow Oscillation Stabilization Time Controller µPD78320, 78322 INTERRUPT FUNCTIONS OVERVIEW µPD78322, various interrupt requests generated externally from on-chip peripheral hardware handled following three servicing modes. Interrupt Request Handled Vectored Interrupt Servicing Handled Context Switching Handled Macro Service Interrupt requests classified into following three groups. Nonmaskable interrupt requests Maskable interrupt requests Interrupt requests software Figure shows maskable interrupt request servicing modes. Table gives listing interrupt factors which serviced. Figure 4-1. Interrupt Request Servicing Modes (Interrupt Masked) Vectored Interrupt Macro Service Reserved (Interrupt Unmasked) (Vectored Interrupt Servicing Mode) Vectored Interrupt Servicing Reserved Vectored Interrupt Servicing Executed Context Switching Executed (Macro Service Processing Mode) Macro Service Processing Executed µPD78320, 78322 Table 4-1. List Interrupt Factors Interrupt Request Type Software Nonmaskable Maskable Reset INTWDT INTOV INTP0 INTP1 INTP2 INTP3 INTP4/INTCCX0 INTP5/INTCC01 INTP6/TI INTCM00 INTCM01 INTCM02 INTCM03 INTCM10 INTCM11 INTSR INTST INTCSI INTAD INTSERNote RESET Operation code trap input Watchdog timer Timer overflow INTP0 input INTP1 input INTP2 input INTP3 input INTP4 input/CCX0 match signal INTP5 input/CC01 match signal Default Priority Request Signal Interrupt Factor Function instruction Generator Unit (External interrupt) (WDT) (RPU) (External) (External) (External) (Exteranl) (RPU/exteranl) (RPU/exteranl) (Exteranl) (RPU) Macro Servicez Vector Table Address 003EH 003CH 0002H 0004H 0006H 0008H 000AH 000CH 000EH 0010H 0012H 0014H 0016H INTP6 input/TI input CM00 match signal CM01 match signal CM02 match signal CM03 match signal CM10 match signal CM11 match signal Serial receive terminate interrupt Serial send terminate interrupt Serial send/receive interrupt conversion terminate interrupt Available (RPU) (RPU) (RPU) (RPU) (RPU) (UART) (UART) (CSI) (A/D) (UART) 0018H 001AH 001CH 001EH 0020H 0024H 0026H 0028H 002AH ---Note 0000H Serial receive error signal Reset input Note This test factor. vectored interrupt generated. µPD78320, 78322 MACRO SERVICE macro service function executed interrupt request carry data operation data transfer hardware terms between special function register area memory space. Upon startup macro service, stops program execution temporarily. 1-byte/2-byte data operation, transfer, etc. automatically carried between special function register (SFR) memory. Upon termination macro service, interrupt request flag reset restarts program execution. When carries macro service operations many into macro service counter (MSC), vectored interrupt request generated after completion. Figure 4-2. Macro Service Processing Sequence Example Macro Service Processing Interrupt Request Generated Macro service execution Data Transfer, Realtime Output Port Control Macro Service Counter (MSC) Decrement MSC-1 Interrupt request flag Vectored Interrupt Request Occurred Next Instruction Executed µPD78320, 78322 CONTEXT SWITCHING FUNCTION This function first select specified register bank hardware terms generating interrupt request executing BRKCS instruction, branch selected register bank vector address prestored register bank, also stack current contents into register bank. 4.3.1 Context Switching Function Interrupt Request context switching function start enabled setting preset each interrupt request unmasked interrupt request which context switching function been enabled generated state, register bank which specified lower bits address (even address) corresponding interrupt vector table address selected. vector address prestored selected register bank transferred contents saved into register bank, operation branched interrupt service routine. Return means executing RETCS instruction. Figure 4-3. Context Switching Interrupt Request Generation RBANK Exchange Save Register Banks µPD78320, 78322 4.3.2 Context Switching Function BRKCS Instruction context switching function started executing BRKCS instruction. context switched register bank specified lower 3-bit immediate data operation code BRKCS instruction. When BRKCS instruction executed, register bank specified 3-bit immediate data selected, vector address prestored register bank branched contents saved into register bank. Return means executing RETCSB instruction. Figure 4-4. Context Switching Execution BRKCS Instruction CODE (BRKCS) CODE Register Bank Specification RBANK0 RBANK7 RBANK Exchange Save Register Banks µPD78320, 78322 STANDBY FUNCTIONS µPD78322 standby function decrease power consumption system. following modes available execution standby function. HALT mode Mode halting operation clock. total power consumption system decreased intermittent operation combination with normal operating mode. STOP mode Mode stopping whole system stopping oscillator. Considerably power consumption with leak current only set. Each mode software. Figure shows standby mode (STOP/HALT mode) transition. Figure 5-1. Standby Status Transition Normal Status HALT STOP µPD78320, 78322 EXTERNAL DEVICE EXPANSION FUNCTION µPD78322 expand external devices (data memory, program memory peripheral device) areas (4000H FFFFH) except internal areas. Tables through shows used external device access function setting procedure. Table 6-1. Function Setting (µPD78322) Memory Expansion Mode Register Port mode Expansion mode Except Fetch Cycle Control Register Function Remarks General port Setting prohibited Generalpurpose port External device connection mode steps µPD71P301 connection mode pins, number bits which serve address buses changed according externally expanded memory size. memory expanded steps from bytes about bytes. pins which used address used general-purpose input/output port. Table 6-2. Port Address Setting Port (µPD78322) Port Port Port Port Port Port Port Port Port Port Port Port Port Port External Address Space bytes less bytes less bytes less About bytes less Table 6-3. Setting Function (µPD78320) Memory Expansion Mode Register ASTB Fetch Cycle Control Register Function Remarks µPD78322 emulation mode External device connection mode Generalpurpose port Except µPD71P301 connection mode µPD78320, 78322 OPERATION AFTER RESET RESET input level, system reset applied each hardware becomes initialized status (reset status). RESET input becomes high level, reset state released program execution started. Initialize contents various registers program required. Change number cycles programmable wait control register fetch cycle control register required particular. RESET input equipped with analog delay noise eliminator prevent malfunctioning noise. Cautions While RESET active (low level), pins remain high impedance (except WDTO, AVREF, AVDD, AVSS, VDD, VSS, X2). been expanded externally, mount pull-up resistor P90/RD P91/WR pins. possible that P90/RD P91/WR pins become high impedance resulting external contents corruption. addition, signals collide address/data bus, resulting destruction input/output circuit. Figure 7-1. Reset Signal Acknowledge RESET Input Reset Acknowledged Reset Release reset operation upon power-up, secure oscillation stabilization time about msec from power-up reset acknowledge shown Figure 7-2. Figure 7-2. Reset Upon Power-Up RESET Reset Release Oscillation Stabilization Time Analog Delay Analog Delay Eliminated Noise Analog Delay Analog Delay µPD78320, 78322 INSTRUCTION This chapter covers instruction operations. operation codes number instruction execution clock cycles, µPD78322 User's Manual (IEU-1248). Operand identifier description method each instruction operand field, enter operand using description method instruction operand identifier (refer assembler specification details). more factors included description method field, select factor. capital alphabetic letters symbols keywords should described they are. case immediate data, describe appropriate numeric values labels. When describing labels, make sure describe symbols. Table 8-1. Operand Identifier Description Method Identifier sfrp Description Method R10, R11, R12, R13, R14, RP0, RP1, RP2, RP3, RP4, RP5, RP6, RP0, RP1, RP2, RP3, RP4, RP5, RP6, Special function register code (see Table 2-2) Special function register code (16-bit manipulation enable register; Table 2-2) RP0, RP1, RP2, RP3, RP4, RP5/PSW, RP6, (Two more instructions described. Only PUSH instructions described only PUSHU POPU instructions described PSW.) [DE], [HL], [DE+], [HL+], [DE-], [HL-], [VP], [UP] Register indirect mode [DE+A], [HL+A], [DE+B], [HL+B], [VP+DE], [VP+HL] Based indexed mode [DE+byte], [HL+byte], [VP+byte], [UP+byte], [SP+byte] Based mode word[A], word[B], word[DE], word[HL] Indexed mode FE20H FF1FH immediate data label FE20H FF1EH immediate data (bit0 label (for 16-bit manipulation) 0000H FDFFH immediate data label; relative addressing 0000H FDFFH immediate data label; immediate addressing FFFFH describable instruction) 800H FFFH immediate data label immediate data (bit0 0)Note label 16-bit immediate data label 8-bit immediate data label 3-bit immediate data label 3-bit immediate data post saddr saddrp $addr16 !addr16 addr11 addr5 word byte Note make word access bit0 (odd address). Remarks Although have same describable register names, they generate different codes. post described with absolute names R15, RP7) well functional names (see Table details relationships between absolute functional names). Immediate addressing enabled spaces. Relative addressing only enabled from first address subsequent instruction range -128 +127. µPD78320, 78322 Instruction Group Mnemonic Operand Bytes Flags Operation byte (saddr) byte byte (saddr) (saddr) (saddr) (saddr) #byte saddr, #byte sfrNote, saddr saddr, saddr, saddr sfr, mem, [saddrp] [saddrp], !addr16 !addr16, PSWL, #byte PSWH, #byte PSWL, PSWH, PSWL PSWH saddr [saddrp] saddr, saddr #byte (mem) (mem) ((saddrp)) ((saddrp)) (addr16) (addr16) PSWL byte PSWH byte PSWL PSWH PSWL PSWH 8-bit data transfer instruction (mem) (saddr) ((saddrp)) (saddr) (saddr) Note STBC described sft, different dedicated instruction having different number bytes used. Remark symbols Flags column, refer table below. Symbol (Blank) Description change Clear Set/clear according result. flag operates parity flag flag operates overflow flag. previously saved value restored. µPD78320, 78322 Instruction Group Bytes Flags Operation word (saddrp) word sfrp word (saddrp) (saddrp) (saddrp) (saddrp) sfrp sfrp (addr16) (addr16) Mnemonic Operand rp1, #word saddrp, #word sfrp, #word saddrp 16-bit data transfer instruction saddrp, MOVW saddrp, saddrp sfrp sfrp, rp1, !addr16 !addr16, mem, saddrp sfrp XCHW saddrp, saddrp rp,rp1 #byte saddr, #byte sfr, #byte saddr 8-bit operation instruction saddr, saddr mem, #byte saddr, #byte sfr, #byte ADDC saddr saddr, saddr mem, (mem) (mem) (saddrp) sfrp (saddrp) (saddrp) (mem) byte (saddr), (saddr) byte sfr, byte (saddr) (saddr), (saddr) (saddr) (mem) (mem), (mem) byte (saddr), (saddr) byte sfr, byte (saddr) (saddr), (saddr) (saddr) (mem) (mem), (mem) µPD78320, 78322 Instruction Group Bytes Flags Operation byte (saddr), (saddr) byte sfr, byte (saddr) (saddr), (saddr) (saddr) Mnemonic Operand #byte saddr, #byte sfr, #byte saddr saddr, saddr mem, #byte 8-bit operation instruction saddr, #byte sfr, #byte SUBC saddr saddr, saddr mem, #byte saddr, #byte sfr, #byte saddr saddr, saddr mem, (mem) (mem), (mem) byte (saddr), (saddr) byte sfr, byte (saddr) (saddr), (saddr) (saddr) (mem) (mem), (mem) byte (saddr) (saddr) byte byte (saddr) (saddr) (saddr) (saddr) (mem) (mem) (mem) µPD78320, 78322 Instruction Group Bytes Flags Operation byte (saddr) (saddr) byte byte (saddr) (saddr) (saddr) (saddr) Mnemonic Operand #byte saddr, #byte sfr, #byte saddr saddr, saddr mem, #byte 8-bit operation instruction saddr, #byte sfr, #byte saddr saddr, saddr mem, #byte saddr, #byte sfr, #byte saddr saddr, saddr mem, (mem) (mem) (mem) byte (saddr) (saddr) byte byte (saddr) (saddr) (saddr) (saddr) (mem) (mem) (mem) byte (saddr) byte byte (saddr) (saddr) (saddr) (mem) (mem) µPD78320, 78322 Instruction Group Bytes Flags Operation word (saddrp), (saddrp) word sfrp, sfrp word (saddrp) sfrp (saddrp), (saddrp) (saddrp) word (saddrp), (saddrp) word sfrp, sfrp word (saddrp) sfrp (saddrp), (saddrp) (saddrp) word (saddrp) word sfrp word (saddrp) sfrp (saddrp) (saddrp) AX(quotient), r1(remainder) AX(higher bits), rp1(lower bits) Mnemonic Operand #word saddrp, #word sfrp, #word ADDW saddrp sfrp saddrp, saddrp 16-bit operation instruction #word saddrp, #word sfrp, #word SUBW saddrp sfrp saddrp, saddrp #word saddrp, #word sfrp, #word CMPW saddrp sfrp saddrp, saddrp Multiplication/division instruction MULU DIVUW MULUW AXDE(quotient), rp1(remainder) AXDE AX(higher bits), rp1(lower bits) DIVUX Signed multiplication instruction MULW µPD78320, 78322 Instruction Group Mnemonic Operand Bytes Flags Operation (saddr) (saddr) (saddr) (saddr) (saddrp) (saddrp) (saddrp) (saddrp) (CY, r10, r1m-1 r1m) times (CY, r17, r1m+1 r1m) times r10, r1m-1 r1m) times r17, r1m+1 r1m) times r10, r1m-1 r1m) times r17, r1m+1 r1m) times rp10, rp115 rp1m-1 rp1m) times rp115, rp10 rp1m+1 rp1m) times Increment/decrement instruction saddr saddr INCW saddrp DECW RORC ROLC saddrp rp1, rp1, Shift/rotate instruction SHRW SHLW A3-0 (rp1)3-0, ROR4 [rp1] (rp1)7-4 A3-0, (rp1)3-0 (rp1)7-4 A3-0 (rp1)7-4, ROL4 [rp1] (rp1)3-0 A3-0, (rp1)7-4 (rp1)3-0 adjustment instruction ADJBA ADJBS Decimal Adjust Accumulator Data conversion instruction CVTBW When When µPD78320, 78322 Instruction Group Bytes Flags Operation (saddr.bit) sfr.bit A.bit X.bit PSWH.bit PSWL.bit (saddr.bit) sfr.bit A.bit X.bit PSWH.bit PSWL.bit (saddr.bit) (saddr.bit) sfr.bit sfr.bit A.bit A.bit X.bit X.bit PSWH.bit PSWH.bit PSWL.bit PSWL.bit (saddr.bit) (saddr.bit) sfr.bit sfr.bit A.bit A.bit X.bit X.bit PSWH.bit PSWH.bit PSWL.bit PSWL.bit Mnemonic Operand saddr. sfr. PSWH. PSWL. MOV1 saddr. bit, sfr. bit, bit, bit, PSWH. bit, PSWL. bit, saddr. /saddr. sfr. manipulation instruction /sfr. AND1 PSWH. /PSWH. PSWL. /PSWL. saddr. /saddr. sfr. /sfr. PSWH. /PSWH. PSWL. /PSWL. µPD78320, 78322 Instruction Group Bytes Flags Operation (saddr.bit) sfr.bit A.bit X.bit PSWH.bit PSWL.bit (saddr.bit) sfr.bit A.bit X.bit PSWH.bit PSWL.bit (saddr.bit) sfr.bit A.bit X.bit PSWH.bit PSWL.bit (saddr.bit) (saddr.bit) sfr.bit sfr.bit A.bit A.bit X.bit X.bit PSWH.bit PSWH.bit PSWL.bit PSWL.bit Mnemonic Operand saddr. sfr. XOR1 PSWH. PSWL. saddr. sfr. SET1 manipulation instruction PSWH. PSWL. saddr. sfr. CLR1 PSWH. PSWL. saddr. sfr. NOT1 PSWH. PSWL. SET1 CLR1 NOT1 µPD78320, 78322 Instruction Group Mnemonic Operand Bytes Flags Operation (SP-1) (PC+3)H, (SP-2) (PC+3)L, addr16, SP-2 (SP-1) (PC+2)H, (SP-2) (PC+2)L, PC15-1100001, PC10-0addr11,SPSP-2 (SP-1) (PC+1)H, (SP-2) (PC+1)L, PCH(TPF, 00000000, addr5+1), PCL(TPF, 00000000, addr5), SPSP-2 (SP-1) (PC+2)H, (SP-2) (PC+2)L, rp1H, rp1L, SP-2 (SP-1) (PC+2)H, (SP-2) (PC+2)L, (rp1+1), (rp1), SP-2 (SP-1) PSWH, (SP-2) PSWL (SP-3) (PC+1)H, (SP-4) (PC+1)L, (003EH), (003FH), SP-4 (SP), (SP+1), SP+2 (SP), (SP+1) PSWL (SP+2), PSWH (SP+3) SP+4 (SP), (SP+1) PSWL (SP+2), PSWH (SP+3) SP+4 (SP-1) sfrH (SP-2) sfrL SP-2 {(SP-1)postH, (SP-2) postL,SPSP-2} timesNote (SP-1)PSWH, (SP-2)PSWL, SPSP-2 {(UP-1)postH, (UP-2)postL, UPUP-2} timesNote sfrL (SP) sfrH (SP+1) SP+2 {postL (SP), postH (SP+1), SPSP+2} timesNote PSWL(SP), PSWH(SP+1), SPSP+2 {postL (UP), postH (UP+1), UPUP+2} timesNote word SP+1 SP-1 (pin level) (signal level before output buffer) (pin level) (signal level before output buffer) CALL CALLF !addr16 !addr11 CALLT Call/return instruction [addr5] CALL [rp1] RETB RETI sfrp PUSH post Stack manipulation instruction PUSHU post sfrp post POPU post #word MOVW INCW DECW Special instruction CHKL CHKLA Note indicates number registers described post. µPD78320, 78322 Instruction Group Bytes Flags Operation addr16 rp1H, rp1L (rp1+1), (rp1) PC+2+jdisp8 PC+2+jdisp8 CY=1 Mnemonic Operand Unconditional branch instruction !addr16 [rp1] addr16 addr16 addr16 addr16 addr16 addr16 addr16 addr16 addr16 addr16 addr16 addr16 addr16 addr16 saddr. bit, addr16 sfr. bit, addr16 bit, addr16 bit, addr16 PSWH. bit, addr16 PSWL. bit, addr16 saddr. bit, addr16 sfr. bit, addr16 bit, addr16 bit, addr16 PSWH. bit, addr16 PSWL. bit, addr16 addr16 PC+2+jdisp8 CY=0 PC+2+jdisp8 PC+2+jdisp8 PC+2+jdisp8 P/V=1 PC+2+jdisp8 P/V=0 PC+2+jdisp8 PC+2+jdisp8 PC+3+jdisp8 (P/V PC+3+jdisp8 PC+3+jdisp8 PC+3+jdisp8 (P/V PC+3+jdisp8 CY=0 PC+3+jdisp8 CY=1 PC+3+jdisp8 (saddr.bit)=1 PC+4+jdisp8 sfr.bit=1 PC+3+jdisp8 A.bit=1 PC+3+jdisp8 X.bit=1 PC+3+jdisp8 PSWH.bit=1 PC+3+jdisp8 PSWL.bit=1 PC+4+jdisp8 (saddr.bit)=0 PC+4+jdisp8 sfr.bit=0 PC+3+jdisp8 A.bit=0 PC+3+jdisp8 X.bit=0 PC+3+jdisp8 PSWH.bit=0 PC+3+jdisp8 PSWL.bit=0 Conditional branch instruction µPD78320, 78322 Instruction Group Bytes Flags Operation PC+4+jdisp8 (saddr.bit)=1 Mnemonic Operand saddr.bit, addr16 then reset (saddr.bit) PC+4+jdisp8 sfr.bit=1 sfr.bit, addr16 then reset sfr.bit PC+3+jdisp8 A.bit=1 then reset A.bit PC+3+jdisp8 X.bit=1 A.bit, addr16 BTCLR X.bit, addr16 then reset X.bit PC+3+jdisp8 PSWH.bit=1 PSWH.bit, addr16 then reset PSWH.bit PC+3+jdisp8 PSWL.bit=1 Conditional branch instruction PSWL.bit, addr16 then reset PSWL.bit PC+4+jdisp8 (saddr.bit)=0 saddr.bit, addr16 then (saddr.bit) PC+4+jdisp8 sfr.bit=0 sfr.bit, addr16 then sfr.bit PC+3+jdisp8 A.bit=0 A.bit, addr16 BFSET X.bit, addr16 then A.bit PC+3+jdisp8 X.bit=0 then X.bit PC+3+jdisp8 PSWH.bit=0 PSWH.bit, addr16 then PSWH.bit PC+3+jdisp8 PSWL.bit=0 PSWL.bit, addr16 then PSWL.bit r2-1, addr16 DBNZ saddr, addr16 then PC+2+jdisp8 (saddr) (saddr)-1, then PC+3+jdisp8 (saddr) PSWH, Context switching instruction BRKCS R6PSWL, RBS2-0 RSS0, addr16, PSWH PSWL addr16, RETCS !addr16 RETCSB !addr16 PSWH PSWL µPD78320, 78322 Instruction Group Bytes Flags Operation Mnemonic Operand MOVM MOVBK XCHM XCHBK String instruction CMPME CMPBKE CMPMNE CMPBKNE CMPMC CY=0 CY=0 µPD78320, 78322 Instruction Group Bytes Flags Operation Mnemonic Operand CMPBKC String instruction CY=0 CY=0 CY=1 CMPMNC CY=1 CMPBKNC STBC, #byte control instruction SWRS RBn, WDM, #byte CY=1 CY=1 STBC byteNote byteNote RBS2-0 RBS2-0 Operation (Enable Interrupt) (Disable Interrupt) Note operation code STBC register register manipulation instructions abnormal, operation code trap interrupt generated. Operation event trap: (SP-1) PSWH, (SP-2) PSWL, (SP-3) (PC-4)H, (SP-4) (PC-4)L, (003CH), (003DH), SP-4, µPD78320, 78322 ELECTRICAL SPECIFICATIONS ABSOLUTE MAXIMUM RATINGS Parameter Symbol Supply voltage AVDD AVSS Input voltage Output voltage Output current output pins output pins total output pins Output current high output pins total AVDD >VDD Analog input voltage converter reference AVREF input voltage Operating ambient temperature Storage temperature Note Note Test Conditions Rating -0.5 -0.5 -0.5 -0.5 -0.5 -1.0 -0.5 +0.5 Unit AVDD AVDD AVDD -0.5 AVDD +0.5 -0.5 +0.3 -0.5 AVDD +0.3 Notes Except described Note P70/ANI0 P77/ANI7 pins. Caution absolute maximum rating parameters exceeded even momentarily, quality product degraded. other words, product physically damaged absolute maximum ratings exceeded. sure product without exceeding these ratings. RECOMMENDED OPERATING CONDITION Oscillation Frequency +5.0 CAPACITANCE Parameter Input capacitance Output capacitance capacitance Symbol Unmeasured pins returned Test Conditions MIN. TYP. MAX. Unit µPD78320, 78322 OSCILLATOR CHARACTERISTICS Resonator Recommended Circuit Parameter MIN. MAX. Unit Ceramic resonator crystal resonator Oscillation frequency (fXX) input frequency (fX) HCMOS Invertor External clock Open HCMOS Invertor input rise/fall time (tXR, tXF) input high/low level width (tWXH tWXL) Caution When using system clock oscillation circuit, wire part encircled dotted line following manner avoid influence wiring capacity, etc. Make wiring short possible. Avoid intersecting other signal conductors. Avoid approaching lines which very high fluctuating currents run. Make sure that grounding point oscillation circuit capacitor always same electrical potential VSS. Avoid grounding with grand pattern which very high currents run. fetch signals from oscillation circuit. µPD78320, 78322 RECOMMENDED OSCILLATOR CONSTANT Ceramic Resonator Frequency Manufacturer Product Name [MHz] CSA8.00MT CSA12.0MT CSA14.74MXZ040 CSA16.00MX040 CST8.00MTW CST12.0MTW CST14.74MXW0C3 CST16.00MXW0C3 12.0 14.74 16.0 12.0 14.74 16.0 [pF] [pF] Recommended Constant Murata Mfg. Co., Ltd. On-chip On-chip Crystal Resonator Frequency Manufacturer Product Name [MHz] HC49/U-S Kinseki Co., Ltd. HC49/U [pF] [pF] Recommended Constant µPD78320, 78322 CHARACTERISTICS Parameter Input voltage Symbol VIH1 Note Note Test Conditions MIN. TYP. MAX. Unit Input voltage high VIH2 Output voltage Output voltage high Input leakage current Output leakage current supply current IDD2 Data retention voltage Data retention current VDDDR IDDDR HALT mode STOP mode VDDDR STOP mode VDDDR IDD1 0.8VDD 0.45 -400 Operating mode Notes Except descried Note RESET, P20/NMI, P21/INTP0, P22/INTP1, P23/INTP2, P24/INTP3, P25/INTP4, P26/INTP5, P27/INTP6/TI, P32/SO/SB0, P33/SI/SB1, P34/SCK pins. µPD78320, 78322 CHARACTERISTICS Non-consecutive read/write operation (with general-purpose memory connected) Parameter System clock cycle time Address setup time (vs. ASTB) Address hold time (vs. ASTB) delay time from address Address float time from Data input time from address Data input time from delay time from ASTB Data hold time (vs. Address active time from low-level width ASTB high-level width delay time from address Data output time from ASTB Data output time from delay time from ASTB Data setup time (vs. Data hold time (vs. ASTB delay time from low-level width Symbol tCYK tSAST tHSTA tDAR tFRA tDAID tDRID tDSTR tHRID tDRA tWRL tWSTH tDAW tDSTOD tDWOD tDSTW tSODW tHWOD tDWST tWWL Test Conditions MIN. MAX. Unit µPD78320, 78322 tCYK DEPENDENT TIMING DEFINITION Parameter tSAST tHSTA tDAR tDAID tDRID tDSTR tDRA tWRL tWSTH tDAW tDSTOD tDSTW tSODW tHWOD tDWST tWWL Expression 0.5T 0.5T (2.5 (1.5 0.5T 0.5T (1.5 0.5T 0.5T 0.5T 1.5T 0.5T 0.5T (1.5 MIN./MAX. MIN. MIN. MIN. MAX. MAX. MIN. MIN. MIN. MIN. MIN. MAX. MIN. MIN. MIN. MIN. MIN. Unit Remarks tCYK 1/fCLK (fCLK internal system clock frequency) indicates number wait cycles defined user software. Depends tCYK timing shown this table only. µPD78320, 78322 SERIAL OPERATION Parameter Serial clock cycle time Symbol output tCYSK input Serial clock low-level width output tWSKL input output tWSKH input setup time (vs. SCK) hold time (vs. SCK) delay time from tSRXSK tHSKRX tDSKTX External clock External clock Internal division External clock Internal division Test Conditions Internal division MIN. MAX. Unit Serial clock high-level width OTHER OPERATION Parameter high/low-level width INTP0 high/low-level width INTP1 high/low-level width INTP2 high/low-evel width NTP3 high/low-level width NTP4 high/low-level width INTP5 high/low-level width INTP6 high/low-level width RESET high/low-level width high/low-level width Symbol tWNIH, tWNIL tWI0H, tWI0L tWI1H, tWI1L tWI2H, tWI2L tWI3H, tWI3L tWI4H, tWI4L tWI5H, tWI5L tWI6H, tWI6L tWRSH, tWRSL tWTIH, tWTIL event counter mode Test Conditions MIN. MAX. Unit tCYK tCYK tCYK tCYK tCYK tCYK tCYK tCYK µPD78320, 78322 CONVERTER CHARACTERISTICS AVSS AVDD VDD) Parameter Resolution Total error Note AVREF AVDD AVREF AVDD Quantization error Conversion time Sampling time Zero scale error Note tCONV tSAMP AVREF AVDD AVREF AVDD Full scale error Note AVREF AVDD AVREF AVDD Non-linear error Note Symbol Test Conditions MIN. TYP. MAX. Unit ±0.4 ±0.7 ±1/2 ±1.5 ±1.5 ±1.5 ±1.5 ±1.5 ±1.5 -0.3 ±2.5 ±4.5 ±2.5 ±4.5 ±2.5 ±4.5 AVDD AVDD %FSR %FSR tCYK tCYK AVREF AVDD AVREF AVDD Analog input voltage Reference voltage AVREF current AVDD supply current converter data retention current Note VIAN AVREF AIREF AIDD AVDDR AIDDR STOP mode AVDDR Notes Quantization error excluded. When -0.3 VIAN conversion result becomes 000H. When VIAN AVREF, conversion performed resolution bits. When AVREF VIAN AVDD, conversion result 3FFH. µPD78320, 78322 Non-Consecutive Read Operation tCYK (CLK) P50-P57 (Output) tDAID tSAST P40-P47 (Input/ Output) ASTB (Output) Hi-Z Lower Address (Output) Higher Address Higher Address Hi-Z Data (Input) Hi-Z Lower Address (Output) Hi-Z tWSTH tHRID tHSTA tFRA (Output) tDSTR tDRID tDAR tWRL tDRA Non-Consecutive Write Operation (CLK) P50-P57 (Output) Higher Address Higher Address tSAST P40-P47 (Input/ Output) Lower Address (Output) Undefined Data (Output) Lower Address (Output) tWSTH ASTB (Output) tHWOD tHSTA tDSTOD (Output) tDWST tDSTW tDWOD tDAW tWWL tSODW µPD78320, 78322 Serial Operation tCYSK tWSKL tDSKTX tWSKH tSRXSK tHSKRX Interrupt Input Timing tWNIH tWNIL 0.8VDD 0.8V tWInH tWInL INTPn Remark µPD78320, 78322 Reset Input Timing tWRSH tWRSL 0.8VDD RESET 0.8V Input Timing tWTIH tWTIL µPD78320, 78322 PACKAGE DRAWINGS PLASTIC mil) P68L-50A1-2 NOTE Each lead centerline located within 0.12 (0.005 inch) true position (T.P.) maximum material condition. ITEM MILLIMETERS 25.2 24.20 24.20 25.2 1.94 0.15 MIN. 1.27 (T.P.) 0.40 0.12 23.12 0.20 0.15 0.20 +0.10 -0.05 INCHES 0.992 0.008 0.953 0.953 0.992 0.008 0.076+0.007 -0.006 0.024 0.173+0.009 -0.008 0.110+0.009 -0.008 0.035 MIN. 0.134 0.050 (T.P.) 0.016+0.004 -0.005 0.005 0.910+0.009 -0.008 0.006 0.031 0.008+0.004 -0.002 µPD78320, 78322 PLASTIC detail lead NOTE ITEM MILLIMETERS 23.2±0.4 20.0±0.2 20.0±0.2 23.2±0.4 0.40±0.10 0.20 (T.P.) 1.6±0.2 0.8±0.2 0.15 +0.10 -0.05 0.10 0.1±0.1 5°±5° MAX. INCHES 0.913 +0.017 -0.016 0.787 +0.009 -0.008 0.787 +0.009 -0.008 0.913 +0.017 -0.016 0.079 0.039 0.079 0.039 0.016 +0.004 -0.005 0.008 0.039 (T.P.) 0.063±0.008 0.031 +0.009 -0.008 0.006 +0.004 -0.003 0.004 0.146 0.004±0.004 5°±5° 0.158 MAX. S74GJ-100-5BJ-3 Each lead centerline located within 0.20 (0.008 inch) true position (T.P.) maximum material condition. µPD78320, 78322 PLASTIC detail lead ITEM MILLIMETERS 23.6±0.4 20.0±0.2 14.0±0.2 17.6±0.4 0.35±0.10 0.15 (T.P.) 1.8±0.2 0.8±0.2 0.15 +0.10 -0.05 0.10 0.1±0.1 5°±5° MAX. INCHES 0.929±0.016 0.795 +0.009 -0.008 0.551 +0.009 -0.008 0.693±0.016 0.039 0.031 0.014 +0.004 -0.005 0.006 0.031 (T.P.) 0.071 +0.008 -0.009 0.031 +0.009 -0.008 0.006 +0.004 -0.003 0.004 0.106 0.004±0.004 5°±5° 0.119 MAX. P80GF-80-3B9-3 NOTE Each lead centerline located within 0.15 (0.006 inch) true position (T.P.) maximum material condition. µPD78320, 78322 RECOMMENDED SOLDERING CONDITIONS µPD78322 should soldered mounted under conditions recommended table below. detail recommended soldering conditions, refer information document "Semiconductor Device Mounting Technology Manual" (IE-1207). soldering methods conditions other than those recommended below, contact salesman. Table 11-1. Soldering Conditions Surface Mount Type µPD78320GF-3B9 µPD78320GJ-5BJ 80-pin plastic 80-pin plastic 74-pin plastic 74-pin plastic Recommended Condition Symbol Soldering Method Soldering Conditions Package peak temperature: Time: sec. max. above), Number times: twice less <Caution> second reflow should started after temperature device which would have been changed first reflow returned normal. Please avoid flux water washing after first reflow. Package peak temperature: Time: sec. max. above), Number times: twice less <Caution> second reflow should started after temperature device which would have been changed first reflow returned normal. Please avoid flux water washing after first reflow. Solder bath temperature: max. Time: sec. max., Number times: Once Preheating temperature: max. (package surface temperature) temperature: max. Time: sec. max. (Per device side) Infrared reflow IR35-00-2 VP15-00-2 Wave soldering part heating WS60-00-1 µPD78320L 68-pin plastic 68-pin plastic mil) mil) Soldering Method Soldering Conditions Package peak temperature: Time: sec. max. above), Number times: Once Package peak temperature: Time: sec. max. above), Number times: Once part temperature: max. Time: sec. max. (Per device side) Recommended Condition Symbol IR30-00-1 Infrared reflow part heating VP15-00-1 Caution more than soldering method should avoided (except case part heating). APPENDIX LIST 78K/ SERIES PRODUCTS (1/2) µPD78322 Basic instruction Minimum instruction execution time Internal memory Memory space Input lines Output (including analog inputs) operation) 16384 bits bits bytes (including analog inputs) 8192 bits µPD78320 µPD78312Note µPD78310Note µPD78312A µPD78310A operation) 8192 bits bits Pulse unit Real-time pulse unit 18-/16-bit free running timer 16-bit timer/event counter 16-bit compare register 18-bit capture register 18-bit capture/compare register Real-time output port Multi-function pulse unit 16-bit presettable up/down-counter 16-bit free running counter capture function 16-bit interval time High-precision output Real-time output port bits Count unit mode (4-multiplication mode) function available Count start function interval time external trigger available Count unit mode (4-multiplication mode) function available Count start function interval timer external trigger available Serial communication interface Dedicated on-chip baud rate generator UART channel channel 3-wire serial Eight 10-bit resolution inputs bits (full-duplex transmission/reception) Dedicated on-chip baud rete generator transfer modes (asynchronous mode, interface mode) µPD78320, 78322 converter Four 8-bit resolution inputs external, internal 8-level programmable priority Interrupt external, internal (shared with external 3-level programmable priority processing modes (vectored interrupt, context switching macro service functions) Note Maintenance product LIST 78K/ SERIES PRODUCTS (2/2) µPD78322 Test source Internal Instructions µPD78312 78310 significantly added. µPD78320 µPD78312Note µPD78310Note µPD78312A µPD78310A Instruction Following instructions added µPD78312 78310 MOVW rp1, !addr16 instruction MOVW !addr16, instruction On-chip watchdog timer Standby function (STOP/HALT) Pulse unit 20-bit time base counter Pseudo static refresh function 64-pin plastic shrink (750 mil) 64-pin plastic 64-pin plastic QUIP 68-pin plastic mil) 68-pin plastic Package mil) 74-pin plastic 80-pin plastic Note Maintenance product µPD78320, 78322 µPD78320, 78322 APPENDIX TOOLS DEVELOPMENT TOOLS following development tools available system development using µPD78322. Language Processor 78K/III series relocatable assembler (RA78K/III) Refers relocatable assembler which used commonly 78K/III series. Equipped with macro function, relocatable assembler aimed improved development efficiency. assembler also accompanied structured assembler which describe program control structure explicitly, thus making possible improve productivity maintainability program. Host machine PC-9800 series PC/AT compatible machine HP9000 series 700SPARCstationNEWS Part number Supply medium 3.5-inch MS-DOS5-inch 3.5-inch DOS5-inch HP-UXSunOSNEWS-OSDAT Cartridge tape (QIC-24) µS5A13RA78K3 µS5A10RA78K3 µS7B13RA78K3 µS7B10RA78K3 µS3P16RA78K3 µS3K15RA78K3 µS3R15RA78K3 78K/III series compiler (CC78K/III) Refers compiler which commonly used 78K/III series. This compiler program converting programs written language those object codes which executable microcontrollers. When using this compiler, 78K/III series relocatable assembler (RA78K/III) required. Part number PC-9800 series PC/AT compatible machine HP9000 series SPARCstation NEWS MS-DOS 5-inch 3.5-inch 5-inch HP-UX SunOS NEWS-OS Cartridge tape (QIC-24) Supply medium 3.5-inch Host machine µS5A13CC78K3 µS5A10CC78K3 µS7B13CC78K3 µS7B10CC78K3 µS3P16CC78K3 µS3K15CC78K3 µS3R15CC78K3 Remark Relocatable assembler compiler operations assured only host machine above. µPD78320, 78322 PROM Writing Tools This PROM programmer allows programming, stand-alone mode operation from host computer, single-chip microcontroller with on-chip PROM connection board provided separately available programmer adapter. program typical 256K-bit 4M-bit PROMs. PROM programmer made Data Japan Corporation. PROM programmer adapters writing programs µPD78P322 with general PROM programmer such PG-1500. PA-78P322GF µPD78P322GF PA-78P322GJ µPD78P322GJ PA-78P322K µPD78P322K PA-78P322KC µPD78P322KC PA-78P322KD µPD78P322KD PA-78P322L µPD78P322L Connects PG-1500 host machine serial parallel interface, controls PG-1500 host machine. PG-1500 UNISITE 2900 Hardware PA-78P322GF PA-78P322GJ PA-78P322K PA-78P322KC PA-78P322KD PA-78P322L Host Machine Software PG-1500 controller Supply medium 3.5-inch Part number PC-9800 series MS-DOS 5-inch 3.5-inch 5-inch µS5A13PG1500 µS5A10PG1500 µS7B13PG1500 PC/AT compatible machine µS7B10PG1500 Remark Operation PG-1500 controller guaranteed only host machines operating systems quoted above. µPD78320, 78322 Debugging Tools Hardware IE-78327-R IE-78320-RNote These in-circuit emulators which used development debugging application systems. Debugging performed connecting them host machine. IE-78327-R used commonly both µPD78322 subseries µPD78328 subseries. IE-78320-R used µPD78322 subseries. These emulation probes connecting IE-78327-R IE-78320-R target system. EP-78320GF-R: 80-pin plastic EP-78320GJ-R: 74-pin plastic EP-78320L-R 68-pin plastic This program controlling IE-78327-R from host machine. execute commands automatically, thus enabling more efficient debugging. EP-78320GF-R EP-78320GJ-R EP-78320L-R IE-78327-R control program controller) Host machine PC-9800 series MS-DOS 5-inch PC/AT compatible machine Software IE-78320-R control programNote controller) 3.5-inch 5-inch Supply medium 3.5-inch Part number µS5A13IE78327 µS5A10IE78327 µS7B13IE78327 µS7B10IE78327 This program controlling IE-78320-R from host machine. execute commands automatically, thus enabling more efficient debugging. Host machine PC-9800 series MS-DOS 5-inch PC/AT compatible machine 5-inch Supply medium 3.5-inch Part number µS5A13IE78320 µS5A10IE78320 µS7B10IE78320 Remarks operation each software assured only host machine above. µPD78322 subseries: µPD78320, 78322, 78P322, 78323, 78324, 78P324, 78320(A), 78320(A1), 78320(A2), 78322(A), 78322(A1), 78322(A2), 78323(A), 78323(A1), 78323(A2), 78324(A), 78324(A1), 78324(A2), 78P324(A), 78P324(A1), 78P324(A2) µPD78328 subseries: µPD78327, 78328, 78P328, 78327(A), 78328(A) Note existing product IE-78320-R maintenance product. going newly purchase in-circuit emulator, please alternative product IE-78327-R. Host machine PC-9800 series PC/AT compatible machine RS-232-C Development Tool Configurations Emulation probes Software IE-78327-R in-circuit emulator RS-232-C PROM programmer Relocatable assembler PG-1500 (With structured assembler) controller controller EP-78320GF-R EP-78320GJ-R EP-78320L-R Socket connecting emulation probe target system Note PG-1500 PROM-incorporated products EV-9200G-80 EV-9200G-74 PD78P322K µPD78P322KC µPD78P322KD Socket plastic µPD78P322GF PD78P322GJ µPD78P322L Programmer adapters Target system PA-78P322GF PA-78P322GJ PA-78P322L PA-78P322K PA-78P322KC PA-78P322KD µPD78320, 78322 Note socket supplied with emulation probe. Remark also possible host machine PG-1500 connecting them directly RS-232C. µPD78320, 78322 EVALUATION TOOLS evaluate functions µPD78322, following tools made available. Part Number EB-78320-98 Host Machine PC-9800 series Function connecting host machine, possible evaluate functions equipped µPD78322 simple manner. command system this product basically conforms that IE-78327-R IE-78320-R. Therefore, easy move development work application systems IE-78327-R IE78320-R. addition turbo access manager (µPD71P301)Note mounted board. EB-78320-PC PC/AT compatible machine Note turbo access manager (µPD71P301) maintenance product. Cautions This product development tool µPD78322 application systems. This product equipped with emulation function executing incorporated µPD78322. EMBEDDED SOFTWARE following embedded software programs available perform program development maintenance more efficiently. Eeal-time Real-time (RX78K/III) RX78K/III designed provide multi-task environment field control application where real-time operation required. using this real-time performance whole system improved allocating CPU's idle time other processings. RX78K/III provides system call based µITRON specifications. RX78K/III package provides tools (configurators) creating RX78K/III's nucleus multiple information table. Host machine PC-9800 series PC/AT compatible machine MS-DOS 5-inch 3.5-inch 5-inch Supply medium 3.5-inch Part number µS5A13RX78320 µS5A10RX78320 µS7B13RX78320 µS7B10RX78320 Caution purchase operating system above, need fill purchase application form beforehand sign contract allowing software. Remark When using real-time RX78K/III, need assembler package RA78K/III (optional) well. µPD78320, 78322 Fuzzy Inference Development Support System Fuzzy knowledge data creation tools (FE9000, FE9200) This program supports inputting/editing/evaluating (through simulation) fuzzy knowledge data (fuzzy rules membership functions). Host machine PC-9800 series PC/AT compatible machine Translator (FT78K3)Note MS-DOS 5-inch Winsows3.5-inch 5-inch Supply medium 3.5-inch Part number µS5A13FE9000 µS5A10FE9000 µS7B13FE9200 µS7B10FE9200 This program converts fuzzy knowledge data obtained with fuzzy knowledge data creation tools assembler source program RA78K/III. Host machine PC-9800 series PC/AT compatible machine MS-DOS 5-inch 3.5-inch 5-inch Supply medium 3.5-inch Part number µS5A13FT78K3 µS5A10FT78K3 µS7B13FT78K3 µS7B10FT78K3 Fuzzy inference module (FI78K/III)Note This program executes fuzzy inference. Fuzzy inference executed being linked fuzzy knowledge data converted translator. Host machine PC-9800 series PC/AT compatible machine Fuzzy inference debugger (FD78K/III) MS-DOS 5-inch 3.5-inch 5-inch Supply medium 3.5-inch Part number µS5A13FI78K3 µS5A10FI78K3 µS7B13FI78K3 µS7B10FI78K3 This support software program evaluating adjusting fuzzy knowledge data hardware level using in-circuit emulator. Host machine PC-9800 series PC/AT compatible machine MS-DOS 5-inch 3.5-inch 5-inch Supply medium 3.5-inch Part number µS5A13FD78K3 µS5A10FD78K3 µS7B13FD78K3 µS7B10FD78K3 Note Under development µPD78320, 78322 NOTES CMOS DEVICES PRECAUTION AGAINST SEMICONDUCTORS Note: Strong electric field, when exposed device, cause destruction gate oxide ultimately degrade device operation. Steps must taken stop generation static electricity much possible, quickly dissipate once, when occurred. Environmental control must adequate. When dry, humidifier should used. recommended avoid using insulators that easily build static electricity. Semiconductor devices must stored transported anti-static container, static shielding conductive material. test measurement tools including work bench floor should grounded. operator should grounded using wrist strap. Semiconductor devices must touched with bare hands. Similar precautions need taken boards with semiconductor devices HANDLING UNUSED INPUT PINS CMOS Note: connection CMOS device inputs cause malfunction. connection provided input pins, possible that internal input level generated noise, etc., hence causing malfunction. CMOS devices behave differently than Bipolar NMOS devices. Input levels CMOS devices must fixed high using pull-up pull-down circuitry. Each unused should connected with resistor, considered have possibility being output pin. handling related unused pins must judged device device related specifications governing devices. STATUS BEFORE INITIALIZATION DEVICES Note: Power-on does necessarily define initial status device. Production process does define initial operation status device. Immediately after power source turned devices with reset function have been initialized. Hence, power-on does guarantee out-pin levels, settings contents registers. Device initialized until reset signal received. Reset operation must executed immediately after power-on devices having reset function. µPD78320, 78322 this product, following User's Manual available separate volume. Please refer conjunction with manual. µPD78322 User's Manual IEU1248 export these products from Japan regulated Japanese government. export some these products prohibited without governmental license. export re-export some these products from country other than Japan also prohibited without license from that country. Please call sales representative. License needed customer must judge need license µPD78320 µPD78322 part this document copied reproduced form means without prior written consent Corporation. Corporation assumes responsibility errors which appear this document. Corporation does assume liability infringement patents, copyrights other intellectual property rights third parties arising from device described herein other liability arising from such device. license, either express, implied otherwise, granted under patents, copyrights other intellectual property rights Corporation others. While Corporation been making continuous effort enhance reliability semiconductor devices, possibility defects cannot eliminated entirely. minimize risks damage injury persons property arising from defect semiconductor device, customer must incorporate sufficient safety measures design, such redundancy, fire-containment, anti-failure features. devices classified into following three quality grades: "Standard", "Special", "Specific". Specific quality grade applies only devices developed based customer designated "quality assurance program" specific application. recommended applications device depend quality grade, indicated below. Customers must check quality grade each device before using particular application. Standard: Computers, office equipment, communications equipment, test measurement equipment, audio visual equipment, home electronic appliances, machine tools, personal electronic equipment industrial robots Special: Transportation equipment (automobiles, trains, ships, etc.), traffic control systems, anti-disaster systems, anti-crime systems, safety equipment medical equipment (not specifically designed life support) Specific: Aircrafts, aerospace equipment, submersible repeaters, nuclear reactor control systems, life support systems medical equipment life support, etc. quality grade devices "Standard" unless otherwise specified NEC's Data Sheets Data Books. customers intend devices applications other than those specified Standard quality grade, they should contact Sales Representative advance. Anti-radioactive design implemented this product. 94.11 MS-DOS Windows trademarks Microsoft Corporation. PC/AT trademarks Corporation. HP9000 series HP-UX trademarks Hewlett-Packard Company. SPARCstation trademark SPARC International, Inc. SunOS trademark Microsystems, Inc. NEWS NEWS-OS trademark Sony Corporation. TRON abbreviation Realtime Operating system Nucleus. ITRON abbreviation Industrial TRON. Other recent searchesSTFPC311 - STFPC311 STFPC311 Datasheet Ni8U-S12-AN6X - Ni8U-S12-AN6X Ni8U-S12-AN6X Datasheet MPC512x - MPC512x MPC512x Datasheet MLX90308 - MLX90308 MLX90308 Datasheet MANV250GE - MANV250GE MANV250GE Datasheet FW340 - FW340 FW340 Datasheet ADS7819 - ADS7819 ADS7819 Datasheet
Privacy Policy | Disclaimer |