PIC17C756-16/L Microchip Technology, PIC17C756-16/L Datasheet - Page 212

no-image

PIC17C756-16/L

Manufacturer Part Number
PIC17C756-16/L
Description
MICRO CTRL 16K MEMORY OTP 68PLCC
Manufacturer
Microchip Technology
Series
PIC® 17Cr

Specifications of PIC17C756-16/L

Core Processor
PIC
Core Size
8-Bit
Speed
16MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
50
Program Memory Size
32KB (16K x 16)
Program Memory Type
OTP
Ram Size
902 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 6 V
Data Converters
A/D 12x10b
Oscillator Type
External
Operating Temperature
0°C ~ 70°C
Package / Case
68-PLCC
For Use With
AC164308 - MODULE SKT FOR PM3 68PLCCDVA17XL681 - DEVICE ADAPTER FOR PIC17C752DM173001 - KIT DEVELOPMENT PICDEM17AC174007 - MODULE SKT PROMATEII 68PLCCAC164024 - ADAPTER PICSTART PLUS 68PLCC
Lead Free Status / RoHS Status
Request inventory verification / Request inventory verification
Eeprom Size
-
SUBWF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example 1:
Example 2:
Example 3:
DS30264A-page 212
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
Subtract WREG from f with
Borrow
[ label ] SUBWFB f,d
0
d
(f) – (W) – C
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]
1997 Microchip Technology Inc.
255
REG1,0
REG1,1
REG1, 1
001d
(0000 0011)
(0001 1001)
; result is positive
(0000 1101)
(0000 1011)
(0000 1101)
(0001 1011)
(0001 1010)
(0001 1011)
; result is zero
(0000 1101)
(1111 0100) [2’s comp]
(0000 1101)
; result is negative
Process
Data
Q3
dest)
ffff
destination
Write to
Q4
ffff

Related parts for PIC17C756-16/L