PIC24HJ32GP202 MICROCHIP [Microchip Technology], PIC24HJ32GP202 Datasheet - Page 20
![no-image](/images/no-image-200.jpg)
PIC24HJ32GP202
Manufacturer Part Number
PIC24HJ32GP202
Description
High-Performance, 16-bit Microcontrollers
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
1.PIC24HJ32GP202.pdf
(244 pages)
- Current page: 20 of 244
- Download datasheet (4Mb)
PIC24HJ32GP202/204 and PIC24HJ16GP304
2.4
The PIC24HJ32GP202/204 and PIC24HJ16GP304
Arithmetic Logic Unit (ALU) is 16 bits wide and is capa-
ble of addition, subtraction, bit shifts and logic opera-
tions.
operations are 2’s complement in nature. The ALU may
affect the values of the Carry (C), Zero (Z), Negative
(N), Overflow (OV) and Digit Carry (DC) Status bits in
the SR register depending on the operation. The C and
DC Status bits operate as Borrow and Digit Borrow bits
respectively, for subtraction operations.
The ALU can perform 8-bit or 16-bit operations
depending on the mode of the instruction that is used.
Data for the ALU operation can come from the W reg-
ister array, or data memory depending on the address-
ing mode of the instruction. Likewise, output data from
the ALU can be written to the W register array or a data
memory location.
Refer to the “dsPIC30F/33F Programmer’s Reference
Manual” (DS70157) for more information on the SR bits
affected by each instruction.
The PIC24HJ32GP202/204 and PIC24HJ16GP304
CPU incorporates hardware support for both multiplica-
tion and division. This includes a dedicated hardware
multiplier and a support hardware for 16-bit divisor divi-
sion.
2.4.1
Using the high-speed 17-bit x 17-bit multiplier, the ALU
supports unsigned, signed or mixed-sign operation in
several multiplication modes:
• 16-bit x 16-bit signed
• 16-bit x 16-bit unsigned
• 16-bit signed x 5-bit (literal) unsigned
• 16-bit unsigned x 16-bit unsigned
• 16-bit unsigned x 5-bit (literal) unsigned
• 16-bit unsigned x 16-bit signed
• 8-bit unsigned x 8-bit unsigned
DS70289A-page 18
Unless
Arithmetic Logic Unit (ALU)
MULTIPLIER
otherwise
mentioned,
arithmetic
Preliminary
2.4.2
The divide block supports 32-bit/16-bit and 16-bit/16-bit
signed and unsigned integer divide operations with the
following data sizes.
1.
2.
3.
4.
The quotient for all divide instructions ends up in W0
and the remainder in W1. A 16-bit signed and unsigned
DIV instructions can specify any W register for both the
16-bit divisor (Wn) and any W register (aligned) pair
(W(m + 1):Wm) for the 32-bit dividend. The divide algo-
rithm takes one cycle per bit of divisor, so both 32-bit/
16-bit and 16-bit/16-bit instructions take the same num-
ber of cycles to execute.
2.4.3
The multi-bit data shifter is capable of performing up to
16-bit arithmetic or logic right shifts, or up to 16-bit left
shifts in a single cycle. The source can be either a
working register or a memory location.
The shifter requires a signed binary value to determine
both the magnitude (number of bits) and direction of the
shift operation. A positive value shifts the operand right.
and a negative value shifts the operand left. A value of
‘0’ does not modify the operand.
32-bit signed/16-bit signed divide
32-bit unsigned/16-bit unsigned divide
16-bit signed/16-bit signed divide
16-bit unsigned/16-bit unsigned divide
DIVIDER
MULTI-BIT DATA SHIFTER
© 2007 Microchip Technology Inc.
Related parts for PIC24HJ32GP202
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC24H](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
Flash Programming Specification
Manufacturer:
Microchip Technology
Datasheet:
![S-107](/images/no-image3.png)
Part Number:
Description:
PIC24H Development Kit With PCWHD
Manufacturer:
Custom Computer Services Inc (CCS)
![S-108](/images/no-image3.png)
Part Number:
Description:
PIC24H Development Kit With PCDIDE
Manufacturer:
Custom Computer Services Inc (CCS)
![53276-923](/images/no-image3.png)
Part Number:
Description:
PIC24H Development Kit {ICDU}
Manufacturer:
Custom Computer Services Inc (CCS)
![PIC18F2480](/images/no-image3.png)
Part Number:
Description:
28/40/44-Pin Enhanced Flash Microcontrollers with ECAN Technology, 10-Bit A/D and nanoWatt Technology
Manufacturer:
MICROCHIP [Microchip Technology]
Datasheet:
![PIC18F2682-I/PT](/images/no-image3.png)
Part Number:
Description:
28/40/44-Pin Enhanced Flash Microcontrollers with ECAN Technology, 10-Bit A/D and nanoWatt Technology
Manufacturer:
MICROCHIP [Microchip Technology]
Datasheet:
![MCP4024](/images/no-image3.png)
Part Number:
Description:
Low-Cost NV Digital POT with WiperLock Technology
Manufacturer:
MICROCHIP [Microchip Technology]
Datasheet:
![TC1263](/images/no-image3.png)
Part Number:
Description:
500mA Fixed Output CMOS LDO with Shutdown
Manufacturer:
MICROCHIP [Microchip Technology]
Datasheet:
![TC1268](/images/no-image3.png)
Part Number:
Description:
500mA Fixed Output, Fast Response CMOS LDO with Shutdown
Manufacturer:
MICROCHIP [Microchip Technology]
Datasheet:
![TC4405](/images/no-image3.png)
Part Number:
Description:
1.5A Dual Open-Drain MOSFET Drivers
Manufacturer:
MICROCHIP [Microchip Technology]
Datasheet:
![TC4428](/images/no-image3.png)
Part Number:
Description:
1.5A DUAL HIGH-SPEED POWER MOSFET DRIVERS
Manufacturer:
MICROCHIP [Microchip Technology]
Datasheet:
![MCP41100](/images/no-image3.png)
Part Number:
Description:
Single/Dual Digital Potentiometer with SPI Interface
Manufacturer:
MICROCHIP [Microchip Technology]
Datasheet: