DSPIC33FJ32MC204-I/PT Microchip Technology Inc., DSPIC33FJ32MC204-I/PT Datasheet - Page 172
![no-image](/images/manufacturer_photos/0/4/440/microchip_technology_inc__sml.jpg)
DSPIC33FJ32MC204-I/PT
Manufacturer Part Number
DSPIC33FJ32MC204-I/PT
Description
16-BIT DSC, 44LD, 32KB FLASH, MOTOR, 40 MIPS, NANOWATT
Manufacturer
Microchip Technology Inc.
Type
DSPr
Datasheet
1.DSPIC33FJ32MC204-IPT.pdf
(292 pages)
Specifications of DSPIC33FJ32MC204-I/PT
A/d Inputs
9-Channels, 10-Bit
Cpu Speed
40 MIPS
Eeprom Memory
0 Bytes
Input Output
35
Interface
I2C, SPI, UART/USART
Ios
35
Memory Type
Flash
Number Of Bits
16
Package Type
44-pin TQFP
Programmable Memory
32K Bytes
Ram Size
2K Bytes
Timers
3-16-bit, 1-32-bit
Voltage, Range
3-3.6 V
Dc
08+
Lead Free Status / Rohs Status
RoHS Compliant part
Electrostatic Device
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
DSPIC33FJ32MC204-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
- Current page: 172 of 292
- Download datasheet (5Mb)
15.1
A typical incremental (or optical) encoder has three out-
puts: Phase A, Phase B and an index pulse. These sig-
nals are useful and often required in position and speed
control of ACIM and SR motors.
The two channels, Phase A (QEA) and Phase B (QEB),
have a unique relationship. If Phase A leads Phase B,
the direction of the motor is deemed positive or for-
ward. If Phase A lags Phase B, the direction of the
motor is deemed negative or reverse.
A third channel, termed index pulse, occurs once per
revolution and is used as a reference to establish an
absolute position. The index pulse coincides with
Phase A and Phase B, both low.
15.2
The 16-bit up/down counter counts up or down on
every count pulse, which is generated by the difference
of the Phase A and Phase B input signals. The counter
acts as an integrator whose count value is proportional
to position. The direction of the count is determined by
the UPDN signal, which is generated by the
Quadrature Encoder Interface logic.
15.2.1
Position counter error checking in the QEI is provided
for and indicated by the CNTERR bit (QEICON<15>).
The error checking applies only when the position
counter is configured for Reset on the Index Pulse
modes (QEIM<2:0> = 110 or 100). In these modes, the
contents of the POSCNT register are compared with
the values (0xFFFF or MAXCNT + 1, depending on
direction).
If these values are detected, the CNTERR bit is set,
generating an error condition, and a QEI counter error
interrupt is generated. The QEI counter error interrupt
can
(DFLTCON<8>).
The position counter continues to count encoder edges
after an error has been detected. The POSCNT regis-
ter continues to count up/down until a natural rollover/
underflow. No interrupt is generated for the natural roll-
over/underflow event.
The CNTERR bit is a read/write bit and is reset in soft-
ware by the user application.
15.2.2
The Position Counter Reset Enable bit, POSRES
(QEI<2>), controls whether the position counter is reset
when the index pulse is detected. This bit is applicable
only when QEIM<2:0> = 100 or 110.
DS70283B-page 170
be
Quadrature Encoder Interface
Logic
16-bit Up/Down Position
Counter Mode
POSITION COUNTER ERROR
CHECKING
disabled
POSITION COUNTER RESET
by
setting
the
CEID
Preliminary
bit
If the POSRES bit is set to ‘1’, the position counter is
reset when the index pulse is detected. If the POSRES
bit is set to ‘0’, the position counter is not reset when
the index pulse is detected. The position counter con-
tinues counting up or down, and is reset on the rollover
or underflow condition.
The interrupt is still generated on the detection of the
index pulse and not on the position counter overflow/
underflow.
15.2.3
The QEI logic generates a UPDN signal, based upon
the relationship between Phase A and Phase B. In
addition to the output pin, the state of this internal
UPDN signal is supplied to an SFR bit, UPDN
(QEICON<11>), as a read-only bit. To place the state of
this signal on an I/O pin, the SFR bit, PCDOUT
(QEICON<6>), must be set to ‘1’.
15.3
Two measurement modes are supported, x2 and x4.
These modes are selected by the QEIM<2:0> mode
select bits located in SFR QEICON<10:8>.
When control bits QEIM<2:0> = 100 or 101, the x2
Measurement mode is selected and the QEI logic only
looks at the Phase A input for the position counter
increment rate. Every rising and falling edge of the
Phase A signal causes the position counter to be incre-
mented or decremented. The Phase B signal is still
used for the determination of the counter direction.
Within the x2 Measurement mode, there are two
variations of how the position counter is reset:
• Position counter reset by detection of index pulse,
• Position counter reset by match with MAXCNT,
When control bits QEIM<2:0> = 110 or 111, the x4
Measurement mode is selected and the QEI logic looks
at both edges of the Phase A and Phase B input sig-
nals. Every edge of both signals causes the position
counter to increment or decrement.
Within the x4 Measurement mode, the position counter
can be reset two ways:
• Position counter reset by detection of index pulse,
• Position counter reset by match with MAXCNT,
The x4 Measurement mode provides for finer resolu-
tion data (more position counts) for determining motor
position.
QEIM<2:0> = 100
QEIM<2:0> = 101
QEIM<2:0> = 110.
QEIM<2:0> = 111.
Position Measurement Mode
COUNT DIRECTION STATUS
© 2007 Microchip Technology Inc.
Related parts for DSPIC33FJ32MC204-I/PT
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![DSPIC33FJ12GP202-I/SP](/photos/6/59/65908/150-28-dip_tmb.jpg)
Part Number:
Description:
IC, DSC, 16BIT, 12KB, 40MHZ, 3.6V, DIP28
Manufacturer:
Microchip Technology
Datasheet:
![TC1014-2.7VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1014-5.0VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.5VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.7VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.8VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-4.0VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1186-2.5VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1186-2.85VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet: