PIC12F1840 MICROCHIP [Microchip Technology], PIC12F1840 Datasheet - Page 305

no-image

PIC12F1840

Manufacturer Part Number
PIC12F1840
Description
8-Pin Flash Microcontrollers with nanoWatt XLP Technology
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC12F1840-E/MF
Manufacturer:
MICROCHIP
Quantity:
3 000
Part Number:
PIC12F1840-E/SN
Manufacturer:
TI
Quantity:
1 200
Part Number:
PIC12F1840-E/SN
0
Part Number:
PIC12F1840-I/MF
Manufacturer:
CONEXANT
Quantity:
101
Part Number:
PIC12F1840-I/P
Manufacturer:
MICROCHIP
Quantity:
200
Part Number:
PIC12F1840-I/SN
Manufacturer:
MICROCHIP
Quantity:
4 500
Part Number:
PIC12F1840-I/SN
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC12F1840-I/SN
0
Company:
Part Number:
PIC12F1840-I/SN
Quantity:
10 300
Company:
Part Number:
PIC12F1840-I/SN
Quantity:
10 900
Part Number:
PIC12F1840T-E/SN
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC12F1840T-E/SN
0
Company:
Part Number:
PIC12F1840T-I/SNVAO
Quantity:
32
29.0
Each PIC16 instruction is a 14-bit word containing the
operation code (opcode) and all required operands.
The opcodes are broken into three broad categories.
• Byte Oriented
• Bit Oriented
• Literal and Control
The literal and control category contains the most var-
ied instruction word format.
Table 29-3
MPASM
All instructions are executed within a single instruction
cycle, with the following exceptions, which may take
two or three cycles:
• Subroutine takes two cycles (CALL, CALLW)
• Returns from interrupts or subroutines take two
• Program branching takes two cycles (GOTO, BRA,
• One additional instruction cycle will be used when
One instruction cycle consists of 4 oscillator cycles; for
an oscillator frequency of 4 MHz, this gives a nominal
instruction execution rate of 1 MHz.
All instruction examples use the format ‘0xhh’ to
represent a hexadecimal number, where ‘h’ signifies a
hexadecimal digit.
 2011 Microchip Technology Inc.
cycles (RETURN, RETLW, RETFIE)
BRW, BTFSS, BTFSC, DECFSZ, INCSFZ)
any instruction references an indirect file register
and the file select register is pointing to program
memory.
TM
INSTRUCTION SET SUMMARY
assembler.
lists the instructions recognized by the
Preliminary
29.1
Any instruction that specifies a file register as part of
the instruction performs a Read-Modify-Write (R-M-W)
operation. The register is read, the data is modified,
and the result is stored according to either the instruc-
tion, or the destination designator ‘d’. A read operation
is performed on a register even if the instruction writes
to that register.
TABLE 29-1:
TABLE 29-2:
Field
Field
mm
DC
PC
TO
PD
W
C
b
d
n
Z
k
x
f
Register file address (0x00 to 0x7F)
Working register (accumulator)
Bit address within an 8-bit file register
Literal field, constant data or label
Don’t care location (= 0 or 1).
The assembler will generate code with x = 0.
It is the recommended form of use for
compatibility with all Microchip software tools.
Destination select; d = 0: store result in
d = 1: store result in file register f.
Default is d = 1.
FSR or INDF number. (0-1)
Pre-post increment-decrement mode
selection
Program Counter
Time-out bit
Carry bit
Digit carry bit
Zero bit
Power-down bit
Read-Modify-Write Operations
PIC12F/LF1840
OPCODE FIELD
DESCRIPTIONS
ABBREVIATION
DESCRIPTIONS
Description
Description
DS41441A-page 305
W
,

Related parts for PIC12F1840