PIC16HV540-04/SS Microchip Technology, PIC16HV540-04/SS Datasheet - Page 53

IC MCU OTP 512X12 20SSOP

PIC16HV540-04/SS

Manufacturer Part Number
PIC16HV540-04/SS
Description
IC MCU OTP 512X12 20SSOP
Manufacturer
Microchip Technology
Series
PIC® 16Cr

Specifications of PIC16HV540-04/SS

Core Processor
PIC
Core Size
8-Bit
Speed
4MHz
Peripherals
Brown-out Detect/Reset, POR, WDT
Number Of I /o
12
Program Memory Size
768B (512 x 12)
Program Memory Type
OTP
Ram Size
25 x 8
Voltage - Supply (vcc/vdd)
3.5 V ~ 15 V
Oscillator Type
External
Operating Temperature
0°C ~ 70°C
Package / Case
20-SSOP
Processor Series
PIC16H
Core
PIC
Data Bus Width
8 bit
Data Ram Size
25 B
Maximum Clock Frequency
4 MHz
Number Of Programmable I/os
12
Number Of Timers
8
Operating Supply Voltage
3.5 V to 15 V
Maximum Operating Temperature
+ 70 C
Mounting Style
SMD/SMT
Minimum Operating Temperature
0 C
Data Rom Size
512 B
Height
1.75 mm
Length
7.2 mm
Supply Voltage (max)
15 V
Supply Voltage (min)
3.5 V
Width
5.3 mm
For Use With
309-1016 - ADAPTER 20-SSOP TO 18-DIP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Data Converters
-
Connectivity
-
Lead Free Status / Rohs Status
 Details
SWAPF
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
Example
TRIS
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
Example
*A TRIS 7 operation will update the OPTION2 SFR.
2000 Microchip Technology Inc.
Before Instruction
After Instruction
Before Instruction
After Instruction
REG1
REG1
W
W
TRISA
Swap Nibbles in f
[ label ] SWAPF f,d
0
d
(f<3:0>)
(f<7:4>)
0011
The upper and lower nibbles of register
’f’ are exchanged. If ’d’ is 0 the result is
placed in W register. If ’d’ is 1 the result
is placed in register ’f’.
1
1
SWAPF
=
=
=
Load TRIS Register
[ label ] TRIS
f = 5, 6 or 7
(W)
TRIS register ’f’ (f = 5, 6, or 7*) is loaded
with the contents of the W register
1
1
=
=
0000
TRIS
f
[0,1]
0xA5
0xA5
0X5A
0XA5
0XA5
31
TRIS register f
10df
REG1, 0
0000
PORTA
(dest<7:4>);
(dest<3:0>)
ffff
f
0fff
Preliminary
XORLW
Syntax:
Operands:
Operation:
Status Affected: Z
Encoding:
Description:
Words:
Cycles:
Example:
XORWF
Syntax:
Operands:
Operation:
Status Affected: Z
Encoding:
Description:
Words:
Cycles:
Example
Before Instruction
After Instruction
Before Instruction
After Instruction
W
W
REG
W
REG
W
=
=
[label]
0
(W) .XOR. k
The contents of the W register are
XOR’ed with the eight bit literal 'k'. The
result is placed in the W register.
1
1
XORLW
0xB5
0x1A
Exclusive OR W with f
[ label ] XORWF
0
d
(W) .XOR. (f)
0001
Exclusive OR the contents of the W
register with register 'f'. If 'd' is 0 the
result is stored in the W register. If 'd' is
1 the result is stored back in register 'f'.
1
1
XORWF
=
=
=
=
Exclusive OR literal with W
1111
k
PIC16HV540
f
[0,1]
0xAF
0xB5
0x1A
0xB5
31
255
XORLW k
10df
REG,1
kkkk
W)
dest)
ffff
DS40197B-page 53
0xAF
kkkk
f,d

Related parts for PIC16HV540-04/SS