PIC16C54-LP/SO Microchip Technology, PIC16C54-LP/SO Datasheet - Page 61
![IC MCU OTP 512X12 18SOIC](/photos/6/76/67656/150-18-soic_sml.jpg)
PIC16C54-LP/SO
Manufacturer Part Number
PIC16C54-LP/SO
Description
IC MCU OTP 512X12 18SOIC
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Datasheet
1.PIC16LC58B-04P.pdf
(194 pages)
Specifications of PIC16C54-LP/SO
Core Size
8-Bit
Program Memory Size
768B (512 x 12)
Oscillator Type
External
Core Processor
PIC
Speed
40kHz
Peripherals
POR, WDT
Number Of I /o
12
Program Memory Type
OTP
Ram Size
25 x 8
Voltage - Supply (vcc/vdd)
2.5 V ~ 6.25 V
Operating Temperature
0°C ~ 70°C
Package / Case
18-SOIC (7.5mm Width)
Controller Family/series
PIC16C
No. Of I/o's
12
Ram Memory Size
25Byte
Cpu Speed
40MHz
No. Of Timers
1
Digital Ic
RoHS Compliant
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
XLT18SO-1 - SOCKET TRANSITION 18SOIC 300MIL309-1075 - ADAPTER 18-SOIC TO 18-SOIC309-1011 - ADAPTER 18-SOIC TO 18-DIP309-1010 - ADAPTER 18-SOIC TO 18-DIPAC164002 - MODULE SKT PROMATEII 18/28SOIC
Eeprom Size
-
Data Converters
-
Connectivity
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
- Current page: 61 of 194
- Download datasheet (3Mb)
SUBWF
Syntax:
Operands:
Operation:
Status Affected: C, DC, Z
Encoding:
Description:
Words:
Cycles:
Example 1:
Example 2:
Example 3:
2002 Microchip Technology Inc.
Before Instruction
After Instruction
Before Instruction
After Instruction
After Instruction
REG1
W
C
REG1
W
C
REG1
W
C
REG1
W
C
Before Instruction
REG1
W
C
REG1
W
C
Subtract W from f
[ label ]
0
d
(f) – (W)
Subtract (2’s complement method)
the W register from 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
SUBWF
0000
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
f
[0,1]
3
2
?
1
2
1
2
2
?
0
2
1
1
2
?
0xFF
2
0
31
SUBWF f,d
10df
REG1, 1
dest)
; result is positive
; result is zero
; result is negative
ffff
Preliminary
SWAPF
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
Example
TRIS
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
Example
Before Instruction
After Instruction
Before Instruction
After Instruction
REG1
REG1
W
W
TRISB
[ label ] SWAPF f,d
0
d
(f<3:0>)
(f<7:4>)
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 REG1, 0
=
=
Swap Nibbles in f
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
TRIS
0011
0000
=
=
=
f
[0,1]
0xA5
0xA5
31
0xA5
0xA5
0x5A
TRIS register f
PORTB
PIC16C5X
10df
0000
(dest<7:4>);
(dest<3:0>)
DS30453D-page 59
f
ffff
0fff
Related parts for PIC16C54-LP/SO
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC16C54-XTI/SO](/photos/6/76/67656/150-18-soic_tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-RC/P](/photos/6/76/67657/18-dip_300mil__tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-RC/SO](/photos/6/76/67656/150-18-soic_tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-XT/SO](/photos/6/76/67656/150-18-soic_tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-XTI/P](/photos/6/76/67657/18-dip_300mil__tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-RCI/P](/photos/6/76/67657/18-dip_300mil__tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-XT/P](/photos/6/76/67657/18-dip_300mil__tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-RCI/SO](/photos/6/76/67656/150-18-soic_tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-LPI/P](/photos/6/76/67657/18-dip_300mil__tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-LPI/SO](/photos/6/76/67656/150-18-soic_tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-XTE/SO](/photos/6/76/67656/150-18-soic_tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-LP/P](/photos/6/76/67657/18-dip_300mil__tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-HS/SO](/photos/6/76/67656/150-18-soic_tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-HS/P](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC16C, 40MHZ, DIP-18
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-10/P](/photos/6/76/67657/18-dip_300mil__tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18DIP
Manufacturer:
Microchip Technology
Datasheet: