MOS INTEGRATED CIRCUIT

Size: px
Start display at page:

Download "MOS INTEGRATED CIRCUIT"

Transcription

1 DATA SHEET MOS INTEGRATED CIRCIT µpd735 V5+ TM 6/8-BIT SINGLE-CHIP MICROCONTROLLER The µpd735 (V5+) is a single-chip microcontroller on which 6-bit CP, RAM, serial interface, timer, DMA controller, interrupt controller, etc. are all integrated. The µpd735 is software compatible with the 6/8-bit singlechip microcontroller µpd73 (V5 TM ). The V5+ greatly improves the DMA responsivity and transfer rate compared to the V5. FEATRES Software compatible with V5 Software compatible with µpd78/76 (in native mode) (some instructions added) Internal 6-bit architecture and external 8-bit data bus 3-stage pipeline method Minimum instruction cycle : 5 ns/8 MHz (external 6 MHz) : ns/ MHz (external MHz) Memory space Mbyte On-chip RAM : 56 words 8 bits Register bank (memory mapped method) : 8 banks Input port (port T) with comparator : 8 bits I/O lines (input port : 4 bits, input/output ports : bits) Serial interface : channels Internal dedicated baud rate generator Asynchronous mode and I/O interface mode Interrupt controller Programmable priority (8 levels) 3 types of interrupt response method Vectored interrupt function, register bank switching function, macro service function DRAM and pseudo SRAM refreshing function DMA controller : channels 4 types of DMA transfer mode Transfer rate Maximum 4 Mbytes/second (when stop control is not executed by DMARQ pin in demand release mode) Maximum Mbytes/second (when stop control is executed by DMARQ pin in demand release mode, or burst mode) Address pointer (linear) : bits Terminal counter : 6 bits 6-bit timer : channels Time base counter ( bits) : channel On-chip clock generator Programmable wait function Standby function (STOP, HALT) The information in this document is subject to change without notice. Document No. 85EJ7VDS (7th edition) Date Published November 997 N Printed in Japan The mark shows major revised points

2 µpd735 ORDERING INFORMATION Part Number Package External Clock (MHz) µpd735gj-8-5bg 94-pin plastic QFP ( mm) 6 µpd735gj--5bg 94-pin plastic QFP ( mm) µpd735l-8 84-pin plastic QFJ (5 5 mil) 6 µpd735l- 84-pin plastic QFJ (5 5 mil)

3 µpd735 Comparison between V5 and V5+ V5 V35 TM V5+ V35+ TM µpd73 µpd733 µpd735 µpd7335 Transfer processing method Depends on microprogram Depends on dedicated hardware Maximum transfer rate (8-MHz.6 Mbytes/second.8 Mbytes/second 4 Mbytes/second 5.3 Mbytes/second operation) Sampling timing of DMA request Between instruction execution cycles Between bus cycles DMA service channel In on-chip RAM area In special function register Specification method of transfer address Segment method Linear method DMA function Execution format in single-step mode DMA transfer/ instruction execution DMA transfer/ bus cycle Interrupt request during DMA transfer Accepts only NMI Not accepted (demand release mode) Number of necessary waits when Not necessary waits stop is controlled by DMARQ (demand release mode) Transfer processing units Byte/word Byte/word Byte Byte/word TC (terminal counter) setting value Number of times of DMA transfer (Number of times of DMA transfer) Generation timing of terminal counter TC = TC = FFFFH TC output low-level width Fixed Expanded by wait insertion Transmit clock output in Not available Available (SCK pin) asynchronous mode (channel ) Serial interface Serial error register Yes Serial status register Receive buffer full flag No In serial status register Transmit buffer empty flag No In serial status register All sent flag No In serial status register Interrupt function Interrupt source register No Yes External data bus 8 bits 6 bits 8 bits 6 bits Maximum operating frequency 8 MHz MHz 3

4 µpd735 PIN CONFIGRATION (Top View) 94-Pin Plastic QFP µpd735gj-8-5bg µpd735gj--5bg A NC A A9 A8 A7 A6 A5 A4 A3 A A A D7 D6 D5 D4 D3 D D D P7/CLKOT P6 A NC A3 A4 A5 A6 A7 A8 A9 RxD GND CTS TxD RxD CTS TxD P/DMARQ IC VDD VDD P/DMAAK NC P/TC P5 NC IC P4 P3 P P P EA MREQ IOSTB MSTB R/W REFRQ RESET VDD VDD X X GND GND NC NC VTH IC P3/DMARQ P4/DMAAK P5/TC P6/HLDAK P7/HLDRQ NMI (P) P/INTP P/INTP P3/INTP/INTAK P4/INT/POLL P5/TOT P6/SCK P7/READY PT PT PT PT3 PT4 PT5 NC PT6 PT7 IC Remarks. NC: Non-Connection. IC : Internally Connected Cautions. Fix IC pin individually to high level via a pull-up resistor externally.. Fix EA pin to low level. 4

5 µpd Pin Plastic QFJ µpd735l-8 µpd735l- P7/CLKOT 74 D 3 73 D 4 7 D 5 7 D3 6 7 D D D D7 66 A 65 A 64 A 3 63 A3 4 6 A4 5 6 A5 6 6 A A A A A 3 55 A 3 54 A A3 A4 A5 A6 A7 A8 A9 RxD GND CTS TxD RxD CTS TxD P/DMARQ IC VDD P/DMAAK P/TC IC P6 P5 IC P4 P3 P P P EA MREQ IOSTB MSTB R/W REFRQ RESET VDD X X GND VTH IC PT7 PT6 PT5 PT4 PT3 PT PT PT P7/READY P6/SCK P5/TOT P4/INT/POLL P3/INTP/INTAK P/INTP P/INTP NMI (P) P7/HLDRQ P6/HLDAK P5/TC P4/DMAAK P3/DMARQ Remark IC: Internally Connected Cautions. Fix IC pin individually to high level via a pull-up resistor externally. Fix EA pin to low level. 5

6 6 P/DMARQ P/DMAAK P/TC P3/DMARQ P4/DMAAK P5/TC TxD RxD P6/SCK CTS TxD RxD CTS PROGRAMMABLE DMA CONTROLLER SERIAL INTERFACE BAD RATE GENERATOR LC etc. PSW PC AL TA TB TC INTERNAL RAM 56 byte GR MACRO SERVICE CHANNEL STAGING LATCH STAGING LATCH ADM PFP INTERNAL ROM Note 8 Kbyte (reserved) INC BS CONTROL LOGIC A to A9 RESET HLDAK/P6 HLDRQ/P7 READY/P7 MREQ MSTB R/W IOSTB INTERNAL BLOCK DIAGRAM NMI (P) P/INTP P/INTP P3/INTP/INTAK P4/INT/POLL PROGRAMMABLE INTERRPT CONTROLLER INSTRCTION DECODER MICRO SEQENSER MICRO ROM QEE (6 byte) POLL/INT/P4 EA D to D7 6-BIT TIMER TIME BASE CONTER PORT PORT with COMPARATOR CG X X VDD TOT/P5 REFRQ CLKOT/P7 P P P PT to 7 VTH GND Note The internal ROM of 8 Kbytes is reserved for specific use such as testing and not user-accessible. µpd735

7 µpd735 CONTENTS. PIN FNCTIONS...8. Port Pins Non-port Pins INSTRCTION SETS.... Comparison between µpd78 and Instruction Set Operation....3 Instruction Set Table Number of Clocks Table ELECTRICAL SPECIFICATIONS PACKAGE DRAWINGS RECOMMENDED SOLDERING CONDITIONS

8 µpd735. PIN FNCTIONS. Port Pins Pin Name Input/Output Port Function Control Function P to P6 Input & output 8-bit input/output ports, each to P7/CLKOT Input & output/output be specified bit-by-bit System clock output NMI (P) Input sed as non-maskable interrupt request input (input port) P/INTP sed as both external interrupt P/INTP request input and input port P3/INTP/INTAK Input/input/output INT acknowledge signal output P4/POLL/INT Input & output/input/input sed as both specifiable input/ External interrupt request input output port and POLL input P5/TOT Input & output/output Input/output port specifiable Timer output P6/SCK bit-by-bit Serial clock output P7/READY Input & output/input READY input P/DMARQ Input & output/input 8-bit input/output port specifiable DMA request input (CH) P/DMAAK Input & output/input bit-by-bit DMA acknowledge output (CH) P/TC DMA end output (CH) P3/DMARQ Input & output/input DMA request input (CH) P4/DMAAK Input & output/output DMA acknowledge output (CH) P5/TC DMA end output (CH) P6/HLDAK Input & output/output HOLD acknowledge output P7/HLDRQ Input & output/input HOLD input PT to PT7 Input 8-bit input port with comparator Remark All port pins become input ports after reset is released. When using P3/INTP/INTAK as a INTAK pin, be sure to pull up the pin to avoid a malfunction of external interrupt controller after reset is released. 8

9 µpd735. Non-port Pins Pin Name Input/Output Function TxD Output Serial data output TxD RxD Input Serial data input RxD CTS Input & output CTS input in asynchronous mode, receive clock input/output in I/O interface mode CTS Input CTS input REFRQ Output DRAM refresh pulse output VTH Input Comparator reference voltage input RESET EA X X Reset signal input Fix to low level sed to connect crystal resonator for oscillating system clock. External clock is entered by entering reverse phase clock to both X and X pins. D to D7 Input & output 8-bit data bus A to A9 Output -bit address output MREQ MSTB R/W IOSTB VDD GND IC Output used to indicate that memory bus cycle has been started Memory read/memory write strobe output Read cycle/write cycle ID signal output I/O read/i/o write strobe output Positive power supply pins (all pins should be connected) GND pins (all pins should be connected) Internally connected (fix to high level via a pull-up resistor externally) 9

10 µpd735. INSTRCTION SETS The µpd735 instruction sets are compatible with those of µpd73.. Comparison between µpd78 and 76 The µpd735 instruction sets are upward-compatible with those of µpd78/76 in native mode. The following instructions are newly added to the µpd78/76. () Conditional branch instruction BTCLR Bit test instruction used for special function registers If, when this BTCLR is executed, the target special function register bit status is, the bit is reset () and the program is branched to short-label described in the operand. If the target bit status is, the program is moved to the next instruction. PSW is not changed in this instruction. (Descriptive format) Operand Mnemonic Special Function Special Function Register Address Register Bit Branch Address BTCLR sfr imm3 short-label () Interrupt instructions RETRBI Return instruction used for register banks This instruction is used to return the program from the interrupt service routine in which the register bank switching function is used. It cannot be used for returning from vectored interrupt servicing. (Descriptive format) Mnemonic Operand RETRBI None FINT This instruction is used to report the interrupt controller that interrupt servicing has ended. If an interrupt other than NMI, INT, and software interrupt is used, this instruction must be executed prior to the instruction for returning from interrupt servicing. It should not be used for NMI, INT and software interrupts. (Descriptive format) Mnemonic FINT Operand None (3) CP instruction STOP Instruction for transition to STOP state (Descriptive format) Mnemonic STOP Operand None

11 µpd735 (4) Register bank switch instructions BRKCS sed to switch register banks A register bank is switched to the register bank indicated by the lower 3 bits in the 6-bit register described in the operand. The program is also branched with this instruction to the address obtained from the PS stored in advance in the new register bank and the vector PC. The RETRBI instruction is used to return the program from the new register bank. (Descriptive format) Mnemonic BRKCS Operand reg6 TSKSW sed to switch register banks Just like the BRKCS instruction, this instruction is also executed to select a register bank. The program is branched to the address obtained from the PS stored in advance in the new register bank and the address obtained from the PC save area. (Descriptive format) Mnemonic TSKSW Operand reg6 (5) Data transfer instructions MOVSPA sed to transfer SS and SP values This instruction is executed to transfer both SS and SP values before the register bank is switched to SS and SP of the current (post-switching) register bank. (Descriptive format) Mnemonic MOVSPA Operand None MOVSPB sed to transfer SS and SP values This instruction is executed to transfer the SS and SP values of the current (pre-switching) register bank to the SS and SP of the new register bank indicated by the lower 3 bits in the 6- bit register described in the operand. (Descriptive format) Mnemonic MOVSPB Operand reg6 Some µpd78/76 instructions should be much cared as shown below when used for the µpd735. I/O instruction, primitive I/O instruction If PSW IBRK flag is reset (), an interrupt is generated without executing this instruction. Be sure to set () the IBRK flag when using the I/O instruction. FPO instruction An interrupt is generated without executing this instruction.

12 µpd735. Instruction Set Operation Table -. Operand Identifier Identifier reg, reg reg8, reg8 reg6, reg6 dmem mem mem8 mem6 mem3 sfr imm 8-/6-bit general register 8-bit general register 6-bit general register 8-/6-bit memory location 8-/6-bit memory location 8-bit memory location 6-bit memory location 3-bit memory location 8-bit special function register location Constant within to FFFFH Description imm3 Constant within to 7 imm4 imm8 imm6 acc sreg src-table src-block dst-block near-proc far-proc near-label short-label far-label memptr6 memptr3 regptr6 pop-value fp-op R Constant within to FH Constant within to FFH Constant within to FFFFH Register AW or AL Segment register 56-byte conversion table name Register IX-addressed block name Register IY-addressed block name Procedure in the current program segment Procedure in another program segment Label in the current program segment Label within end of instruction to 8 to +7 bytes Label in another program segment Word including location offset in the current program segment to which control is to be passed Double-word including location offset in another program segment to which control is to be passed and segment base address 6-bit general register including location offset in another program segment to which control is to be passed Number of bytes to be abandoned from stack ( to 64K, normally even number) Immediate value to judge instruction code of external floating point operation chip Register set

13 µpd735 Table -. Operation Code Identifier Identifier Description W Byte/word specification bit (: byte, : word). However, when s =, the sign extended byte data should be 6-bit operand even when W is. reg, reg Register field ( to ) mem Memory field ( to ) mod Mode field ( to ) s Sign extension specification bit (: Sign is not extended, : Sign is extended) X, XXX, YYY, ZZZ Data used to judge instruction code of external floating-point operation chip Table -3. Operation Identifier (/) AW AH AL BW CW CL DW SP PC PSW IX IY PS DS DS SS AC CY P S Z DIR IE V BRK Identifier Accumulator (6 bits) Accumulator (upper byte) Accumulator (lower byte) Register BW (6 bits) Register CW (6 bits) Register CW (lower byte) Register DW (6 bits) Stack pointer (6 bits) Program counter (6 bits) Program status word (6 bits) Index register (source) (6 bits) Index register (destination) (6 bits) Program segment register (6 bits) Data segment register (6 bits) Data segment register (6 bits) Stack segment register (6 bits) Auxiliary carry flag Carry flag Parity flag Sign flag Zero flag Direction flag Interrupt enable flag Overflow flag Break flag Description ( ) Contents in memory shown in ( ) disp ext-disp8 Displacement (8/6 bits) 6 bits obtained by extending sign of 8-bit displacement 3

14 µpd735 Table -3. Operation Identifier (/) Identifier temp Temporary register (8/6/3 bits) tmpcy Temporary carry flag ( bit) seg Immediate segment data (6 bits) offset Immediate offset data (6 bits) Transfer direction + Addition Subtraction Multiplication Division % Modulo H H AND OR Exclusive OR -digit hexadecimal number 4-digit hexadecimal number Description Table -4. Flag Operation Identifier Identifier (Blank) No change Cleared to Set to Set or cleared according to the result Not defined R The previously saved value is restored. Description Table -5. Memory Addressing mem mod BW + IX BW + IX + disp 8 BW + IX + disp 6 BW + IY BW + IY + disp 8 BW + IY + disp 6 BP + IX BP + IX + disp 8 BP + IX + disp 6 BP + IY BP + IY + disp 8 BP + IY + disp 6 IX IX + disp 8 IX + disp 6 IY IY + disp 8 IY + disp 6 DIRECT ADDRESS BP + disp 8 BP + disp 6 BW BW + disp 8 BW + disp 6 4

15 µpd735 Table -6. 8/6-Bit General Register Selection reg, reg W = W = AL AW CL CW DL DW BL BW AH SP CH BP DH IX BH IY Table -7. Segment Register Selection sreg DS PS SS DS 5

16 6 Group Mnemonic Operand Data transfer MOV reg,reg mem,reg reg,mem mem,imm reg,imm Operation Code W reg reg W mod reg mem W mod reg mem W mod mem W reg Bytes to 4 to 4 3 to 6 to 3 reg reg (mem) reg reg (mem) (mem) imm reg imm Operation Flags AC CY V P S Z.3 Instruction Set Table acc,dmem dmem,acc W W 3 3 When W =, AL (dmem) When W =, AH (dmem + ), AL (dmem) When W =, (dmem) AL When W =, (dmem + ) AH, (dmem) AL sreg,reg6 sreg reg sreg reg6 sreg : SS, DS, DS sreg,mem6 mod sreg mem to 4 sreg (mem6) sreg : SS, DS, DS reg6,sreg sreg reg reg6 sreg mem6,sreg mod sreg mem to 4 (mem6) sreg DS,reg6, mem3 DS,reg6, mem3 mod reg mem mod reg mem to 4 to 4 reg6 (mem3) DS (mem3 + ) reg6 (mem3) DS (mem3 + ) AH,PSW AH S, Z, F, AC, F, P, IBRK, CY PSW,AH S, Z, F, AC, F, P, IBRK, CY AH LDEA reg6,mem6 mod reg mem to 4 reg6 mem6 TRANS src-table AL (BW + AL) XCH reg,reg W reg reg reg reg mem,reg reg,mem AW,reg6 reg6,aw W reg mod reg mem to 4 (mem) reg AW reg6 MOVSPA Note New register bank SS and SP old register bank SS and SP MOVSPB Note reg6 reg Note These instructions are newly added to the µ PD78/76. 3 SS and SP of reg6-indicated new register bank old register bank SS and SP µpd735

17 Group Mnemonic Operand Repeat prefix REPC REPNC Operation Code Bytes Operation Executes the primitive block transfer instruction in the continued byte while CW, and decrements CW by one. If any interruption is held at this time, it is processed. The program exits the loop when CY. Same as above. The program exits the loop when CY. Flags AC CY V P S Z REP REPE REPZ Executes the primitive block transfer instruction in the continued byte while CW, and decrements CW by one. If any interruption is held at this time, it is processed. The program exits the loop when the primitive block transfer instruction is CMPBK or CMPM, and when Z. REPNE REPNZ Same as above. The program exits the loop when Z. Primitive block transfer MOVBK CMPBK CMPM LDM STM dst-block, src-block src-block, dst-block dst-block src-block dst-block W W W W W When W =, (IY) (IX) DIR = : IX IX +, IY IY + DIR = : IX IX, IY IY When W =, (IY +, IY) (IX +, IX) DIR = : IX IX +, IY IY + DIR = : IX IX, IY IY When W =, (IX) (IY) DIR = : IX IX +, IY IY + DIR = : IX IX, IY IY When W =, (IX +, IX) (IY +, IY) DIR = : IX IX +, IY IY + DIR = : IX IX, IY IY When W =, AL (IY) DIR = : IY IY + ; DIR = : IY IY When W =, AW (IY +, IY) DIR = : IY IY + ; DIR = : IY IY When W =, AL (IX) DIR = : IX IX + ; DIR = : IX IX When W =, AW (IX +, IX) DIR = : IX + ; DIR = : IX IX When W =, (IY) AL DIR = : IY IY + ; DIR = : IY IY When W =, (IY +, IY) AW DIR = : IY IY + ; DIR = : IY IY µpd735 7

18 8 Group Mnemonic Operand Operation Code Bytes Operation Flags AC CY V P S Z Bit field operation INS reg8,reg8 reg reg 3 6-bit field AW reg8,imm4 4 6-bit field AW reg EXT reg8,reg8 3 AW 6-bit field reg reg reg8,imm4 4 AW 6-bit field reg I/O Primitive I/O IN OT INM OTM Note Note Note Note acc,imm8 acc,dw imm8,acc DW,acc dst-block,dw DW,src-block W W W W W W When W =, AL (imm8) When W =, AH (imm8 + ), AL (imm8) When W =, AL (DW) When W =, AH (DW + ), AL (DW) When W =, (imm8) AL When W =, (imm8 + ) AH, (imm8) AL When W =, (DW) AL When W =, (DW + ) AH, (DW) AL When W =, (IY) (DW) DIR = : IY IY + ; DIR = : IY IY When W =, (IY +, IY) (DW +, DW) DIR = : IY IY + ; DIR = : IY IY When W =, (DW) (IX) DIR = : IX IX + ; DIR = : IX IX When W =, (DW +, DW) (IX +, IX) DIR = : IX IX + ; DIR = : IX IX Note When IBRK =, a software interrupt is generated automatically and the instruction is not executed. µpd735

19 Group Mnemonic Operand Operation Code Bytes Operation Flags AC CY V P S Z Addition/ subtraction ADD reg,reg mem,reg W W reg reg mod reg mem to 4 reg reg + reg (mem) (mem) + reg reg,mem W mod reg mem to 4 reg reg + (mem) reg,imm s W reg 3 to 4 reg reg + imm mem,imm s W mod mem 3 to 6 (mem) (mem) + imm acc,imm W to 3 When W =, AL AL + imm When W =, AW AW + imm ADDC reg,reg W reg reg reg reg + reg + CY mem,reg W mod reg mem to 4 (mem) (mem) + reg + CY reg,mem W mod reg mem to 4 reg reg + (mem) + CY reg,imm s W reg 3 to 4 reg reg + imm + CY mem,imm s W mod mem 3 to 6 (mem) (mem) + imm + CY acc,imm W to 3 When W =, AL AL + imm + CY When W =, AW AW + imm + CY SB reg,reg W reg reg reg reg reg mem,reg W mod reg mem to 4 (mem) (mem) reg reg,mem W mod reg mem to 4 reg reg (mem) reg,imm s W reg 3 to 4 reg reg imm mem,imm s W mod mem 3 to 6 (mem) (mem) imm acc,imm W to 3 When W =, AL AL imm When W =, AW AW imm SBC reg,reg W reg reg reg reg reg CY mem,reg W mod reg mem to 4 (mem) (mem) reg CY 9 reg,mem reg,imm mem,imm acc,imm W s W s W W mod reg mem reg mod mem to 4 3 to 4 3 to 6 to 3 reg reg (mem) CY reg reg imm CY (mem) (mem) imm CY When W =, AL AL imm CY When W =, AW AW imm CY µpd735

20 Group Mnemonic Operand Operation Code Bytes Operation Flags AC CY V P S Z BCD operation ADD4S SB4S dst BCD string dst BCD string + src BCD string dst BCD string dst BCD string src BCD string Note Note CMP4S dst BCD string src BCD string Note ROL4 reg8 reg 3 ALL pper Byte reg Lower Byte mem8 mod mem 3 to 5 ALL pper Byte mem Lower Byte ROR4 reg8 reg 3 ALL pper Byte reg Lower Byte mem8 mod mem 3 to 5 ALL pper Byte mem Lower Byte Increment/ decrement INC reg8 mem W reg mod mem to 4 reg8 reg8 + (mem) (mem) + reg6 reg reg6 reg6 + DEC reg8 reg reg8 reg8 mem W mod mem to 4 (mem) (mem) reg6 reg reg6 reg6 Note The number of BCD digits is given in the CL register. The value can be set within to 54. µpd735

21 Group Mnemonic Operand Operation Code Bytes Operation Flags AC CY V P S Z Multiplication ML reg8 reg AW AL reg8 AH = : CY, V AH : CY, V mem8 mod mem to 4 AW AL (mem8) AH = : CY, V AH : CY, V reg6 reg DW, AW AW reg6 DW = : CY, V DW = : CY, V mem6 mod mem to 4 DW, AW AW (mem6) DW = : CY, V DW = : CY, V ML reg8 reg AW AL reg8 Extension of AH = AL sign: CY, V Extension of AH AL sign: CY, V mem8 mod mem to 4 AW AL (mem8) Extension of AH = AL sign: CY, V Extension of AH AL sign: CY, V reg6 reg DW, AW AW reg6 Extension of DW = AW sign: CY, V Extension of DW AW sign: CY, V mem6 mod mem to 4 DW, AW AW (mem6) Extension of DW = AW sign: CY, V Extension of DW AW sign: CY, V reg6, (reg6,) Note imm8 reg reg 3 reg6 reg6 imm8 Product 6 bits: CY, V Product > 6 bits: CY, V reg6, mem6, imm8 mod reg mem 3 to 5 reg6 (mem6) imm8 Product 6 bits: CY, V Product > 6 bits: CY, V reg6, (reg6,) Note imm6 reg6, mem6, imm6 reg reg mod reg mem 4 4 to 6 Note The nd operand is omissible. If omitted, the st operand is assumed. reg6 reg6 imm6 Product 6 bits: CY, V Product > 6 bits: CY, V reg6 (mem6) imm6 Product 6 bits: CY, V Product > 6 bits: CY, V µpd735

22 Group Mnemonic Operand Operation Code Bytes Operation Flags AC CY V P S Z nsigned division DIV reg8 reg temp AW When temp reg8 FFH AH temp%reg8, AL temp reg8 When temp reg8 > FFH (SP, SP ) PSW, (SP 3, SP 4) PS (SP 5, SP 6) PC, SP SP 6 IE, BRK, PS (3, ), PC (, ) mem8 mod mem to 4 temp AW When temp (mem8) FFH AH temp%(mem8), AL temp (mem8) When temp (mem8) > FFH (SP, SP ) PSW, (SP 3, SP 4) PS (SP 5, SP 6) PC, SP SP 6 IE, BRK, PS (3, ), PC (, ) reg6 reg temp DW, AW When temp reg6 FFFFH DW temp%reg6, AW temp reg6 When temp reg6 > FFFFH (SP, SP ) PSW, (SP 3, SP 4) PS (SP 5, SP 6) PC, SP SP 6 IE, BRK, PS (3, ), PC (, ) mem6 mod mem to 4 temp DW, AW When temp (mem6) FFFFH DW temp%(mem6), AW temp (mem6) When temp (mem6) > FFFFH (SP, SP ) PSW, (SP 3, SP 4) PS (SP 5, SP 6) PC, SP SP 6 IE, BRK, PS (3, ), PC (, ) µpd735

23 Group Mnemonic Operand Operation Code Bytes Operation Flags AC CY V P S Z Signed division DIV reg8 reg temp AW When temp reg8 > and temp reg8 7FH or temp reg8 < and temp reg8 > 7FH AH temp%reg8, AL temp reg8 When temp reg8 > and temp reg8 > 7FH or temp reg8 > and temp reg8 < 7FH (SP, SP ) PSW, (SP 3, SP 4) PS (SP 5, SP 6) PC, SP SP 6 IE, BRK, PS (3, ), PC (, ) mem8 mod mem to 4 temp AW When temp (mem8) > and temp (mem8) 7FH or temp (mem8) < and temp (mem8) > 7FH AH temp%(mem8), AL temp (mem8) When temp (mem8) > and temp (mem8) > 7FH or temp (mem8) > and temp (mem8) < 7FH (SP, SP ) PSW, (SP 3, SP 4) PS (SP 5, SP 6) PC, SP SP 6 IE, BRK, PS (3, ), PC (, ) reg6 reg temp DW, AW When temp reg6 > and temp reg6 7FFFH or temp reg6 < and temp reg6 > 7FFFH DW temp%reg6, AW temp reg6 When temp reg6 > and temp reg6 > 7FFFH or temp reg6 > and temp reg6 < 7FFFH (SP, SP ) PSW, (SP 3, SP 4) PS (SP 5, SP 6) PC, SP SP 6 IE, BRK, PS (3, ), PC (, ) mem6 mod mem to 4 temp DW, AW When temp (mem6) > and temp (mem6) 7FFFH or temp (mem6) < and temp (mem6) > 7FFFH DW temp%(mem6), AW temp (mem6) When temp (mem6) > and temp (mem6) > 7FFFH or temp (mem6) > and temp (mem6) < 7FFFH (SP, SP ) PSW, (SP 3, SP 4) PS (SP 5, SP 6) PC, SP SP 6 IE, BRK, PS (3, ), PC (, ) µpd735 3

24 4 Group Mnemonic Operand BCD adjustment ADJBA ADJ4A Operation Code Bytes Operation When AL FH > 9 or AC =, AL AL + 6 AH AH +, AC, CY AC, AL AL FH When AL FH > 9 or AC =, AL AL + 6, AC When AL > 9FH or CY =, AL AL + 6H, CY Flags AC CY V P S Z ADJBS When AL FH > 9 or AC =, AL AL 6, AH AH, AC CY AC, AL AL FH ADJ4S When AL FH > 9 or AC =, AL AL 6, AC When AL > 9FH or CY =, AL AL 6H, CY Data conversion CVTBD CVTDB AH AL AH, AL AL%AH AL AH AH + AL, AH CVTBW When AL < 8H, AH. In other cases, AH FFH. CVTWL When AW < 8H, DW. In other cases, DW FFFFH. Compare CMP reg,reg W reg reg reg reg mem,reg W mod reg mem to 4 (mem) reg reg,mem W mod reg mem to 4 reg (mem) reg,imm s W reg 3 to 4 reg imm mem,imm s W mod mem 3 to 6 (mem) imm acc,imm W to 3 When W =, AL imm When W =, AW imm Complement operation NOT reg mem W W reg mod mem to 4 reg reg (mem) (mem) NEG reg W reg reg reg + mem W mod mem to 4 (mem) (mem) + µpd735

25 Group Mnemonic Operand Operation Code Bytes Operation Flags AC CY V P S Z Logical operation TEST reg,reg mem,reg reg,mem W W reg reg mod reg mem to 4 reg reg (mem) reg reg,imm W reg 3 to 4 reg imm mem,imm W mod mem 3 to 6 (mem) imm acc,imm W to 3 When W =, AL imm8 When W =, AW imm6 AND reg,reg W reg reg reg reg reg mem,reg W mod reg mem to 4 (mem) (mem) reg reg,mem W mod reg mem to 4 reg reg (mem) reg,imm W reg 3 to 4 reg reg imm mem,imm W mod mem 3 to 6 (mem) (mem) imm acc,imm W to 3 When W =, AL AL imm8 When W =, AW AW imm6 OR reg,reg W reg reg reg reg reg mem,reg W mod reg mem to 4 (mem) (mem) reg reg,mem W mod reg mem to 4 reg reg (mem) reg,imm W reg 3 to 4 reg reg imm mem,imm W mod mem 3 to 6 (mem) (mem) imm acc,imm W to 3 When W =, AL AL imm8 When W =, AW AW imm6 XOR reg,reg W reg reg reg reg reg mem,reg W mod reg mem to 4 (mem) (mem) reg reg,mem W mod reg mem to 4 reg reg (mem) 5 reg,imm mem,imm acc,imm W W W reg mod mem 3 to 4 3 to 6 to 3 reg reg imm (mem) (mem) imm When W =, AL AL imm8 When W =, AW AW imm6 µpd735

26 6 Group Mnemonic Operand Bit manipulation TEST reg8,cl mem8,cl reg6,cl mem6,cl reg8,imm3 mem8,imm3 reg6,imm4 mem6,imm4 Operation Code reg mod mem reg mod mem reg mod mem reg mod mem Bytes 3 3 to to to to 6 reg8 bit No. CL = : Z reg8 bit No. CL = : Z (mem8) bit No. CL = : Z (mem8) bit No. CL = : Z reg6 bit No. CL = : Z reg6 bit No. CL = : Z (mem6) bit No. CL = : Z (mem6) bit No. CL = : Z reg8 bit No. imm3 = : Z reg8 bit No. imm3 = : Z (mem8) bit No. imm3 = : Z (mem8) bit No. imm3 = : Z reg6 bit No. imm4 = : Z reg6 bit No. imm4 = : Z (mem6) bit No. imm4 = : Z (mem6) bit No. imm4 = : Z Operation Flags AC CY V P S Z NOT reg8,cl reg 3 reg8 bit No. CL reg8 bit No. CL mem8,cl mod mem 3 to 5 (mem8) bit No. CL (mem8) bit No. CL reg6,cl reg 3 reg6 bit No. CL reg6 bit No. CL mem6,cl mod mem 3 to 5 (mem6) bit No. CL (mem6) bit No. CL reg8,imm3 reg 4 reg8 bit No. imm3 reg8 bit No. imm3 mem8,imm3 mod mem 4 to 6 (mem8) bit No. imm3 (mem8) bit No. imm3 reg6,imm4 reg 4 reg6 bit No. imm4 reg6 bit No. imm4 mem6,imm4 mod mem 4 to 6 (mem6) bit No. imm4 (mem6) bit No. imm4 nd byte Note 3rd byte Note Note st byte = FH NOT CY CY CY µpd735

27 Group Mnemonic Operand Operation Code Bytes Operation Flags AC CY V P S Z Bit manipulation CLR reg8,cl mem8,cl reg mod mem 3 3 to 5 reg8 bit No. CL (mem8) bit No. CL reg6,cl reg 3 reg6 bit No. CL mem6,cl mod mem 3 to 5 (mem6) bit No. CL reg8,imm3 reg 4 reg8 bit No. imm3 mem8,imm3 mod mem 4 to 6 (mem8) bit No. imm3 reg6,imm4 reg 4 reg6 bit No. imm4 mem6,imm4 mod mem 4 to 6 (mem6) bit No. imm4 SET reg8,cl reg 3 reg8 bit No. CL mem8,cl mod mem 3 to 5 (mem8) bit No. CL reg6,cl reg 3 reg6 bit No. CL mem6,cl mod mem 3 to 5 (mem6) bit No. CL reg8,imm3 reg 4 reg8 bit No. imm3 mem8,imm3 mod mem 4 to 6 (mem8) bit No. imm3 reg6,imm4 reg 4 reg6 bit No. imm4 mem6,imm4 mod mem 4 to 6 (mem6) bit No. imm4 nd byte Note 3rd byte Note Note st byte = FH CLR CY CY DIR DIR 7 SET CY DIR CY DIR µpd735

28 8 Group Mnemonic Operand Operation Code Bytes Operation Flags AC CY V P S Z Shift SHL reg, W reg CY reg MSB, reg reg When reg MSB CY, V When reg MSB = CY, V mem, W mod mem to 4 CY (mem) MSB, (mem) (mem) When (mem) MSB CY, V When (mem) MSB = CY, V reg,cl mem,cl reg,imm8 mem,imm8 W W W W reg mod mem reg mod mem to to 5 The following operations are repeated while temp CL and temp. CY reg MSB, reg reg temp temp The following operations are repeated while temp CL and temp. CY (mem) MSB, (mem) (mem) temp temp The following operations are repeated while temp imm8 and temp. CY reg MSB, reg reg temp temp The following operations are repeated while temp imm8 and temp. CY (mem) MSB, (mem) (mem) temp temp µpd735

29 Group Mnemonic Operand Operation Code Bytes Operation Flags AC CY V P S Z Shift SHR reg, W reg CY reg LSB, reg reg reg MSB bit following reg MSB: V reg MSB = bit following reg MSB: V mem, W mod mem to 4 CY (mem) LSB, (mem) (mem) (mem) MSB bit following (mem) MSB: V (mem) MSB = bit following (mem) MSB: V 9 SHRA reg,cl mem,cl reg,imm8 mem,imm8 reg, mem, reg,cl mem,cl reg,imm8 mem,imm8 W W W W W W W W W W reg mod mem reg mod mem reg mod mem reg mod mem reg mod mem to to 5 to 4 to to 5 The following operations are repeated while temp CL and temp. CY reg LSB, reg reg temp temp The following operations are repeated while temp CL and temp. CY (mem) LSB, (mem) (mem) temp temp The following operations are repeated while temp imm8 and temp. CY reg LSB, reg reg temp temp The following operations are repeated while temp imm8 and temp. CY (mem) LSB, (mem) (mem) temp temp CY reg LSB, reg reg, V The operand MSB remains the same status. CY (mem) LSB, (mem) (mem), V The operand MSB remains the same status. The following operations are repeated while temp CL and temp. CY reg LSB, reg reg temp temp The operand MSB remains the same status. The following operations are repeated while temp CL and temp. CY (mem) LSB, (mem) (mem) temp temp The operand MSB remains the same status. The following operations are repeated while temp imm8 and temp. CY reg LSB, reg reg temp temp The operand MSB remains the same status. The following operations are repeated while temp imm8 and temp. CY (mem) LSB, (mem) (mem) temp temp The operand MSB remains the same status. µpd735

30 3 Group Mnemonic Operand Operation Code Bytes Operation Flags AC CY V P S Z Rotate ROL reg, W reg CY reg MSB, reg reg + CY reg MSB CY: V reg MSB = CY: V mem, W mod mem to 4 CY (mem) MSB, (mem) (mem) + CY (mem) MSB CY: V (mem) MSB = CY: V ROR reg,cl mem,cl reg,imm8 mem,imm8 reg, mem, reg,cl mem,cl reg,imm8 mem,imm8 W W W W W W W W W W reg mod mem reg mod mem reg mod mem reg mod mem reg mod mem to to 5 to 4 to to 5 The following operations are repeated while temp CL and temp. CY reg MSB, reg reg + CY temp temp The following operations are repeated while temp CL and temp. CY (mem) MSB, (mem) (mem) + CY temp temp The following operations are repeated while temp imm8 and temp. CY reg MSB, reg reg + CY temp temp The following operations are repeated while temp imm8 and temp. CY (mem) MSB, (mem) (mem) + CY temp temp CY reg LSB, reg reg reg MSB CY reg MSB bit following reg MSB: V reg MSB = bit following reg MSB: V CY (mem) LSB, (mem) (mem) (mem) MSB CY (mem) MSB bit following (mem) MSB: V (mem) MSB = bit following (mem) MSB: V The following operations are repeated while temp CL and temp. CY reg LSB, reg reg reg MSB CY temp temp The following operations are repeated while temp CL and temp. CY (mem) LSB, (mem) (mem) (mem) MSB CY temp temp The following operations are repeated while temp imm8 and temp. CY reg LSB, reg reg reg MSB CY temp temp The following operations are repeated while temp imm8 and temp. CY (mem) LSB, (mem) (mem) (mem) MSB CY temp temp µpd735

31 Group Mnemonic Operand Rotate ROLC reg, mem, reg,cl mem,cl Operation Code W reg W mod mem W reg W mod mem Bytes to 4 to 4 Operation tmpcy CY, CY reg MSB reg reg + tmpcy reg MSB CY: V reg MSB = CY: V tmpcy CY, CY (mem) MSB (mem) (mem) + tmpcy (mem) MSB CY: V (mem) MSB = CY: V The following operations are repeated while temp CL and temp. tmpcy CY, CY reg MSB reg reg + tmpcy temp temp The following operations are repeated while temp CL and temp. tmpcy CY, CY (mem) MSB (mem) (mem) + tmpcy temp temp Flags AC CY V P S Z reg,imm8 W reg 3 The following operations are repeated while temp imm8 and temp. tmpcy CY, CY reg MSB reg reg + tmpcy temp temp mem,imm8 W mod mem 3 to 5 The following operations are repeated while temp imm8 and temp. tmpcy CY, CY (mem) MSB (mem) (mem) + tmpcy temp temp µpd735 3

32 3 Group Mnemonic Operand Operation Code Bytes Operation Flags AC CY V P S Z Rotate RORC reg, W reg tmpcy CY, CY reg LSB reg reg reg MSB tmpcy reg MSB bit following reg MSB: V reg MSB = bit following reg MSB: V mem, W mod mem to 4 tmpcy CY, CY (mem) LSB (mem) (mem) (mem) MSB tmpcy (mem) MSB bit following (mem) MSB: V (mem) MSB = bit following (mem) MSB: V reg,cl W reg The following operations are repeated while temp CL and temp. tmpcy CY, CY reg LSB reg reg reg MSB tmpcy temp temp mem,cl W mod mem to 4 The following operations are repeated while temp CL and temp. tmpcy CY, CY (mem) LSB (mem) (mem) (mem) MSB tmpcy temp temp reg,imm8 mem,imm8 W W reg mod mem 3 3 to 5 The following operations are repeated while temp imm8 and temp. tmpcy CY, CY reg LSB reg reg reg MSB tmpcy temp temp The following operations are repeated while temp imm8 and temp. tmpcy CY, CY (mem) LSB (mem) (mem) (mem) MSB tmpcy temp temp µpd735

33 Group Mnemonic Operand Subroutine control CALL near-proc regptr6 memptr6 Operation Code reg mod mem Bytes 3 to 4 Operation (SP, SP ) PC, SP SP PC PC + disp (SP, SP ) PC, PC regptr6 SP SP (SP, SP ) PC, SP SP PC (memptr6) Flags AC CY V P S Z far-proc 5 (SP, SP ) PS, (SP 3, SP 4) PC SP SP 4 PS seg, PC offset memptr3 mod mem to 4 (SP, SP ) PS, (SP 3, SP 4) PC SP SP 4 PS (memptr3 + ), PC (memptr3) RET pop-value 3 PC (SP +, SP) SP SP + PC (SP +, SP) SP SP +, SP SP + pop-value PC (SP +, SP) PS (SP + 3, SP + ) SP SP + 4 pop-value 3 PC (SP +, SP) PS (SP + 3, SP + ) SP SP + 4, SP SP + pop-value µpd735 33

34 34 Group Mnemonic Operand Stack manipulation PSH mem6 reg6 sreg PSW Operation Code mod mem reg sreg Bytes to 4 (SP, SP ) (mem6) SP SP (SP, SP ) reg6 SP SP (SP, SP ) sreg SP SP (SP, SP ) PSW SP SP Operation Flags AC CY V P S Z R Push registers on the stack POP imm8 imm6 mem6 reg6 sreg PSW reg sreg mod mem 3 to 4 (SP, SP ) imm8 sign extension SP SP (SP, SP ) imm6 SP SP (mem6) (SP +, SP) SP SP + reg6 (SP +, SP) SP SP + sreg (SP +, SP) SP SP + PSW (SP +, SP) SP SP + sreg: SS, DS, DS R R R R R R R Pop registers from the stack PREPARE imm6,imm8 4 Prepare New Stack Frame DISPOSE Dispose of Stack Frame Branch BR near-label 3 PC PC + disp short-label PC PC + ext-disp8 regptr6 reg PC regptr6 memptr6 mod mem to 4 PC (memptr6) far-label memptr3 mod mem 5 to 4 PS seg PC offset PS (memptr3 + ) PC (memptr3) µpd735

35 Group Mnemonic Operand Operation Code Bytes Operation Flags AC CY V P S Z Conditional branch BV BNV short-label short-label if V = if V = PC PC + ext-disp8 PC PC + ext-disp8 BC BL BNC BNL BE BZ BNE BNZ short-label short-label short-label short-label if CY = if CY = if Z = if Z = PC PC + ext-disp8 PC PC + ext-disp8 PC PC + ext-disp8 PC PC + ext-disp8 BNH short-label if CY Z = PC PC + ext-disp8 BH short-label if CY Z = PC PC + ext-disp8 BN short-label if S = PC PC + ext-disp8 BP short-label if S = PC PC + ext-disp8 BPE short-label if P = PC PC + ext-disp8 BPO short-label if P = PC PC + ext-disp8 BLT short-label if S V = PC PC + ext-disp8 BGE short-label if S V = PC PC + ext-disp8 BLE short-label if (S V) Z = PC PC + ext-disp8 BGT short-label if (S V) Z = PC PC + ext-disp8 DBNZNE DBNZE DBNZ short-label short-label short-label CW = CW if Z = and CW CW = CW if Z = and CW CW = CW if CW PC PC + ext-disp8 PC PC + ext-disp8 PC PC + ext-disp8 BCWZ short-label if CW = PC PC + ext-disp8 35 BTCLR Note sfr, imm3, short-label Note This instruction is newly added to the µ PD78/76. 5 When (sfr) bit No. imm3 =, PC PC + ext-disp8 and (sfr) bit No. imm3. µpd735

36 36 Group Mnemonic Operand Interrupt BRK 3 imm8 ( 3) Operation Code Bytes Operation (SP, SP ) PSW, (SP 3, SP 4) PS, (SP 5, SP 6) PC, SP SP 6 IE, BRK PS (5, 4), PC (3, ) (SP, SP ) PSW, (SP 3, SP 4) PS, (SP 5, SP 6) PC, SP SP 6 IE, BRK PS (n 4 + 3, n 4 + ), PC (n 4 +, n 4) n = imm8 Flags AC CY V P S Z BRKV When V =, (SP, SP ) PSW, (SP 3, SP 4) PS, (SP 5, SP 6) PC, SP SP 6 IE, BRK PS (9, 8), PC (7, 6) RETI PC (SP +, SP), PS (SP + 3, SP + ), PSW (SP + 5, SP + 4), SP SP + 6 R R R R R R RETRBI Note PC Save PC, PSW Save PSW R R R R R R FINT Note Reports the CP internal interrupt controller that interrupt service routine operation has ended. CHKIND reg6,mem3 mod reg mem to 4 When (mem3) > reg6 or (mem3 + ) < reg6, (SP, SP ) PSW, (SP 3, SP 4) PS, (SP 5, SP 6) PC, SP SP 6 IE, BRK PS (3, ), PC (, ) Register bank switch BRKCS Note reg6 reg 3 RB lower 3 bits of reg6, IE, BRK Save PSW PSW, Save PC PC, PC Vector PC TSKSW Note reg6 reg 3 RB lower 3 bits of reg6, Old register bank Save PSW and Save PC PSW and PC, PSW and PC New register bank Save PSW and Save PC Note These instructions are newly added to the µ PD78/76. µpd735

37 Group Mnemonic Operand Operation Code Bytes Operation Flags AC CY V P S Z CP control HALT STOP Note CP Halt CP Stop POLL Poll and wait DI IE EI IE BSLOCK Bus Lock Prefix FPO fp-op X X X Y Y Y Z Z Z No Operation Note 3 fp-op,mem X X X mod Y Y Y mem to 4 data bus (mem) FPO fp-op X Y Y Y Z Z Z No Operation Note 3 fp-op,mem X mod Y Y Y mem to 4 data bus (mem) NOP No Operation Note sreg Segment override prefix Notes. DS:, DS:, PS: and SS:. This instruction is newly added to the µ PD78/ In the µ PD73, an interrupt is generated without executing these instructions. µpd735 37

38 µpd735.4 Number of Clocks Table () Legend The number of clocks, for memory operand, differs among addressing modes. So, use the following values for EA items shown in Table -9 Number of Clocks. Table -8. Number of Clocks for Each Memory Addressing mod mem Clocks Clocks Clocks BW + IX 3 BW + IX + disp8 3 BW + IX + disp6 4 BW + IY 3 BW + IY + disp8 3 BW + IY + disp6 4 BP + IX 3 BP + IX + disp8 3 BP + IX + disp6 4 BP + IY 3 BP + IY + disp8 3 BP + IY + disp6 4 IX 3 IX + disp8 3 IX + disp6 4 IY 3 IY + disp8 3 IY + disp6 4 Direct address 3 BP + disp8 3 BP + disp6 4 BW 3 BW + disp8 3 BW + disp6 4 T indicates the number of wait states. se any number of waits starting at (no wait). 38

39 µpd735 () Number of clocks Table -9. Number of Clocks (/) Group Mnemonic Operands Number of Clocks Byte Processing Word Processing On-chip RAM On-chip RAM On-chip RAM On-chip RAM Access Enable Access Disable Access Enable Access Disable Data MOV reg, reg transfer mem, reg EA T EA + EA T EA + reg, mem EA T EA T EA T EA T mem, imm EA T EA T EA T EA T reg, imm acc, dmem 9 + T 9 + T + T + T dmem, acc 7 + T T 5 sreg, reg6 4 4 sreg, mem6 EA + + T EA + + T reg6, sreg 3 3 mem6, sreg EA T EA + 3 DS, reg6, EA T EA T mem3 DS, reg6, EA T EA T mem3 AH, PSW PSW, AH 3 3 LDEA reg6, mem6 EA + EA + TRANS src-table + T + T XCH reg, reg mem, reg/ EA + + T EA T EA T EA + + T reg, mem AW, reg6/ 4 4 reg6, AW MOVSPA 6 6 MOVSPB reg6 Repeat REPC prefix REPNC REP/REPE/ REPZ REPNE/ REPNZ Primitive MOVKB Note dst-block, + T 6 + T T + T block Note src-block 6 + (6 + T) n 6 + ( + T) n 6 + ( + 4 T) n 6 + ( + T) n transfer CMPKB Note dst-block, 3 + T 9 + T T + 4 T Note src-block 6 + ( + T) n 6 + ( + T) n 6 + (5 + 4 T) n 6 + (5 + T) n Notes. Not repeated. Repeated, n: number of transfer times (n ) 39

40 µpd735 Table -9. Number of Clocks (/) Number of Clocks Group Mnemonic Operands Byte Processing Word Processing On-chip RAM On-chip RAM On-chip RAM On-chip RAM Access Enable Access Disable Access Enable Access Disable Primitive CMPM Note dst-block 7 + T 7 + T 9 + T 9 + T block Note src-block 6 + (5 + T) n 6 + (5 + T) n 6 + (7 + T) n 6 + (7 + T) n transfer LDM Note src-block + T + T 4 + T 4 + T Note 6 + ( + T) n 6 + ( + T) n 6 + ( + T) n 6 + ( + T) n STM Note dst-block + T 4 + T Note 6 + (8 + T) n 6 + (6 + T) n 6 + ( + T) n 6 + (6 + T) n Bit field INS reg8, reg8 63 to 55 (The processing differs among bit lengths.) manipula- reg8, imm4 64 to 56 (The processing differs among bit lengths.) tion EXT reg8, reg8 4 to (The processing differs among bit lengths.) reg8, imm4 4 to (The processing differs among bit lengths.) I/O IN acc, imm8 4 + T 4 + T 6 + T 6 + T Note 3 acc, DW 3 + T 3 + T 5 + T 5 + T OT imm8, acc + T + T + T + T Note 3 DW, acc 9 + T 9 + T 9 + T 9 + T Primitive INM dst-block, DW 9 + T 7 + T + 4 T T I/O Note (3 + T) n 8 + ( + T) n 8 + (5 + 4 T) n 8 + ( + 4 T) n OTM DW, src-block 9 + T 7 + T + 4 T T Note (3 + T) n 8 + ( + T) n 8 + (5 + 4 T) n 8 + ( + 4 T) n Addition/ ADD reg, reg subtraction mem, reg EA T EA T EA T EA T reg, mem EA T EA T EA T EA T reg, imm mem, imm EA T EA T EA T EA T acc, imm ADDC reg, reg mem, reg EA T EA T EA T EA T reg, mem EA T EA T EA T EA T reg, imm mem, imm EA T EA T EA T EA T acc, imm Notes. Not repeated. Repeated, n: number of transfer times (n ) 3. When IBRK = 4

41 µpd735 Table -9. Number of Clocks (3/) Number of Clocks Group Mnemonic Operands Byte Processing Word Processing On-chip RAM On-chip RAM On-chip RAM On-chip RAM Access Enable Access Disable Access Enable Access Disable Addition/ SB reg, reg subtraction mem, reg EA T EA T EA T EA T reg, mem EA T EA T EA T EA T reg, imm mem, imm EA T EA T EA T EA T acc, imm SBC reg, reg mem, reg EA T EA T EA T EA T reg, mem EA T EA T EA T EA T reg, imm mem, imm EA T EA T EA T EA T acc, imm BCD ADD4S Note + (7 + 3 T) n + (5 + 3 T) n operation SB4S Note + (7 + 3 T) n + (5 + 3 T) n CMP4S Note + (3 + 3 T) n + (3 + 3 T) n ROL4 reg8 7 7 mem8 EA T EA T ROR4 reg8 mem8 EA T EA + + T Increment / INC reg8 5 5 decrement mem8 EA + + T EA T EA T EA T reg6 DEC reg8 5 5 mem8 EA + + T EA T EA T EA T reg6 Multiplica- ML reg8 4 4 tion mem8 EA T EA T reg6 3 3 mem6 EA T EA T Note n: / of the number of BCD digits 4

42 µpd735 Table -9. Number of Clocks (4/) Number of Clocks Group Mnemonic Operands Byte Processing Word Processing On-chip RAM On-chip RAM On-chip RAM On-chip RAM Access Enable Access Disable Access Enable Access Disable Multiplica- ML reg8 3 to 4 3 to 4 tion mem8 EA T to EA T to EA T EA T reg6 39 to to 48 mem6 EA T to EA T to EA T EA T reg6, (reg6,) 39 to to 49 imm8 reg6, mem6, EA T to EA T to imm8 EA T EA T reg6, (reg6,) 4 to 5 4 to 5 imm6 reg6, mem6, EA T to EA T to imm6 EA T EA T nsigned DIV reg8 3 3 division mem8 EA T EA T reg mem6 EA T EA T Signed DIV reg8 46 to to 56 division mem8 EA T to EA T to EA T EA T reg6 54 to to 64 mem6 EA T to EA T to EA T EA T BCD ADJBA 7 7 adjustment ADJ4A 9 9 ADJBS 7 7 ADJ4S 9 9 Data CVTBD 9 9 conversion CVTDB CVTBW 3 3 CVTWL 8 8 Compare CMP reg, reg mem, reg EA T EA T EA T EA T reg, mem EA T EA T EA T EA T reg, imm mem, imm EA T EA T EA + + T EA + + T acc, imm

43 µpd735 Table -9. Number of Clocks (5/) Number of Clocks Group Mnemonic Operands Byte Processing Word Processing On-chip RAM On-chip RAM On-chip RAM On-chip RAM Access Enable Access Disable Access Enable Access Disable Comple NOT reg ment mem EA + + T EA T EA T EA + + T operation NEG reg mem EA + + T EA T EA T EA + + T Logical TEST reg, reg operation mem, reg/ EA T EA T EA + + T EA + + T reg, mem reg, imm mem, imm EA + + T EA + + T EA + + T EA + + T acc, imm AND reg, reg mem, reg EA T EA T EA T EA T reg, mem EA T EA T EA T EA T reg, imm mem, imm EA T EA T EA T EA T acc, imm OR reg, reg mem, reg EA T EA T EA T EA T reg, mem EA T EA T EA T EA T reg, imm mem, imm EA T EA T EA T EA T acc, imm XOR reg, reg mem, reg EA T EA T EA T EA T reg, mem EA T EA T EA T EA T reg, imm mem, imm EA T EA T EA T EA T acc, imm Bit TEST reg8, CL 7 7 manipula- mem8, CL EA + + T EA + + T tion reg6, CL 7 7 mem6, CL EA T EA T reg8, imm3 6 6 mem8, imm3 EA T EA T reg6, imm4 6 6 mem6, imm4 EA + + T EA + + T NOT reg8, CL 7 7 mem8, CL EA T EA + + T reg6, CL

44 µpd735 Table -9. Number of Clocks (6/) Number of Clocks Group Mnemonic Operands Byte Processing Word Processing On-chip RAM On-chip RAM On-chip RAM On-chip RAM Access Enable Access Disable Access Enable Access Disable Bit NOT mem6, CL EA T EA T manipula- reg8, imm3 6 6 tion mem8, imm3 EA + + T EA T reg6, imm4 6 6 mem6, imm4 EA T EA + + T NOT CY Bit CLR reg8, CL 8 8 manipula- mem8, CL EA T EA + + T tion reg6, CL 8 8 mem6, CL EA T EA T reg8, imm3 7 7 mem8, imm3 EA + + T EA T reg6, imm4 7 7 mem6, imm4 EA T EA + + T SET reg8, CL 7 7 mem8, CL EA T EA + + T reg6, CL 7 7 mem6, CL EA T EA T reg8, imm3 6 6 mem8, imm3 EA + + T EA T reg6, imm4 6 6 mem6, imm4 EA T EA + + T CLR CY DIR SET CY DIR Shift SHL reg, mem, EA T EA + + T EA T EA T reg, CL + n + n + n + n mem, CL EA T + n EA T + n EA T + n EA T + n Note reg, imm8 9 + n 9 + n 9 + n 9 + n mem, imm8 EA T + n EA + + T + n EA T + n EA T + n SHR reg, mem, EA T EA + + T EA T EA T Note n: Shift count 44

45 µpd735 Table -9. Number of Clocks (7/) Group Mnemonic Operands Number of Clocks Byte Processing Word Processing On-chip RAM On-chip RAM On-chip RAM On-chip RAM Access Enable Access Disable Access Enable Access Disable Shift SHR reg, CL + n + n + n + n Note mem, CL EA T + n EA T + n EA T + n EA T + n reg, imm8 9 + n 9 + n 9 + n 9 + n mem, imm8 EA T + n EA + + T + n EA T + n EA T + n SHRA reg, mem, EA T EA + + T EA T EA T reg, CL + n + n + n + n Note mem, CL EA T + n EA T + n EA T + n EA T + n reg, imm8 9 + n 9 + n 9 + n 9 + n mem, imm8 EA T + n EA + + T + n EA T + n EA T + n Rotate ROL reg, mem, EA T EA + + T EA T EA T reg, CL + n + n + n + n Note mem, CL EA T + n EA T + n EA T + n EA T + n reg, imm8 9 + n 9 + n 9 + n 9 + n mem, imm8 EA T + n EA + + T + n EA T + n EA T + n ROR reg, mem, EA T EA + + T EA T EA T reg, CL + n + n + n + n Note mem, CL EA T + n EA T + n EA T + n EA T + n reg, imm8 9 + n 9 + n 9 + n 9 + n mem, imm8 EA T + n EA + + T + n EA T + n EA T + n ROLC reg, mem, EA T EA + + T EA T EA T reg, CL + n + n + n + n Note mem, CL EA T + n EA T + n EA T + n EA T + n reg, imm8 9 + n 9 + n 9 + n 9 + n mem, imm8 EA T + n EA + + T + n EA T + n EA T + n RORC reg, mem, EA T EA + + T EA T EA T Note n: Shift count 45

46 µpd735 Table -9. Number of Clocks (8/) Number of Clocks Group Mnemonic Operands Byte Processing Word Processing On-chip RAM On-chip RAM On-chip RAM On-chip RAM Access Enable Access Disable Access Enable Access Disable Rotate RORC reg, CL + n + n + n + n mem, CL EA T + n EA T + n EA T + n EA T + n reg, imm8 9 + n 9 + n 9 + n 9 + n mem, imm8 EA T + n EA + + T + n EA T + n EA T + n Subroutine CALL near-proc + T 8 + T control regptr6 + T 8 + T memptr6 EA T EA T far-proc T T memptr3 EA T EA T RET + T + T pop-value + T + T T T pop-value T T Stack PSH mem6 EA T EA T manipula- reg6 + T 6 tion Note sreg + T 7 PSW + T 6 R T 5 imm8 3 + T 9 imm6 4 + T POP mem6 EA T EA + + T reg6 + T + T sreg 3 + T 3 + T PSW 4 + T 4 + T R T 58 PREPARE imm6, imm8 When imm8 =, 7 + T When imm8 =, T Note When imm8 = n, n >, (n ) + 4 T DISPOSE + T + T Notes. n: Shift count. Depth of procedure block (lexical level) 46

47 µpd735 Table -9. Number of Clocks (9/) Number of Clocks Group Mnemonic Operands Byte Processing Word Processing On-chip RAM On-chip RAM On-chip RAM On-chip RAM Access Enable Access Disable Access Enable Access Disable Branch BR near-label short-label regptr6 3 3 memptr6 EA T EA T far-label 5 5 memptr3 EA T EA T Conditional BV short-label 5/8 5/8 branch Note BNV short-label 5/8 5/8 BC/BL short-label 5/8 5/8 BNC/BNL short-label 5/8 5/8 BE/BZ short-label 5/8 5/8 BNE/BNZ short-label 5/8 5/8 BNH short-label 5/8 5/8 BH short-label 5/8 5/8 BN short-label 5/8 5/8 BP short-label 5/8 5/8 BPE short-label 5/8 5/8 BPO short-label 5/8 5/8 BLT short-label 5/8 5/8 BGE short-label 5/8 5/8 BLE short-label 5/8 5/8 BGT short-label 5/8 5/8 DBNZNE short-label 7/8 7/8 DBNZE short-label 7/8 7/8 DBNZ short-label 7/8 7/8 BCWZ short-label 5/8 5/8 BTCLR sfr, imm3, 9/ 9/ short-label Interrupt BRK T 43 + T imm8 ( 3) 56 + T 44 + T BRKV 55 + T 43 + T RETI T 37 + T RETRBI FINT CHKIND reg6, mem3 EA T EA T Note In the number of clocks, the value on the left side of / indicates the number of clocks when the condition is true, and the value on the right side indicates the number of clocks when the condition is false. 47

V25 TM, V35 TM Family

V25 TM, V35 TM Family User s Manual V5 TM, V35 TM Family 16-/8- and 16-Bit Single-Chip Microcontrollers Instructions Target device V5 V35 V5+ TM V35+ TM Document No. U11EJ3VUM (3rd edition) Date Published November 1997 N Printed

More information

10-1 C D Pearson Education, Inc. M. Morris Mano & Charles R. Kime LOGIC AND COMPUTER DESIGN FUNDAMENTALS, 4e

10-1 C D Pearson Education, Inc. M. Morris Mano & Charles R. Kime LOGIC AND COMPUTER DESIGN FUNDAMENTALS, 4e 10-1 C D E A B 10-2 A B A B C (A B) C D A A B (A B) C E D (A B) C D E (A B) C + D E (A B) C 10-3 Opcode Mode Address or operand 10-4 Memory 250 Opcode Mode PC = 250 251 ADRS 252 Next instruction ACC Opcode:

More information

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture Department of Electrical Engineering Lecture 4 The 8051 Architecture 1 In this Lecture Overview General physical & operational features Block diagram Pin assignments Logic symbol Hardware description Pin

More information

TABLE 9-1. Symbolic Convention for Addressing Modes. Register indirect LDA (R1) ACC M[ R1] Refers to Figure 9-4. Addressing mode. Symbolic convention

TABLE 9-1. Symbolic Convention for Addressing Modes. Register indirect LDA (R1) ACC M[ R1] Refers to Figure 9-4. Addressing mode. Symbolic convention T-236 Symbolic Convention for Addressing Modes TABLE 9-1 Symbolic Convention for Addressing Modes Refers to Figure 9-4 Addressing mode Symbolic convention Register transfer Effective address Contents of

More information

Intel 8086: Instruction Set

Intel 8086: Instruction Set IUST-EE (Chapter 6) Intel 8086: Instruction Set 1 Outline Instruction Set Data Transfer Instructions Arithmetic Instructions Bit Manipulation Instructions String Instructions Unconditional Transfer Instruction

More information

TYPES OF INTERRUPTS: -

TYPES OF INTERRUPTS: - There are 3 types of interrupts. TYPES OF INTERRUPTS: - External Interrupts. Internal Interrupts. Software interrupts. Hardware Interrupts (1) External interrupts come from I/O devices, from a timing device

More information

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller of 8085 microprocessor 8085 is pronounced as "eighty-eighty-five" microprocessor. It is an 8-bit microprocessor designed by Intel in 1977 using NMOS technology. It has the following configuration 8-bit

More information

Memory organization Programming model - Program status word - register banks - Addressing modes - instruction set Programming examples.

Memory organization Programming model - Program status word - register banks - Addressing modes - instruction set Programming examples. MICROCONTROLLERS AND APPLICATIONS 1 Module 2 Module-2 Contents: Memory organization Programming model - Program status word - register banks - Addressing modes - instruction set Programming examples. MEMORY

More information

9/25/ Software & Hardware Architecture

9/25/ Software & Hardware Architecture 8086 Software & Hardware Architecture 1 INTRODUCTION It is a multipurpose programmable clock drive register based integrated electronic device, that reads binary instructions from a storage device called

More information

Question Bank Microprocessor and Microcontroller

Question Bank Microprocessor and Microcontroller QUESTION BANK - 2 PART A 1. What is cycle stealing? (K1-CO3) During any given bus cycle, one of the system components connected to the system bus is given control of the bus. This component is said to

More information

Summer 2003 Lecture 4 06/14/03

Summer 2003 Lecture 4 06/14/03 Summer 2003 Lecture 4 06/14/03 LDS/LES/LSS General forms: lds reg,mem lseg reg,mem Load far pointer ~~ outside of current segment {E.g., load reg w/value @ mem, & seg w/mem+2 XCHG Exchange values General

More information

Question Bank Part-A UNIT I- THE 8086 MICROPROCESSOR 1. What is microprocessor? A microprocessor is a multipurpose, programmable, clock-driven, register-based electronic device that reads binary information

More information

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: 8051 Architecture Module No: CS/ES/5 Quadrant 1 e-text

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: 8051 Architecture Module No: CS/ES/5 Quadrant 1 e-text e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: 8051 Architecture Module No: CS/ES/5 Quadrant 1 e-text In this lecture the detailed architecture of 8051 controller, register bank,

More information

8051 Microcontroller

8051 Microcontroller 8051 Microcontroller The 8051, Motorola and PIC families are the 3 leading sellers in the microcontroller market. The 8051 microcontroller was originally developed by Intel in the late 1970 s. Today many

More information

C51 Family. Architectural Overview of the C51 Family. Summary

C51 Family. Architectural Overview of the C51 Family. Summary Architectural Overview of the C51 Family C51 Family Summary 1. Introduction............................................................ I.1. 1.1. TSC80C51/80C51/80C31.................................................................

More information

8051 Microcontrollers

8051 Microcontrollers 8051 Microcontrollers Richa Upadhyay Prabhu NMIMS s MPSTME richa.upadhyay@nmims.edu March 8, 2016 Controller vs Processor Controller vs Processor Introduction to 8051 Micro-controller In 1981,Intel corporation

More information

The Microcontroller. Lecture Set 3. Major Microcontroller Families. Example Microcontroller Families Cont. Example Microcontroller Families

The Microcontroller. Lecture Set 3. Major Microcontroller Families. Example Microcontroller Families Cont. Example Microcontroller Families The Microcontroller Lecture Set 3 Architecture of the 8051 Microcontroller Microcontrollers can be considered as self-contained systems with a processor, memory and I/O ports. In most cases, all that is

More information

COMPUTER HARDWARE. Instruction Set Architecture

COMPUTER HARDWARE. Instruction Set Architecture COMPUTER HARDWARE Instruction Set Architecture Overview Computer architecture Operand addressing Addressing architecture Addressing modes Elementary instructions Data transfer instructions Data manipulation

More information

8051 Overview and Instruction Set

8051 Overview and Instruction Set 8051 Overview and Instruction Set Curtis A. Nelson Engr 355 1 Microprocessors vs. Microcontrollers Microprocessors are single-chip CPUs used in microcomputers Microcontrollers and microprocessors are different

More information

8051 Microcontroller

8051 Microcontroller 8051 Microcontroller EE4380 Fall 2001 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas 8051 Architecture Programmer s View Register Set Instruction Set Memory

More information

Arithmetic and Logic Instructions And Programs

Arithmetic and Logic Instructions And Programs Dec Hex Bin 3 3 00000011 ORG ; FOUR Arithmetic and Logic Instructions And Programs OBJECTIVES this chapter enables the student to: Demonstrate how 8-bit and 16-bit unsigned numbers are added in the x86.

More information

8051 Microcontroller

8051 Microcontroller 8051 Microcontroller 1 Salient Features (1). 8 bit microcontroller originally developed by Intel in 1980. (2). High-performance CMOS Technology. (3). Contains Total 40 pins. (4). Address bus is of 16 bit

More information

Chapter 7 Central Processor Unit (S08CPUV2)

Chapter 7 Central Processor Unit (S08CPUV2) Chapter 7 Central Processor Unit (S08CPUV2) 7.1 Introduction This section provides summary information about the registers, addressing modes, and instruction set of the CPU of the HCS08 Family. For a more

More information

Digital IP Cell 8-bit Microcontroller PE80

Digital IP Cell 8-bit Microcontroller PE80 1. Description The is a Z80 compliant processor soft-macro - IP block that can be implemented in digital or mixed signal ASIC designs. The Z80 and its derivatives and clones make up one of the most commonly

More information

Microcontroller Intel [Instruction Set]

Microcontroller Intel [Instruction Set] Microcontroller Intel 8051 [Instruction Set] Structure of Assembly Language [ label: ] mnemonic [operands] [ ;comment ] Example: MOV R1, #25H ; load data 25H into R1 2 8051 Assembly Language Registers

More information

APPENDIX C INSTRUCTION SET DESCRIPTIONS

APPENDIX C INSTRUCTION SET DESCRIPTIONS APPENDIX C INSTRUCTION SET DESCRIPTIONS This appendix provides reference information for the 80C186 Modular Core family instruction set. Tables C-1 through C-3 define the variables used in Table C-4, which

More information

ISSI. IS89C51 CMOS SINGLE CHIP 8-BIT MICROCONTROLLER with 4-Kbytes of FLASH ISSI IS89C51 NOVEMBER 1998 FEATURES GENERAL DESCRIPTION

ISSI. IS89C51 CMOS SINGLE CHIP 8-BIT MICROCONTROLLER with 4-Kbytes of FLASH ISSI IS89C51 NOVEMBER 1998 FEATURES GENERAL DESCRIPTION IS89C51 CMOS SINGLE CHIP 8-BIT MICROCONTROLLER with 4-Kbytes of FLASH NOVEMBER 1998 FEATURES 80C51 based architecture 4-Kbytes of on-chip Reprogrammable Flash Memory 128 x 8 RAM Two 16-bit Timer/Counters

More information

SRI VENKATESWARA COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF ECE EC6504 MICROPROCESSOR AND MICROCONTROLLER (REGULATION 2013)

SRI VENKATESWARA COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF ECE EC6504 MICROPROCESSOR AND MICROCONTROLLER (REGULATION 2013) SRI VENKATESWARA COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF ECE EC6504 MICROPROCESSOR AND MICROCONTROLLER (REGULATION 2013) UNIT I THE 8086 MICROPROCESSOR PART A (2 MARKS) 1. What are the functional

More information

Ex : Write an ALP to evaluate x(y + z) where x = 10H, y = 20H and z = 30H and store the result in a memory location 54000H.

Ex : Write an ALP to evaluate x(y + z) where x = 10H, y = 20H and z = 30H and store the result in a memory location 54000H. Ex : Write an ALP to evaluate x(y + z) where x = 10H, y = 20H and z = 30H and store the result in a memory location 54000H. MOV AX, 5000H MOV DS, AX MOV AL, 20H MOV CL, 30H ADD AL, CL MOV CL, 10H MUL CL

More information

Module Contents of the Module Hours COs

Module Contents of the Module Hours COs Microcontrollers (EE45): Syllabus: Module Contents of the Module Hours COs 1 8051 MICROCONTROLLER ARCHITECTURE: Introduction to Microprocessors and Microcontrollers, the 8051 Architecture, 08 1 and pin

More information

E3940 Microprocessor Systems Laboratory. Introduction to the Z80

E3940 Microprocessor Systems Laboratory. Introduction to the Z80 E3940 Microprocessor Systems Laboratory Introduction to the Z80 Andrew T. Campbell comet.columbia.edu/~campbell campbell@comet.columbia.edu E3940 Microprocessor Systems Laboratory Page 1 Z80 Laboratory

More information

Introduction. 3 major parts of CPU : Fig Design Examples of simple CPU. In this chapter : Chap. 8. Chap. 8 Central Processing Unit

Introduction. 3 major parts of CPU : Fig Design Examples of simple CPU. In this chapter : Chap. 8. Chap. 8 Central Processing Unit Central Processing Unit 8-1 Introduction 3 major parts of CPU : Fig. 8-1 1) Register Set 2) ALU 3) Control Design Examples of simple CPU Hardwired Control : Chap. 5 Microprogrammed Control : Chap. 7 In

More information

EXPERIMENT NO. 1 THE MKT 8085 MICROPROCESSOR TRAINER

EXPERIMENT NO. 1 THE MKT 8085 MICROPROCESSOR TRAINER OBJECT: EXPERIMENT NO. 1 THE MKT 8085 MICROPROCESSOR TRAINER To understand the structure and operating instruction of the microprocessor trainer. INTRODUCTION: The MKT 8085 is a single-board microcomputer,

More information

3. (a) Explain the steps involved in the Interfacing of an I/O device (b) Explain various methods of interfacing of I/O devices.

3. (a) Explain the steps involved in the Interfacing of an I/O device (b) Explain various methods of interfacing of I/O devices. Code No: R05320202 Set No. 1 1. (a) Discuss the minimum mode memory control signals of 8086? (b) Explain the write cycle operation of the microprocessor with a neat timing diagram in maximum mode. [8+8]

More information

MOS INTEGRATED CIRCUIT

MOS INTEGRATED CIRCUIT DATA SHEET MOS INTEGRATED CIRCUIT µpd6708 IEBus (Inter Equipment Bus ) PROTOCOL CONTROL LSI DESCRIPTION The µpd6708 is a peripheral LSI for microcontrollers that controls the protocol of the IEBus. This

More information

Interface DAC to a PC. Control Word of MC1480 DAC (or DAC 808) 8255 Design Example. Engineering 4862 Microprocessors

Interface DAC to a PC. Control Word of MC1480 DAC (or DAC 808) 8255 Design Example. Engineering 4862 Microprocessors Interface DAC to a PC Engineering 4862 Microprocessors Lecture 22 Cheng Li EN-4012 licheng@engr.mun.ca DAC (Digital-to-Analog Converter) Device used to convert digital pulses to analog signals Two methods

More information

CS 320. Computer Architecture Core Architecture

CS 320. Computer Architecture Core Architecture CS 320 Computer Architecture 8051 Core Architecture Evan Hallam 19 April 2006 Abstract The 8051 is an 8-bit microprocessor designed originally in the 1980 s by the Intel Corporation. This inexpensive and

More information

Microcomputer Architecture and Programming

Microcomputer Architecture and Programming IUST-EE (Chapter 1) Microcomputer Architecture and Programming 1 Outline Basic Blocks of Microcomputer Typical Microcomputer Architecture The Single-Chip Microprocessor Microprocessor vs. Microcontroller

More information

CHAPTER ASSEMBLY LANGUAGE PROGRAMMING

CHAPTER ASSEMBLY LANGUAGE PROGRAMMING CHAPTER 2 8051 ASSEMBLY LANGUAGE PROGRAMMING Registers Register are used to store information temporarily: A byte of data to be processed An address pointing to the data to be fetched The vast majority

More information

WINTER 12 EXAMINATION Subject Code : Model Answer Page No : / N. a) Describe the function of SID and SOD pins of 8085 microprocessor

WINTER 12 EXAMINATION Subject Code : Model Answer Page No : / N. a) Describe the function of SID and SOD pins of 8085 microprocessor Subject Code : Model Answer Page No : / N Q.1) SOLVE ANY FIVE : (20 MARKS) a) Describe the function of SID and SOD pins of 8085 microprocessor Ans: - SID: - (2 Mark) Serial Input Data SID pin is used to

More information

FIFTH SEMESTER B.TECH DEGREE EXAMINATION MODEL TEST QUESTION PAPER, NOVEMBER CS 305: Microprocessor and Microcontrollers PART A

FIFTH SEMESTER B.TECH DEGREE EXAMINATION MODEL TEST QUESTION PAPER, NOVEMBER CS 305: Microprocessor and Microcontrollers PART A Reg No Name FIFTH SEMESTER B.TECH DEGREE EXAMINATION MODEL TEST QUESTION PAPER, NOVEMBER 2017 CS 305: Microprocessor and Microcontrollers Max. Marks: 100 Duration: 3 Hours PART A Answer all questions.

More information

8051 Core Specification

8051 Core Specification 8051 Core Specification Authors: Jaka Simsic Simon Teran jakas@opencores.org simont@opencores.org Rev. 0.1 August 14, 2001 First Draft www.opencores.org Rev 0.1 First Draft 1 of 26 Revision History Rev.

More information

8086 INTERNAL ARCHITECTURE

8086 INTERNAL ARCHITECTURE 8086 INTERNAL ARCHITECTURE Segment 2 Intel 8086 Microprocessor The 8086 CPU is divided into two independent functional parts: a) The Bus interface unit (BIU) b) Execution Unit (EU) Dividing the work between

More information

Module I. Microcontroller can be classified on the basis of their bits processed like 8bit MC, 16bit MC.

Module I. Microcontroller can be classified on the basis of their bits processed like 8bit MC, 16bit MC. MICROCONTROLLERS AND APPLICATIONS 1 Module 1 Module I Introduction to Microcontrollers: Comparison with Microprocessors Harvard and Von Neumann Architectures - 80C51 microcontroller features - internal

More information

Introduction to Microprocessor

Introduction to Microprocessor Introduction to Microprocessor The microprocessor is a general purpose programmable logic device. It is the brain of the computer and it performs all the computational tasks, calculations data processing

More information

PESIT Bangalore South Campus

PESIT Bangalore South Campus INTERNAL ASSESSMENT TEST 2 Date : 02/04/2018 Max Marks: 40 Subject & Code : Microprocessor (15CS44) Section : IV A and B Name of faculty: Deepti.C Time : 8:30 am-10:00 am Note: Note: Answer any five complete

More information

icroprocessor istory of Microprocessor ntel 8086:

icroprocessor istory of Microprocessor ntel 8086: Microprocessor A microprocessor is an electronic device which computes on the given input similar to CPU of a computer. It is made by fabricating millions (or billions) of transistors on a single chip.

More information

ENE 334 Microprocessors

ENE 334 Microprocessors Page 1 ENE 334 Microprocessors Lecture 9: MCS-51: Moving Data : Dejwoot KHAWPARISUTH http://webstaff.kmutt.ac.th/~dejwoot.kha/ ENE 334 MCS-51 Moving Data Page 2 Moving Data: Objectives Use commands that

More information

EASWARI ENGINEERING COLLEGE DEPARTMENT OF ELECTRONICS AND COMMUNICATION QUESTION BANK - V SEMESTER ECE EC2304 MICROPROCESSORS AND MICROCONTROLLERS UNIT I 1. When the 8086 processor is in minimum mode and

More information

EE6502- MICROPROCESSOR AND MICROCONTROLLER

EE6502- MICROPROCESSOR AND MICROCONTROLLER . EE6502- MICROPROCESSOR AND MICROCONTROLLER UNIT III - 8051 MICROCONTROLLER PART - A 1. What is Microcontroller? A device which contains the microprocessor with integrated peripherals like memory, serial

More information

SN8F5000 Family Instruction Set

SN8F5000 Family Instruction Set SONiX Technology Co., Ltd. 8051-based Microcontroller 1 Overview SN8F5000 is 8051 Flash Type microcontroller supports comprehensive assembly instructions and which are fully compatible with standard 8051.

More information

Contents 8051 Instruction Set BY D. BALAKRISHNA, Research Assistant, IIIT-H Chapter I : Control Transfer Instructions Lesson (a): Loop Lesson (b): Jump (i) Conditional Lesson (c): Lesson (d): Lesson (e):

More information

EXPERIMENT NO.1. A Microcontroller is a complete computer system built on a single chip.

EXPERIMENT NO.1. A Microcontroller is a complete computer system built on a single chip. EXPERIMENT NO.1 AIM: Study of 8051 Microcontroller TOOLS: 8051 kit THEORY: Salient Features of 8051 A Microcontroller is a complete computer system built on a single chip. It contains all components like

More information

TUTORIAL. Donal Heffernan University of Limerick May Tutorial D.Heffernan 2000,

TUTORIAL. Donal Heffernan University of Limerick May Tutorial D.Heffernan 2000, 8051 TUTORIAL Donal Heffernan University of Limerick May-2002 8051 Tutorial D.Heffernan 2000, 2001 1 Blank 8051 Tutorial D.Heffernan 2000, 2001 2 Some reference material: Test books + MacKenzie Scott.

More information

8-bit Microcontroller with 8K Bytes In-System Programmable Flash AT89S52

8-bit Microcontroller with 8K Bytes In-System Programmable Flash AT89S52 Features Compatible with MCS -51 Products 8K Bytes of In-System Programmable (ISP) Flash Memory Endurance: 10,000 Write/Erase Cycles 4.0V to 5.5V Operating Range Fully Static Operation: 0 Hz to 33 MHz

More information

UNIT II OVERVIEW MICROPROCESSORS AND MICROCONTROLLERS MATERIAL. Introduction to 8086 microprocessors. Architecture of 8086 processors

UNIT II OVERVIEW MICROPROCESSORS AND MICROCONTROLLERS MATERIAL. Introduction to 8086 microprocessors. Architecture of 8086 processors OVERVIEW UNIT II Introduction to 8086 microprocessors Architecture of 8086 processors Register Organization of 8086 Memory Segmentation of 8086 Pin Diagram of 8086 Timing Diagrams for 8086 Interrupts of

More information

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085. (1) Draw and explain the internal architecture of 8085. The architecture of 8085 Microprocessor is shown in figure given below. The internal architecture of 8085 includes following section ALU-Arithmetic

More information

Programming of 8085 microprocessor and 8051 micro controller Study material

Programming of 8085 microprocessor and 8051 micro controller Study material 8085 Demo Programs Now, let us take a look at some program demonstrations using the above instructions Adding Two 8-bit Numbers Write a program to add data at 3005H & 3006H memory location and store the

More information

MICROPROCESSOR PROGRAMMING AND SYSTEM DESIGN

MICROPROCESSOR PROGRAMMING AND SYSTEM DESIGN MICROPROCESSOR PROGRAMMING AND SYSTEM DESIGN ROAD MAP SDK-86 Intel 8086 Features 8086 Block Diagram 8086 Architecture Bus Interface Unit Execution Unit 8086 Architecture 8086 Programmer s Model Flag Register

More information

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE: 1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE: A microprocessor is a programmable electronics chip that has computing and decision making capabilities similar to central processing unit

More information

Subject Code: Model Answer Page No: /25

Subject Code: Model Answer Page No: /25 Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The model answer and the answer written by candidate

More information

Assembly Language Programming of 8085

Assembly Language Programming of 8085 Assembly Language Programming of 8085 Topics 1. Introduction 2. Programming model of 8085 3. Instruction set of 8085 4. Example Programs 5. Addressing modes of 8085 6. Instruction & Data Formats of 8085

More information

ELECTRICAL ENGINEERING

ELECTRICAL ENGINEERING Serial : 1. JP_EE_Microprocessor_130618 CLASS TEST Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: E-mail: info@madeeasy.in Ph: 011-45124612 ELECTRICAL ENGINEERING

More information

Semiconductor MSM6442 GENERAL DESCRIPTION FEATURES E2E This version: Sep. MSM Previous version: Mar. 1996

Semiconductor MSM6442 GENERAL DESCRIPTION FEATURES E2E This version: Sep. MSM Previous version: Mar. 1996 E2E0017-38-93 Semiconductor Semiconductor Built-in LCD Driver 4-Bit Microcontroller This version: Sep. 1998 Previous version: Mar. 1996 GENERAL DESCRIPTION The is a 4-bit microcontroller with a built-in

More information

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices,

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices, Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices, CISC and RISC processors etc. Knows the architecture and

More information

MOXSYN. General Description. Features. Symbol

MOXSYN. General Description. Features. Symbol MOXSYN C68MX11 CPU General Description The C68MX11 CPU core is based on the Motorola M68HC11 microcontroller controller, but has an enhanced full 16 bit architecture, thus requiring less clock cycles for

More information

Rev. No. History Issue Date Remark

Rev. No. History Issue Date Remark Preliminary Bar Code Reader Document Title Bar Code Reader Revision History Rev. No. History Issue Date Remark 0.0 Initial issue June 5, 2000 Preliminary 0.1 Change document title from Bar Code Reader

More information

8051 Memory Organization BY D. BALAKRISHNA, Research Assistant, IIIT-H Chapter 1: Memory Organization There are 2 types of memories available in 8051 microcontroller. Program memory/c code memory (ROM)

More information

The Timers/Counters The Serial Interface The Interrupt System Reset P0.0-P0.7 P2.0-P2.7. Port 2 Drivers. Port 2 Latch

The Timers/Counters The Serial Interface The Interrupt System Reset P0.0-P0.7 P2.0-P2.7. Port 2 Drivers. Port 2 Latch HARDWARE DESCRIPTION This chapter provides a detailed description of the 80C51 microcontroller (see Figure 1). Included in this description are: The port drivers and how they function both as ports and,

More information

ADVANCE MICROPROCESSOR & INTERFACING

ADVANCE MICROPROCESSOR & INTERFACING VENUS INTERNATIONAL COLLEGE OF TECHNOLOGY Gandhinagar Department of Computer Enggineering ADVANCE MICROPROCESSOR & INTERFACING Name : Enroll no. : Class Year : 2014-15 : 5 th SEM C.E. VENUS INTERNATIONAL

More information

SPRING TERM BM 310E MICROPROCESSORS LABORATORY PRELIMINARY STUDY

SPRING TERM BM 310E MICROPROCESSORS LABORATORY PRELIMINARY STUDY BACKGROUND 8086 CPU has 8 general purpose registers listed below: AX - the accumulator register (divided into AH / AL): 1. Generates shortest machine code 2. Arithmetic, logic and data transfer 3. One

More information

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY CHAPTER 5 : Introduction to Intel 8085 Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY The 8085A(commonly known as the 8085) : Was first introduced in March 1976 is an 8-bit microprocessor with 16-bit address

More information

Distributed by: www.jameco.com 1-800-831-4242 The content and copyrights of the attached material are the property of its owner. E2E1022-27-Y4 Semiconductor MSM80C48/49/50 MSM80C35/39/40 Semiconductor

More information

Embedded Controller Programming

Embedded Controller Programming Embedded Controller Programming Counters, Timers and I/O in Assembly Language Ken Arnold Copyright 2000-2004 Ken Arnold 1 Outline Timer/Counters Serial Port More 8051 Instructions Examples Copyright 2000-2004

More information

MSM80C154S MSM83C154S MSM85C154HVS USER'S MANUAL

MSM80C154S MSM83C154S MSM85C154HVS USER'S MANUAL MSM8C54S MSM83C54S MSM85C54HVS USER'S MANUAL Copyright 988, OKI ELECTRIC INDUSTRY COMPANY, LTD. OKI makes no warranty for the use of its products and assumes no responsibility for any errors which may

More information

8088/8086 Programming Integer Instructions and Computations

8088/8086 Programming Integer Instructions and Computations Unit3 reference 2 8088/8086 Programming Integer Instructions and Computations Introduction Up to this point we have studied the software architecture of the 8088 and 8086 microprocessors, their instruction

More information

Intel 8086 MICROPROCESSOR. By Y V S Murthy

Intel 8086 MICROPROCESSOR. By Y V S Murthy Intel 8086 MICROPROCESSOR By Y V S Murthy 1 Features It is a 16-bit μp. 8086 has a 20 bit address bus can access up to 2 20 memory locations (1 MB). It can support up to 64K I/O ports. It provides 14,

More information

VARDHAMAN COLLEGE OF ENGINEERING (AUTONOMOUS) Shamshabad, Hyderabad

VARDHAMAN COLLEGE OF ENGINEERING (AUTONOMOUS) Shamshabad, Hyderabad Introduction to MS-DOS Debugger DEBUG In this laboratory, we will use DEBUG program and learn how to: 1. Examine and modify the contents of the 8086 s internal registers, and dedicated parts of the memory

More information

SOLUTION MANUAL FOR THE 8051 MICROCONTROLLER 4TH EDITION BY MACKENZIE AND PHAN

SOLUTION MANUAL FOR THE 8051 MICROCONTROLLER 4TH EDITION BY MACKENZIE AND PHAN SOLUTION MANUAL FOR THE 8051 MICROCONTROLLER 4TH EDITION BY MACKENZIE AND PHAN Chapter 1 - Introduction to Microcontrollers 1. (a)the first widely used microprocessor was the 8080. (b) The 8080 was introduced

More information

Code segment Stack segment

Code segment Stack segment Registers Most of the registers contain data/instruction offsets within 64 KB memory segment. There are four different 64 KB segments for instructions, stack, data and extra data. To specify where in 1

More information

UNIT IV MICROCONTROLLER

UNIT IV MICROCONTROLLER UNIT IV 8051- MICROCONTROLLER Prepared by R. Kavitha Page 1 Application Prepared by R. Kavitha Page 2 Pin Description of the 8051 UNIT IV- 8051 MICROCONTROLLER P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 RST

More information

Fig: Computer memory with Program, data, and Stack. Blog - NEC (Autonomous) 1

Fig: Computer memory with Program, data, and Stack. Blog -   NEC (Autonomous) 1 Central Processing Unit 1. Stack Organization A useful feature that is included in the CPU of most computers is a stack or last in, first out (LIFO) list. A stack is a storage device that stores information

More information

EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I

EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers 1. Define microprocessors? UNIT-I A semiconductor device(integrated circuit) manufactured by using the LSI technique. It includes

More information

1. What is Microprocessor? Give the power supply & clock frequency of 8085?

1. What is Microprocessor? Give the power supply & clock frequency of 8085? 1. What is Microprocessor? Give the power supply & clock frequency of 8085? A microprocessor is a multipurpose, programmable logic device that reads binary instructions from a storage device called memory

More information

ELEG3924 Microprocessor

ELEG3924 Microprocessor Department of Electrical Engineering University of Arkansas ELEG3924 Microprocessor Ch.2 Assembly Language Programming Dr. Jing Yang jingyang@uark.edu 1 OUTLINE Inside 8051 Introduction to assembly programming

More information

Microprocessor. By Mrs. R.P.Chaudhari Mrs.P.S.Patil

Microprocessor. By Mrs. R.P.Chaudhari Mrs.P.S.Patil Microprocessor By Mrs. R.P.Chaudhari Mrs.P.S.Patil Chapter 1 Basics of Microprocessor CO-Draw Architecture Of 8085 Salient Features of 8085 It is a 8 bit microprocessor. It is manufactured with N-MOS technology.

More information

Chapter 9. Programming Framework

Chapter 9. Programming Framework Chapter 9 Programming Framework Lesson 1 Registers Registers Pointers Accumulator Status General Purpose Outline CPU Registers Examples 8-bitA (Accumulator) Register 8-bit B Register 8-bitPSW (Processor

More information

Microprocessors 1. The 8051 Instruction Set. Microprocessors 1 1. Msc. Ivan A. Escobar Broitman

Microprocessors 1. The 8051 Instruction Set. Microprocessors 1 1. Msc. Ivan A. Escobar Broitman Microprocessors 1 The 8051 Instruction Set Microprocessors 1 1 Instruction Groups The 8051 has 255 instructions Every 8-bit opcode from 00 to FF is used except for A5. The instructions are grouped into

More information

(2) Explain the addressing mode of OR What do you mean by addressing mode? Explain diff. addressing mode for 8085 with examples.

(2) Explain the addressing mode of OR What do you mean by addressing mode? Explain diff. addressing mode for 8085 with examples. (1) Explain instruction format and Opcode format of 8085 μp with example. OR With help of examples, explain the formation of opcodes of 8085 OR What is an instruction? List type of instruction based on

More information

Practical Course File For

Practical Course File For Practical Course File For Microprocessor (IT 473) B.Tech (IT) IV-SEM Department of IT University Institute of Engineering & Technology Panjab University, Chandigarh Page 1 INTRODUCTION... 4 EXPERIMENT-1:

More information

EC-333 Microprocessor and Interfacing Techniques

EC-333 Microprocessor and Interfacing Techniques EC-333 Microprocessor and Interfacing Techniques Lecture 3 The Microprocessor and its Architecture Dr Hashim Ali Fall - 2018 Department of Computer Science and Engineering HITEC University Taxila Slides

More information

CC411: Introduction To Microprocessors

CC411: Introduction To Microprocessors CC411: Introduction To Microprocessors OBJECTIVES this chapter enables the student to: Describe the Intel family of microprocessors from 8085 to Pentium. In terms of bus size, physical memory & special

More information

Mr. Sapan Naik 1. Babu Madhav Institute of Information Technology, UTU

Mr. Sapan Naik 1. Babu Madhav Institute of Information Technology, UTU 5 Years Integrated M.Sc.(IT) Semester 4 060010402 System Programming Question Bank Unit 1: Introduction 1. Write the decimal equivalent for each integral power of 2 from 2! to 2!". 2. Convert the following

More information

MODULE-1. Short Answer Questions

MODULE-1. Short Answer Questions MODULE-1 Short Answer Questions 1. Give the comparison between microprocessor and microcontroller. It is very clear from figure that in microprocessor we have to interface additional circuitry for providing

More information

MICROPROCESSOR & MICROCONTROLLER

MICROPROCESSOR & MICROCONTROLLER a) From road north to East From road east to north From road south to west From road west to south From road west to north b) From road north to East From road south to west From road south to north From

More information

Vidyalankar T.E. Sem. V [ETRX] Microprocessors and Microcontrollers I Prelim Question Paper Solution

Vidyalankar T.E. Sem. V [ETRX] Microprocessors and Microcontrollers I Prelim Question Paper Solution 1. (a) 1. (b) T.E. Sem. V [ETRX] Microprocessors and Microcontrollers I Prelim Question Paper Solution Priority modes. 1) Fully Nested Mode : It is a general purpose mode. IR 0 highest priority IR 1 lowest

More information

1-Operand instruction types 1 INC/ DEC/ NOT/NEG R/M. 2 PUSH/ POP R16/M16/SR/F 2 x ( ) = 74 opcodes 3 MUL/ IMUL/ DIV/ DIV R/M

1-Operand instruction types 1 INC/ DEC/ NOT/NEG R/M. 2 PUSH/ POP R16/M16/SR/F 2 x ( ) = 74 opcodes 3 MUL/ IMUL/ DIV/ DIV R/M Increment R16 1-Operand instruction types 1 INC/ DEC/ NOT/NEG R/M 4 x (16+48) = 256 opcodes 2 PUSH/ POP R16/M16/SR/F 2 x (8+24+4+1) = 74 opcodes 3 MUL/ IMUL/ DIV/ DIV R/M 4 x (16+48) = 256 opcodes INC

More information

Lecture 5: Computer Organization Instruction Execution. Computer Organization Block Diagram. Components. General Purpose Registers.

Lecture 5: Computer Organization Instruction Execution. Computer Organization Block Diagram. Components. General Purpose Registers. Lecture 5: Computer Organization Instruction Execution Computer Organization Addressing Buses Fetch-Execute Cycle Computer Organization CPU Control Unit U Input Output Memory Components Control Unit fetches

More information

Program controlled semiconductor device (IC) which fetches (from memory), decodes and executes instructions.

Program controlled semiconductor device (IC) which fetches (from memory), decodes and executes instructions. 2 Microprocessor Program controlled semiconductor device (IC) which fetches (from memory), decodes and executes instructions. It is used as CPU (Central Processing Unit) in computers. 3 Microprocessor

More information

INSTITUTE OF ENGINEERING AND MANAGEMENT, KOLKATA Microprocessor

INSTITUTE OF ENGINEERING AND MANAGEMENT, KOLKATA Microprocessor INSTITUTE OF ENGINEERING AND MANAGEMENT, KOLKATA Microprocessor Subject Name: Microprocessor and Microcontroller Year: 3 rd Year Subject Code: CS502 Semester: 5 th Module Day Assignment 1 Microprocessor

More information