dsPIC33FJ32MC104-I/PT Microchip Technology, dsPIC33FJ32MC104-I/PT Datasheet - Page 165

no-image

dsPIC33FJ32MC104-I/PT

Manufacturer Part Number
dsPIC33FJ32MC104-I/PT
Description
Digital Signal Processors & Controllers - DSP, DSC 16bit Mtr Cnt Fam 16 MIPS 32KBFLSH 2KBRAM
Manufacturer
Microchip Technology
Type
dsPIC33FJ32(GP/MC)101/102/104r
Datasheet

Specifications of dsPIC33FJ32MC104-I/PT

Rohs
yes
Core
dsPIC33F
Data Bus Width
16 bit
Program Memory Size
32 KB
Data Ram Size
2 KB
Maximum Clock Frequency
7.37 MHz, 32 kHz
Number Of Programmable I/os
35
Number Of Timers
5 x 16-bit, 2 x 32-bit
Device Million Instructions Per Second
16 MIPs
Operating Supply Voltage
3 V to 3.6 V
Maximum Operating Temperature
+ 125 C
Package / Case
TQFP-44
Mounting Style
SMD/SMT
Family / Core
dsPIC33FJ32(GP/MC)101/102/104
Interface Type
I2C, SPI, UART
Minimum Operating Temperature
- 40 C
On-chip Adc
Yes
Product
DSPs
Program Memory Type
Flash
Supply Current
10 mA

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DSPIC33FJ32MC104-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
12.0
Timer2/3 and Timer4/5 have three 2-bit timers that can
also be configured as two independent 16-bit timers
with selectable operating modes.
As a 32-bit timer, Timer2/3 and Timer4/5 permit
operation in three modes:
• Two independent 16-bit timers (e.g., Timer2 and
• Single 32-bit timer (Timer2/3 and Timer4/5)
• Single 32-bit synchronous counter (Timer2/3 and
Timer2/3 and Timer4/5 also support:
• Timer gate operation
• Selectable prescaler settings
• Timer operation during Idle and Sleep modes
• Interrupt on a 32-bit Period register match
• Time base for input capture and output compare
• ADC1 event trigger (Timer2/3 only)
Individually, all eight of the 16-bit timers can function as
synchronous timers or counters. They also offer the
features listed above, except for the event trigger. The
operating modes and enabled features are determined
by setting the appropriate bit(s) in the T2CON, T3CON,
T4CON and T5CON registers (see
through
 2011-2012 Microchip Technology Inc.
Timer3 or Timer4 and Timer5) with all 16-bit
operating modes (except Asynchronous Counter
mode)
Timer4/5)
modules (Timer2 and Timer3 only)
Note 1: This data sheet summarizes the features
Note 1: Timer4 and Timer5 are available in
dsPIC33FJ16(GP/MC)101/102 AND dsPIC33FJ32(GP/MC)101/102/104
Register
2: Some registers and associated bits
TIMER2/3 AND TIMER4/5
of
and dsPIC33FJ32(GP/MC)101/102/104
family devices. It is not intended to be a
comprehensive reference source. To
complement the information in this data
sheet, refer to Section 11. “Timers”
(DS70205) in the “dsPIC33F/PIC24H
Family Reference Manual”, which is
available from the Microchip web site
(www.microchip.com).
described in this section may not be
available on all devices. Refer to
Section 4.0 “Memory Organization”
this data sheet for device-specific register
and bit information.
dsPIC33FJ32(GP/MC10X) devices only.
the
12-2).
dsPIC33FJ16(GP/MC)101/102
Register 12-1
in
For 32-bit timer/counter operation, Timer2/4 is the least
significant word (lsw) and Timer3/5 is the most
significant word (msw) of the 32-bit timers.
12.1
To configure Timer2/3 and Timer4/5 for 32-bit
operation:
1.
2.
3.
4.
5.
6.
The timer value at any point is stored in the register
pair, TMR3:TMR2 or TMR5:TMR4, which always
contains the msw of the count, while TMR2 or TMR4
contains the lsw.
12.2
To configure any of the timers for individual 16-bit
operation:
1.
2.
3.
4.
5.
6.
Note:
Set the T32 control bit.
Select the prescaler ratio for Timer2 or Timer4
using the TCKPS<1:0> bits.
Set the Clock and Gating modes using the
corresponding TCS and TGATE bits.
Load the timer period value. PR3/PR5 contains
the msw of the value, while PR2/PR4 contains
the least significant word (lsw).
If interrupts are required, set the interrupt enable
bit, T3IE or T5IE. Use the priority bits,
T3IP<2:0> or T5IP<2:0>, to set the interrupt pri-
ority. While Timer2/Timer4 controls the timer, the
interrupt appears as a Timer3/Timer5 interrupt.
Set the corresponding TON bit.
Clear the T32 bit corresponding to that timer.
Select the timer prescaler ratio using the
TCKPS<1:0> bits.
Set the Clock and Gating modes using the TCS
and TGATE bits.
Load the timer period value into the PRx
register.
If interrupts are required, set the interrupt enable
bit, TxIE. Use the priority bits, TxIP<2:0>, to set
the interrupt priority.
Set the TON bit.
32-Bit Operation
16-Bit Operation
For 32-bit operation, T3CON and T5CON
control bits are ignored. Only T2CON and
T4CON control bits are used for setup and
control. Timer2 and Timer4 clock and gate
inputs are used for the 32-bit timer
modules, but an interrupt is generated
with the Timer3 and Timer5 interrupt flags.
DS70652E-page 165

Related parts for dsPIC33FJ32MC104-I/PT