PIC16HV540 Microchip Technology, PIC16HV540 Datasheet - Page 44

no-image

PIC16HV540

Manufacturer Part Number
PIC16HV540
Description
Enhanced PIC16C54 EPROM-Based 8-Bit CMOS Microcontroller
Manufacturer
Microchip Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16HV540-04/P
Manufacturer:
Microchip
Quantity:
1 736
Part Number:
PIC16HV540-04/SO
Manufacturer:
Microchip
Quantity:
485
Part Number:
PIC16HV540-04I/P
Manufacturer:
MICROCHIP
Quantity:
664
Part Number:
PIC16HV540-04I/SO
Manufacturer:
Maxim
Quantity:
41
Part Number:
PIC16HV540-20/P
Quantity:
5
PIC16HV540
TABLE 8-2:
DS40197B-page 44
ADDWF
ANDWF
CLRF
CLRW
COMF
DECF
DECFSZ
INCF
INCFSZ
IORWF
MOVF
MOVWF
NOP
RLF
RRF
SUBWF
SWAPF
XORWF
BIT-ORIENTED FILE REGISTER OPERATIONS
BCF
BSF
BTFSC
BTFSS
LITERAL AND CONTROL OPERATIONS
ANDLW
CALL
CLRWDT
GOTO
IORLW
MOVLW
OPTION
RETLW
SLEEP
TRIS
XORLW
Note 1: The 9th bit of the program counter will be forced to a '0' by any instruction that writes to the PC except for
Mnemonic,
Operands
2: When an I/O register is modified as a function of itself (e.g. MOVF PORTB, 1), the value used will be that
3: The instruction TRIS f, where f = 5 or 6 causes the contents of the W register to be written to the tristate
4: If this instruction is executed on the TMR0 register (and, where applicable, d = 1), the prescaler will be
GOTO. (See individual device data sheets, Memory Section/Indirect Data Addressing, INDF and FSR Regis-
ters)
value present on the pins themselves. For example, if the data latch is '1' for a pin configured as input and
is driven low by an external device, the data will be written back with a '0'.
latches of PORTA or B respectively. A '1' forces the pin to a hi-impedance state and disables the output
buffers.
cleared (if assigned to TMR0).
f, d
f, d
f, d
f, d
f, d
f, d
f, d
f, d
f, d
f, d
f, d
f, d
f, b
f, b
f, b
f, b
f,d
f,d
k
k
k
k
k
k
k
k
k
f
f
f
INSTRUCTION SET SUMMARY
Add W and f
AND W with f
Clear f
Clear W
Complement f
Decrement f
Decrement f, Skip if 0
Increment f
Increment f, Skip if 0
Inclusive OR W with f
Move f
Move W to f
No Operation
Rotate left f through Carry
Rotate right f through Carry
Subtract W from f
Swap f
Exclusive OR W with f
Bit Clear f
Bit Set f
Bit Test f, Skip if Clear
Bit Test f, Skip if Set
AND literal with W
Call subroutine
Clear Watchdog Timer
Unconditional branch
Inclusive OR Literal with W
Move Literal to W
Load OPTION register
Return, place Literal in W
Go into standby mode
Load TRIS register
Exclusive OR Literal to W
Description
Preliminary
Cycles
1 (2)
1 (2)
1(2)
1(2)
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
2
1
1
1
2
1
1
1
0001
0001
0000
0000
0010
0000
0010
0010
0011
0001
0010
0000
0000
0011
0011
0000
0011
0001
0100
0101
0110
0111
1110
1001
0000
101k
1101
1100
0000
1000
0000
0000
1111
MSb
12-Bit Opcode
11df
01df
011f
0100
01df
11df
11df
10df
11df
00df
00df
001f
0000
01df
00df
10df
10df
10df
bbbf
bbbf
bbbf
bbbf
kkkk
kkkk
0000
kkkk
kkkk
kkkk
0000
kkkk
0000
0000
kkkk
ffff
ffff
ffff
ffff
kkkk
kkkk
0100
kkkk
kkkk
kkkk
0010
kkkk
0011
0fff
kkkk
ffff
ffff
ffff
0000
ffff
ffff
ffff
ffff
ffff
ffff
ffff
ffff
0000
ffff
ffff
ffff
ffff
ffff
LSb
2000 Microchip Technology Inc.
TO
,
Affected
PD,PCWUF
C,DC,Z
C,DC,Z
TO
Status
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
C
C
Z
Z
Z
Z
Z
Z
Z
Z
Z
Z
Z
Z
,
PD
Notes
1,2,4
1,2,4
2,4
2,4
2,4
2,4
2,4
2,4
2,4
1,4
2,4
2,4
2,4
2,4
2,4
2,4
4
1
3

Related parts for PIC16HV540