SlideShare ist ein Scribd-Unternehmen logo
1 von 15
An 8 Bit Embedded
Platform (Part III)
Session 7
SURYAPRAKASH S
suryaprakash.vsm@gmail.com
The resource for the PPT is made from variety of Books and online
PPT that were available in Internet. The Purpose of the PPT is made
for the Classroom Teaching.
Reference: Microchip Section 29 Instruction Set
Agenda
• Instruction Set
12-02-2019 suryaprakash.vsm@gmail.com 2
Instruction Set
• Each midrange instruction is a 14-bit word divided into an OPCODE which specifies
the instruction type and one or more operands which further specify the operation
of the instruction.
• The instruction set is highly orthogonal and is grouped into three basic categories:
• Byte-oriented operations
• Bit-oriented operations
• Literal and control operations
• For byte-oriented instructions, 'f' represents a file register designator and 'd'
represents a destination designator. The file register designator specifies which file
register is to be used by the instruction.
• The destination designator specifies where the result of the operation is to be
placed. If 'd' is zero, the result is placed in the W register. If 'd' is one, the result is
placed in the file register specified in the instruction.
12-02-2019 suryaprakash.vsm@gmail.com 3
• For bit-oriented instructions, 'b' represents a bit field designator which selects the
number of the bit affected by the operation, while 'f' represents the number of the file in
which the bit is located.
• For literal and control operations, 'k' represents an eight or eleven bit constant or literal
value.
• All instructions are executed in one single instruction cycle, unless a conditional test is
true or the program counter is changed as a result of an instruction.
• In these cases, the execution takes two instruction cycles with the second cycle executed
as an NOP. One instruction cycle consists of four oscillator periods.
• Thus, for an oscillator frequency of 4 MHz, the normal instruction execution time is 1 µs.
• If a conditional test is true or the program counter is changed as a result of an
instruction, the instruction execution time is 2 µs.
12-02-2019 suryaprakash.vsm@gmail.com 4
Midrange Instruction Set
12-02-2019 suryaprakash.vsm@gmail.com 5
BIT-ORIENTED FILE REGISTER OPERATIONS
12-02-2019 suryaprakash.vsm@gmail.com 6
LITERAL AND CONTROL OPERATIONS
12-02-2019 suryaprakash.vsm@gmail.com 7
Instruction Formats
• For the three format of the instruction, the opcode portion instruction word
varies from 3-bits to 6-bits of information which comprises of 35-instructions.
• All instruction examples use the following format to represent a hexadecimal
number:
0xhh
where h signifies a hexadecimal digit.
12-02-2019 suryaprakash.vsm@gmail.com 8
12-02-2019 suryaprakash.vsm@gmail.com 9
Instruction Description Conventions
12-02-2019 suryaprakash.vsm@gmail.com 10
Special Function Registers as Source/Destination
• If an instruction writes to the STATUS register, the Z, C, DC and OV bits may
be set or cleared as a result of the instruction and overwrite the original
data bits written.
• For example, executing CLRF STATUS will clear register STATUS, and then set
the Z bit leaving 0000 0100b in the register.
12-02-2019 suryaprakash.vsm@gmail.com 11
• Instruction set allows read and write of all file registers, including special
function registers.
• Some special situations the user should be aware of are explained in the
following subsections:
STATUS Register as Destination
• Read, write or read-modify-write on PCL may have the following results:
Read PC: PCL → dest; PCLATH does not change;
Write PCL: PCLATH → PCH;
8-bit destination value → PCL
Read-Modify-Write: PCL→ ALU operand
PCLATH → PCH;
8-bit result → PCL
Where PCH = program counter high byte (not an addressable register),
PCLATH = Program counter high holding latch, dest = destination, W register
or register file f.
12-02-2019 suryaprakash.vsm@gmail.com 12
PCL as Source or Destination
• All bit manipulation instructions will first read the entire register,
operate on the selected bit and then write the result back (read-
modify-write (R-M-W)) the specified register.
• The user should keep this in mind when operating on some special
function registers, such as ports.
12-02-2019 suryaprakash.vsm@gmail.com 13
Bit Manipulation
• Each instruction cycle (Tcy) is comprised of four Q cycles (Q1-Q4). The Q cycle is the same as the device
oscillator cycle (TOSC).
• The Q cycles provide the timing/designation for the Decode, Read, Process Data, Write etc., of each
instruction cycle.
• The four Q cycles that make up an instruction cycle (Tcy) can be generalized as:
Q1: Instruction Decode Cycle or forced No Operation
Q2: Instruction Read Cycle or No Operation
Q3: Process the Data
Q4: Instruction Write Cycle or No Operation
12-02-2019 suryaprakash.vsm@gmail.com 14
Q-Cycle Activity
2/12/2019 suryaprakash.vsm@gmail.com 15
This Photo by Unknown Author is licensed under CC BY-NC-ND
Learn by Doing
Excel Thru Experimentation
Lead by Example
Acquire skills and get employed
Update skills and stay employed

Weitere ähnliche Inhalte

Was ist angesagt?

INSTRUCTION SET
INSTRUCTION SETINSTRUCTION SET
INSTRUCTION SETAjeng Savitri
 
8051 addressing modes
8051 addressing modes8051 addressing modes
8051 addressing modessb108ec
 
Different addressing mode and risc, cisc microprocessor
Different addressing mode and risc, cisc microprocessorDifferent addressing mode and risc, cisc microprocessor
Different addressing mode and risc, cisc microprocessorDaffodil International University
 
RTL-Design for beginners
RTL-Design  for beginnersRTL-Design  for beginners
RTL-Design for beginnersDr.YNM
 
Register introduction
Register introductionRegister introduction
Register introductionmaamir farooq
 
Feng’s classification
Feng’s classificationFeng’s classification
Feng’s classificationNarayan Kandel
 
Data flow architecture
Data flow architectureData flow architecture
Data flow architectureSourav Routh
 
Presentation1
Presentation1Presentation1
Presentation1Haya Saani
 
Assembly Language Basics
Assembly Language BasicsAssembly Language Basics
Assembly Language BasicsEducation Front
 
Instruction Set (Part 2)
Instruction Set (Part 2)Instruction Set (Part 2)
Instruction Set (Part 2)Ajeng Savitri
 
Computer Architecture and organization ppt.
Computer Architecture and organization ppt.Computer Architecture and organization ppt.
Computer Architecture and organization ppt.mali yogesh kumar
 
Run time, frequently, non-frequently reconfigurable system &
Run time, frequently, non-frequently reconfigurable system &Run time, frequently, non-frequently reconfigurable system &
Run time, frequently, non-frequently reconfigurable system &Sudhanshu Janwadkar
 
Computer Organisation - Addressing Modes
Computer Organisation - Addressing ModesComputer Organisation - Addressing Modes
Computer Organisation - Addressing ModesArunaDevi63
 
Hardware and Software parallelism
Hardware and Software parallelismHardware and Software parallelism
Hardware and Software parallelismprashantdahake
 
Data transfer and manipulation
Data transfer and manipulationData transfer and manipulation
Data transfer and manipulationrajshreemuthiah
 

Was ist angesagt? (20)

INSTRUCTION SET
INSTRUCTION SETINSTRUCTION SET
INSTRUCTION SET
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
8051 addressing modes
8051 addressing modes8051 addressing modes
8051 addressing modes
 
Different addressing mode and risc, cisc microprocessor
Different addressing mode and risc, cisc microprocessorDifferent addressing mode and risc, cisc microprocessor
Different addressing mode and risc, cisc microprocessor
 
RTL-Design for beginners
RTL-Design  for beginnersRTL-Design  for beginners
RTL-Design for beginners
 
Lecture 23
Lecture 23Lecture 23
Lecture 23
 
Register introduction
Register introductionRegister introduction
Register introduction
 
Addressing modes
Addressing modesAddressing modes
Addressing modes
 
Feng’s classification
Feng’s classificationFeng’s classification
Feng’s classification
 
Data flow architecture
Data flow architectureData flow architecture
Data flow architecture
 
Presentation1
Presentation1Presentation1
Presentation1
 
CO Module 5
CO Module 5CO Module 5
CO Module 5
 
Assembly Language Basics
Assembly Language BasicsAssembly Language Basics
Assembly Language Basics
 
Chapter 4
Chapter 4Chapter 4
Chapter 4
 
Instruction Set (Part 2)
Instruction Set (Part 2)Instruction Set (Part 2)
Instruction Set (Part 2)
 
Computer Architecture and organization ppt.
Computer Architecture and organization ppt.Computer Architecture and organization ppt.
Computer Architecture and organization ppt.
 
Run time, frequently, non-frequently reconfigurable system &
Run time, frequently, non-frequently reconfigurable system &Run time, frequently, non-frequently reconfigurable system &
Run time, frequently, non-frequently reconfigurable system &
 
Computer Organisation - Addressing Modes
Computer Organisation - Addressing ModesComputer Organisation - Addressing Modes
Computer Organisation - Addressing Modes
 
Hardware and Software parallelism
Hardware and Software parallelismHardware and Software parallelism
Hardware and Software parallelism
 
Data transfer and manipulation
Data transfer and manipulationData transfer and manipulation
Data transfer and manipulation
 

Ă„hnlich wie 8-Bit Embedded Platform Instruction Set

Class 6 an 8 bit embedded platform -pic mircocontroller basics
Class 6 an 8 bit embedded platform -pic mircocontroller basicsClass 6 an 8 bit embedded platform -pic mircocontroller basics
Class 6 an 8 bit embedded platform -pic mircocontroller basicsSURYAPRAKASH S
 
193010031-Introduction to registers in the 8086 Microprocessor..pptx
193010031-Introduction to registers in the 8086 Microprocessor..pptx193010031-Introduction to registers in the 8086 Microprocessor..pptx
193010031-Introduction to registers in the 8086 Microprocessor..pptxMohsinAlMamun3
 
Unit II arm 7 Instruction Set
Unit II arm 7 Instruction SetUnit II arm 7 Instruction Set
Unit II arm 7 Instruction SetDr. Pankaj Zope
 
THE PROCESSOR
THE PROCESSORTHE PROCESSOR
THE PROCESSORJai Sudhan
 
4bit pc report[cse 08-section-b2_group-02]
4bit pc report[cse 08-section-b2_group-02]4bit pc report[cse 08-section-b2_group-02]
4bit pc report[cse 08-section-b2_group-02]shibbirtanvin
 
4bit PC report
4bit PC report4bit PC report
4bit PC reporttanvin
 
Computer organisation and architecture jntuh 2rd year 2nd unit # central proc...
Computer organisation and architecture jntuh 2rd year 2nd unit # central proc...Computer organisation and architecture jntuh 2rd year 2nd unit # central proc...
Computer organisation and architecture jntuh 2rd year 2nd unit # central proc...preethi3173
 
CA UNIT III.pptx
CA UNIT III.pptxCA UNIT III.pptx
CA UNIT III.pptxssuser9dbd7e
 
Unit iii
Unit iiiUnit iii
Unit iiiJanani S
 
8085 instructions and addressing modes
8085 instructions and addressing modes8085 instructions and addressing modes
8085 instructions and addressing modesSuchismita Paul
 
ch2.pptx
ch2.pptxch2.pptx
ch2.pptxHalogens
 
register file structure of PIC controller
register file structure of PIC controllerregister file structure of PIC controller
register file structure of PIC controllerNirbhay Singh
 
Processor Organization and Architecture
Processor Organization and ArchitectureProcessor Organization and Architecture
Processor Organization and ArchitectureDhaval Bagal
 
Addressing Modes.pptx
Addressing Modes.pptxAddressing Modes.pptx
Addressing Modes.pptxssuser1f2c12
 
Blackfin Processor Core Architecture Part 2
Blackfin Processor Core Architecture Part 2Blackfin Processor Core Architecture Part 2
Blackfin Processor Core Architecture Part 2Premier Farnell
 
Understanding of linux kernel memory model
Understanding of linux kernel memory modelUnderstanding of linux kernel memory model
Understanding of linux kernel memory modelSeongJae Park
 

Ă„hnlich wie 8-Bit Embedded Platform Instruction Set (20)

Class 6 an 8 bit embedded platform -pic mircocontroller basics
Class 6 an 8 bit embedded platform -pic mircocontroller basicsClass 6 an 8 bit embedded platform -pic mircocontroller basics
Class 6 an 8 bit embedded platform -pic mircocontroller basics
 
193010031-Introduction to registers in the 8086 Microprocessor..pptx
193010031-Introduction to registers in the 8086 Microprocessor..pptx193010031-Introduction to registers in the 8086 Microprocessor..pptx
193010031-Introduction to registers in the 8086 Microprocessor..pptx
 
Highridge ISA
Highridge ISAHighridge ISA
Highridge ISA
 
Unit II arm 7 Instruction Set
Unit II arm 7 Instruction SetUnit II arm 7 Instruction Set
Unit II arm 7 Instruction Set
 
THE PROCESSOR
THE PROCESSORTHE PROCESSOR
THE PROCESSOR
 
Os prj ppt
Os prj pptOs prj ppt
Os prj ppt
 
4bit pc report[cse 08-section-b2_group-02]
4bit pc report[cse 08-section-b2_group-02]4bit pc report[cse 08-section-b2_group-02]
4bit pc report[cse 08-section-b2_group-02]
 
4bit PC report
4bit PC report4bit PC report
4bit PC report
 
Computer organisation and architecture jntuh 2rd year 2nd unit # central proc...
Computer organisation and architecture jntuh 2rd year 2nd unit # central proc...Computer organisation and architecture jntuh 2rd year 2nd unit # central proc...
Computer organisation and architecture jntuh 2rd year 2nd unit # central proc...
 
CA UNIT III.pptx
CA UNIT III.pptxCA UNIT III.pptx
CA UNIT III.pptx
 
Mc05.ppt
Mc05.pptMc05.ppt
Mc05.ppt
 
Unit iii
Unit iiiUnit iii
Unit iii
 
8085 instructions and addressing modes
8085 instructions and addressing modes8085 instructions and addressing modes
8085 instructions and addressing modes
 
ch2.pptx
ch2.pptxch2.pptx
ch2.pptx
 
register file structure of PIC controller
register file structure of PIC controllerregister file structure of PIC controller
register file structure of PIC controller
 
Various type of register
Various type of registerVarious type of register
Various type of register
 
Processor Organization and Architecture
Processor Organization and ArchitectureProcessor Organization and Architecture
Processor Organization and Architecture
 
Addressing Modes.pptx
Addressing Modes.pptxAddressing Modes.pptx
Addressing Modes.pptx
 
Blackfin Processor Core Architecture Part 2
Blackfin Processor Core Architecture Part 2Blackfin Processor Core Architecture Part 2
Blackfin Processor Core Architecture Part 2
 
Understanding of linux kernel memory model
Understanding of linux kernel memory modelUnderstanding of linux kernel memory model
Understanding of linux kernel memory model
 

Mehr von SURYAPRAKASH S

Class 5 an 8 bit embedded platform
Class 5 an 8 bit embedded platformClass 5 an 8 bit embedded platform
Class 5 an 8 bit embedded platformSURYAPRAKASH S
 
Class 4 I/O Ports
Class 4 I/O PortsClass 4 I/O Ports
Class 4 I/O PortsSURYAPRAKASH S
 
Class 3 Memory types
Class 3 Memory typesClass 3 Memory types
Class 3 Memory typesSURYAPRAKASH S
 
Class 2 categories of processor
Class 2 categories of processorClass 2 categories of processor
Class 2 categories of processorSURYAPRAKASH S
 
Class 1 introduction to embedded systems
Class 1 introduction to embedded systemsClass 1 introduction to embedded systems
Class 1 introduction to embedded systemsSURYAPRAKASH S
 
Product Design and Development
Product Design and DevelopmentProduct Design and Development
Product Design and DevelopmentSURYAPRAKASH S
 
Unit 4 Automated system
Unit 4 Automated systemUnit 4 Automated system
Unit 4 Automated systemSURYAPRAKASH S
 
Unit 3 Computer Numerical Control
Unit 3 Computer Numerical ControlUnit 3 Computer Numerical Control
Unit 3 Computer Numerical ControlSURYAPRAKASH S
 

Mehr von SURYAPRAKASH S (9)

Class 5 an 8 bit embedded platform
Class 5 an 8 bit embedded platformClass 5 an 8 bit embedded platform
Class 5 an 8 bit embedded platform
 
Class 4 I/O Ports
Class 4 I/O PortsClass 4 I/O Ports
Class 4 I/O Ports
 
Class 3 Memory types
Class 3 Memory typesClass 3 Memory types
Class 3 Memory types
 
Class 2 categories of processor
Class 2 categories of processorClass 2 categories of processor
Class 2 categories of processor
 
Class 1 introduction to embedded systems
Class 1 introduction to embedded systemsClass 1 introduction to embedded systems
Class 1 introduction to embedded systems
 
Product Design and Development
Product Design and DevelopmentProduct Design and Development
Product Design and Development
 
Unit 4 Automated system
Unit 4 Automated systemUnit 4 Automated system
Unit 4 Automated system
 
Unit 3 Computer Numerical Control
Unit 3 Computer Numerical ControlUnit 3 Computer Numerical Control
Unit 3 Computer Numerical Control
 
Canbus
CanbusCanbus
Canbus
 

KĂĽrzlich hochgeladen

Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 đź’ž Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 đź’ž Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 đź’ž Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 đź’ž Full Nigh...Pooja Nehwal
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 

KĂĽrzlich hochgeladen (20)

Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 đź’ž Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 đź’ž Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 đź’ž Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 đź’ž Full Nigh...
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 

8-Bit Embedded Platform Instruction Set

  • 1. An 8 Bit Embedded Platform (Part III) Session 7 SURYAPRAKASH S suryaprakash.vsm@gmail.com The resource for the PPT is made from variety of Books and online PPT that were available in Internet. The Purpose of the PPT is made for the Classroom Teaching. Reference: Microchip Section 29 Instruction Set
  • 2. Agenda • Instruction Set 12-02-2019 suryaprakash.vsm@gmail.com 2
  • 3. Instruction Set • Each midrange instruction is a 14-bit word divided into an OPCODE which specifies the instruction type and one or more operands which further specify the operation of the instruction. • The instruction set is highly orthogonal and is grouped into three basic categories: • Byte-oriented operations • Bit-oriented operations • Literal and control operations • For byte-oriented instructions, 'f' represents a file register designator and 'd' represents a destination designator. The file register designator specifies which file register is to be used by the instruction. • The destination designator specifies where the result of the operation is to be placed. If 'd' is zero, the result is placed in the W register. If 'd' is one, the result is placed in the file register specified in the instruction. 12-02-2019 suryaprakash.vsm@gmail.com 3
  • 4. • For bit-oriented instructions, 'b' represents a bit field designator which selects the number of the bit affected by the operation, while 'f' represents the number of the file in which the bit is located. • For literal and control operations, 'k' represents an eight or eleven bit constant or literal value. • All instructions are executed in one single instruction cycle, unless a conditional test is true or the program counter is changed as a result of an instruction. • In these cases, the execution takes two instruction cycles with the second cycle executed as an NOP. One instruction cycle consists of four oscillator periods. • Thus, for an oscillator frequency of 4 MHz, the normal instruction execution time is 1 µs. • If a conditional test is true or the program counter is changed as a result of an instruction, the instruction execution time is 2 µs. 12-02-2019 suryaprakash.vsm@gmail.com 4
  • 5. Midrange Instruction Set 12-02-2019 suryaprakash.vsm@gmail.com 5
  • 6. BIT-ORIENTED FILE REGISTER OPERATIONS 12-02-2019 suryaprakash.vsm@gmail.com 6
  • 7. LITERAL AND CONTROL OPERATIONS 12-02-2019 suryaprakash.vsm@gmail.com 7
  • 8. Instruction Formats • For the three format of the instruction, the opcode portion instruction word varies from 3-bits to 6-bits of information which comprises of 35-instructions. • All instruction examples use the following format to represent a hexadecimal number: 0xhh where h signifies a hexadecimal digit. 12-02-2019 suryaprakash.vsm@gmail.com 8
  • 10. Instruction Description Conventions 12-02-2019 suryaprakash.vsm@gmail.com 10
  • 11. Special Function Registers as Source/Destination • If an instruction writes to the STATUS register, the Z, C, DC and OV bits may be set or cleared as a result of the instruction and overwrite the original data bits written. • For example, executing CLRF STATUS will clear register STATUS, and then set the Z bit leaving 0000 0100b in the register. 12-02-2019 suryaprakash.vsm@gmail.com 11 • Instruction set allows read and write of all file registers, including special function registers. • Some special situations the user should be aware of are explained in the following subsections: STATUS Register as Destination
  • 12. • Read, write or read-modify-write on PCL may have the following results: Read PC: PCL → dest; PCLATH does not change; Write PCL: PCLATH → PCH; 8-bit destination value → PCL Read-Modify-Write: PCL→ ALU operand PCLATH → PCH; 8-bit result → PCL Where PCH = program counter high byte (not an addressable register), PCLATH = Program counter high holding latch, dest = destination, W register or register file f. 12-02-2019 suryaprakash.vsm@gmail.com 12 PCL as Source or Destination
  • 13. • All bit manipulation instructions will first read the entire register, operate on the selected bit and then write the result back (read- modify-write (R-M-W)) the specified register. • The user should keep this in mind when operating on some special function registers, such as ports. 12-02-2019 suryaprakash.vsm@gmail.com 13 Bit Manipulation
  • 14. • Each instruction cycle (Tcy) is comprised of four Q cycles (Q1-Q4). The Q cycle is the same as the device oscillator cycle (TOSC). • The Q cycles provide the timing/designation for the Decode, Read, Process Data, Write etc., of each instruction cycle. • The four Q cycles that make up an instruction cycle (Tcy) can be generalized as: Q1: Instruction Decode Cycle or forced No Operation Q2: Instruction Read Cycle or No Operation Q3: Process the Data Q4: Instruction Write Cycle or No Operation 12-02-2019 suryaprakash.vsm@gmail.com 14 Q-Cycle Activity
  • 15. 2/12/2019 suryaprakash.vsm@gmail.com 15 This Photo by Unknown Author is licensed under CC BY-NC-ND Learn by Doing Excel Thru Experimentation Lead by Example Acquire skills and get employed Update skills and stay employed