Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

PIC18F1230-E/SOSQTP Datasheet(PDF) 209 Page - Microchip Technology

Part # PIC18F1230-E/SOSQTP
Description  18/20/28-Pin, Enhanced Flash Microcontrollers with nanoWatt Technology, High-Performance PWM and A/D
PDF  312 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC18F1230-E/SOSQTP Datasheet(HTML) 209 Page - Microchip Technology

Back Button PIC18F1230-E/SOSQTP Datasheet HTML 205Page - Microchip Technology PIC18F1230-E/SOSQTP Datasheet HTML 206Page - Microchip Technology PIC18F1230-E/SOSQTP Datasheet HTML 207Page - Microchip Technology PIC18F1230-E/SOSQTP Datasheet HTML 208Page - Microchip Technology PIC18F1230-E/SOSQTP Datasheet HTML 209Page - Microchip Technology PIC18F1230-E/SOSQTP Datasheet HTML 210Page - Microchip Technology PIC18F1230-E/SOSQTP Datasheet HTML 211Page - Microchip Technology PIC18F1230-E/SOSQTP Datasheet HTML 212Page - Microchip Technology PIC18F1230-E/SOSQTP Datasheet HTML 213Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 209 / 312 page
background image
PIC18F1230/1330
© 2006 Microchip Technology Inc.
Advance Information
DS39758B-page 207
21.0
INSTRUCTION SET SUMMARY
PIC18F1230/1330 devices incorporate the standard set
of 75 PIC18 core instructions, as well as an extended set
of 8 new instructions for the optimization of code that is
recursive or that utilizes a software stack. The extended
set is discussed later in this section.
21.1
Standard Instruction Set
The standard PIC18 instruction set adds many
enhancements to the previous PICmicro® MCU instruc-
tion sets, while maintaining an easy migration from
these PICmicro MCU instruction sets. Most instructions
are a single program memory word (16 bits), but there
are four instructions that require two program memory
locations.
Each single-word instruction is a 16-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 four basic categories:
• Byte-oriented operations
• Bit-oriented operations
• Literal operations
• Control operations
The PIC18 instruction set summary in Table 21-2 lists
byte-oriented,
bit-oriented,
literal
and
control
operations.
Table 21-1
shows
the
opcode
field
descriptions.
Most byte-oriented instructions have three operands:
1.
The file register (specified by ‘f’)
2.
The destination of the result (specified by ‘d’)
3.
The accessed memory (specified by ‘a’)
The file register designator ‘f’ specifies which file
register is to be used by the instruction. The destination
designator ‘d’ specifies where the result of the
operation is to be placed. If ‘d’ is zero, the result is
placed in the WREG register. If ‘d’ is one, the result is
placed in the file register specified in the instruction.
All bit-oriented instructions have three operands:
1.
The file register (specified by ‘f’)
2.
The bit in the file register (specified by ‘b’)
3.
The accessed memory (specified by ‘a’)
The bit field designator ‘b’ selects the number of the bit
affected by the operation, while the file register
designator ‘f’ represents the number of the file in which
the bit is located.
The literal instructions may use some of the following
operands:
• A literal value to be loaded into a file register
(specified by ‘k’)
• The desired FSR register to load the literal value
into (specified by ‘f’)
• No operand required
(specified by ‘—’)
The control instructions may use some of the following
operands:
• A program memory address (specified by ‘n’)
• The mode of the CALL or RETURN instructions
(specified by ‘s’)
• The mode of the table read and table write
instructions (specified by ‘m’)
• No operand required
(specified by ‘—’)
All instructions are a single word, except for four
double-word instructions. These instructions were
made double-word to contain the required information
in 32 bits. In the second word, the 4 MSbs are ‘1’s. If
this second word is executed as an instruction (by
itself), it will execute as a NOP.
All single-word instructions are executed in a single
instruction cycle, unless a conditional test is true or the
program counter is changed as a result of the
instruction. In these cases, the execution takes two
instruction cycles, with the additional instruction
cycle(s) executed as a NOP.
The double-word instructions execute in two instruction
cycles.
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.
Two-word branch instructions (if true) would take 3
μs.
Figure 21-1 shows the general formats that the
instructions can have. All examples use the convention
‘nnh’ to represent a hexadecimal number.
The Instruction Set Summary, shown in Table 21-2,
lists the standard instructions recognized by the
Microchip MPASM™ Assembler.
Section 21.1.1 “Standard Instruction Set” provides
a description of each instruction.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com