PIC10F222 Microchip Technology Inc., PIC10F222 Datasheet - Page 48

no-image

PIC10F222

Manufacturer Part Number
PIC10F222
Description
High-performance Microcontrollers With 8-bit A/d
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC10F222-I/MC
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC10F222-I/P
Manufacturer:
Microchip
Quantity:
1 297
Part Number:
PIC10F222-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC10F222T-E/OT
Manufacturer:
NEC
Quantity:
6 000
Part Number:
PIC10F222T-E/OTVAO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC10F222T-I/OT
Manufacturer:
Microchip Technology
Quantity:
26 846
Part Number:
PIC10F222T-I/OT
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC10F222T-I/OT
0
PIC10F220/222
BTFSS
Syntax:
Operands:
Operation:
Status Affected: None
Description:
CALL
Syntax:
Operands:
Operation:
Status Affected: None
Description:
CLRF
Syntax:
Operands:
Operation:
Status Affected: Z
Description:
DS41270E-page 46
Bit Test f, Skip if Set
[ label ] BTFSS f,b
0 ≤ f ≤ 31
0 ≤ b < 7
skip if (f<b>) = 1
If bit ‘b’ in register ‘f’ is ‘1’, then the
next instruction is skipped.
If bit ‘b’ is ‘1’, then the next instruc-
tion fetched during the current
instruction execution, is discarded
and a NOP is executed instead,
making this a two-cycle instruction.
[ label ] CALL k
0 ≤ k ≤ 255
(PC) + 1→ Top of Stack;
k → PC<7:0>;
(Status<6:5>) → PC<10:9>;
0 → PC<8>
Subroutine call. First, return
address (PC + 1) is pushed onto
the stack. The eight-bit immediate
address is loaded into PC bits
<7:0>. The upper bits PC<10:9>
are loaded from STATUS<6:5>,
PC<8> is cleared. CALL is a two-
cycle instruction.
Clear f
[ label ] CLRF
0 ≤ f ≤ 31
00h → (f);
1 → Z
The contents of register ‘f’ are
cleared and the Z bit is set.
Subroutine Call
f
CLRW
Syntax:
Operands:
Operation:
Status Affected: Z
Description:
CLRWDT
Syntax:
Operands:
Operation:
Status Affected: TO, PD
Description:
COMF
Syntax:
Operands:
Operation:
Status Affected: Z
Description:
Clear W
[ label ] CLRW
None
00h → (W);
1 → Z
The W register is cleared. Zero bit
(Z) is set.
Clear Watchdog Timer
[ label ] CLRWDT k
None
00h → WDT;
0 → WDT prescaler (if assigned);
1 → TO;
1 → PD
The CLRWDT instruction resets the
WDT. It also resets the prescaler, if
the prescaler is assigned to the
WDT and not Timer0. Status bits
TO and PD are set.
Complement f
[ label ] COMF
0 ≤ f ≤ 31
d ∈ [0,1]
(f) → (dest)
The contents of register ‘f’ are
complemented. If ‘d’ is ‘0’, the
result is stored in the W register. If
‘d’ is ‘1’, the result is stored back in
register ‘f’.
© 2007 Microchip Technology Inc.
f,d

Related parts for PIC10F222