PIC17C756A-33/L Microchip Technology Inc., PIC17C756A-33/L Datasheet - Page 226

no-image

PIC17C756A-33/L

Manufacturer Part Number
PIC17C756A-33/L
Description
68 PIN, 32 KB OTP, 902 RAM, 50 I/O
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC17C756A-33/L

A/d Inputs
12-Channel, 10-Bit
Cpu Speed
8.25 MIPS
Eeprom Memory
0 Bytes
Input Output
52
Interface
I2C/SPI/USART
Memory Type
OTP
Number Of Bits
8
Package Type
68-pin PLCC
Programmable Memory
32K Bytes
Ram Size
902 Bytes
Speed
16 MHz
Timers
2-8-bit, 2-16-bit
Voltage, Range
3-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC17C756A-33/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C756A-33/L
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC17C756A-33/L-G
Manufacturer:
MICOROCHIP
Quantity:
1 000
Part Number:
PIC17C756A-33/L-G
Manufacturer:
MICOROCHIP
Quantity:
20 000
PIC17C7XX
SUBWF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example 1:
Example 2:
Example 3:
DS30289B-page 226
Before Instruction
After Instruction
Before Instruction
After Instruction
Before Instruction
After Instruction
Decode
REG1
WREG
C
REG1
WREG
C
Z
REG1
WREG
C
REG1
WREG
C
Z
REG1
WREG
C
REG1
WREG
C
Z
Q1
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
register 'f'
Subtract WREG from f
[ label ] SUBWF f,d
0
d
(f) – (W)
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'.
1
1
SUBWF
Read
Q2
0000
3
2
?
1
2
1
0
2
2
?
0
2
1
1
1
2
?
FF
2
0
0
f
[0,1]
255
; result is positive
; result is zero
; result is negative
REG1, 1
010d
Process
dest)
Data
Q3
ffff
destination
Write to
Q4
ffff
SUBWFB
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example 1:
Example2:
Example3:
Before Instruction
After Instruction
Before Instruction
After Instruction
Before Instruction
After Instruction
Decode
REG1
WREG
C
REG1
WREG
C
Z
REG1
WREG
C
REG1
WREG
C
Z
REG1
WREG
C
REG1
WREG
C
Z
Q1
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
register 'f'
SUBWFB
SUBWFB
(f) – (W) – C
Subtract WREG from f with
Borrow
[ label ] SUBWFB f,d
0
d
OV, C, DC, Z
Subtract WREG and the carry flag
(borrow) from register 'f' (2’s comple-
ment method). If 'd' is 0, the result is
stored in WREG. If 'd' is 1, the result is
stored back in register 'f'.
1
1
SUBWFB
Read
Q2
0000
0x19
0x0D
1
0x0C
0x0D
1
0
0x1B
0x1A
0
0x1B
0x00
1
1
0x03
0x0E
1
0xF5
0x0E
0
0
f
[0,1]
2000 Microchip Technology Inc.
255
REG1,0
REG1,1
REG1, 1
001d
(0000 0011)
; result is positive
(0001 1001)
(0001 1011)
(0001 1010)
(0001 1011)
; result is zero
(0000 1101)
(1111 0100) [2’s comp]
(0000 1101)
; result is negative
(0000 1101)
(0000 1011)
(0000 1101)
Process
Data
Q3
dest)
ffff
destination
Write to
Q4
ffff

Related parts for PIC17C756A-33/L