PIC17C42A/JW Microchip Technology, PIC17C42A/JW Datasheet - Page 136

IC MCU EPROM 2KX16 PWM 40CDIP

PIC17C42A/JW

Manufacturer Part Number
PIC17C42A/JW
Description
IC MCU EPROM 2KX16 PWM 40CDIP
Manufacturer
Microchip Technology
Series
PIC® 17Cr

Specifications of PIC17C42A/JW

Core Processor
PIC
Core Size
8-Bit
Speed
33MHz
Connectivity
UART/USART
Peripherals
POR, PWM, WDT
Number Of I /o
33
Program Memory Size
4KB (2K x 16)
Program Memory Type
EPROM, UV
Ram Size
232 x 8
Voltage - Supply (vcc/vdd)
4.5 V ~ 6 V
Oscillator Type
External
Operating Temperature
0°C ~ 70°C
Package / Case
40-CDIP (0.600", 15.24mm) Window
For Use With
DVA17XP401 - DEVICE ADAPTER FOR PIC17C42AAC174001 - MODULE SKT PROMATEII 40DIP
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Eeprom Size
-
Data Converters
-

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC17C42A/JW
Manufacturer:
MICROCHIP
Quantity:
10
Part Number:
PIC17C42A/JW
Manufacturer:
EON
Quantity:
32 000
PIC17C4X
SUBWF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example 1:
Example 2:
Example 3:
DS30412C-page 136
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'
d
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'.
SUBWF
Subtract WREG from f
[ label ] SUBWF f,d
0
(f) – (W)
OV, C, DC, Z
1
1
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
Execute
dest)
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]
1996 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
Execute
Q3
dest)
ffff
destination
Write to
Q4
ffff

Related parts for PIC17C42A/JW