PIC18C658-E/PT Microchip Technology, PIC18C658-E/PT Datasheet - Page 298

IC MCU OTP 16KX16 CAN 64TQFP

PIC18C658-E/PT

Manufacturer Part Number
PIC18C658-E/PT
Description
IC MCU OTP 16KX16 CAN 64TQFP
Manufacturer
Microchip Technology
Series
PIC® 18Cr

Specifications of PIC18C658-E/PT

Core Processor
PIC
Core Size
8-Bit
Speed
40MHz
Connectivity
CAN, I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LVD, POR, PWM, WDT
Number Of I /o
52
Program Memory Size
32KB (16K x 16)
Program Memory Type
OTP
Ram Size
1.5K x 8
Voltage - Supply (vcc/vdd)
4.2 V ~ 5.5 V
Data Converters
A/D 12x10b
Oscillator Type
External
Operating Temperature
-40°C ~ 125°C
Package / Case
64-TFQFP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Other names
PIC18C658E/PT

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18C658-E/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
PIC18CXX8
SUBWF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
DS30475A-page 298
Decode
Q1
register ’f’
Subtract WREG from f
[ label ] SUBWF f [ ,d [,a] ]
0
d
a
(f) – (WREG)
N,OV, C, DC, Z
Subtract WREG from register 'f'
(2’s complement method). If 'd' is
0, the result is stored in WREG. If
'd' is 1, the result is stored back in
register 'f' (default). If ’a’ is 0, the
Access Bank will be selected,
overriding the BSR value. If ’a’ is
1, the Bank will be selected as per
the BSR value.
1
1
Read
Q2
0101
f
[0,1]
[0,1]
255
11da
Process
Data
Q3
dest
ffff
Advanced Information
destination
Write to
Q4
ffff
SUBWF
Example 1:
Example 2:
Example 3:
Before Instruction
After Instruction
Before Instruction
After Instruction
Before Instruction
After Instruction
REG
WREG
C
REG
WREG
C
Z
N
REG
WREG
C
REG
WREG
C
Z
N
REG
WREG
C
REG
WREG
C
Z
N
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
Subtract WREG from f (cont’d)
SUBWF
SUBWF
SUBWF
3
2
?
1
2
1
0
0
2
2
?
2
0
1
1
0
1
2
?
0xFF ;(2’s complement)
2
0
0
1
2000 Microchip Technology Inc.
; result is positive
; result is zero
; result is negative
REG
REG, W
REG

Related parts for PIC18C658-E/PT