TDGL007 Microchip Technology, TDGL007 Datasheet - Page 165

no-image

TDGL007

Manufacturer Part Number
TDGL007
Description
Development Boards & Kits - PIC / DSPIC DIGILENT CEREBOT MC7 MOTOR CONTROL BRD
Manufacturer
Microchip Technology
Datasheet

Specifications of TDGL007

Product
Development Boards
Interface Type
CAN, I2C
Operating Supply Voltage
5 V
12.0
The Timer1 module is a 16-bit timer, which can serve
as the time counter for the Real-Time Clock (RTC) or
operate as a free-running interval timer/counter. Timer1
can operate in three modes:
• 16-Bit Timer
• 16-Bit Synchronous Counter
• 16-Bit Asynchronous Counter
FIGURE 12-1:
© 2011 Microchip Technology Inc.
Note 1: This data sheet summarizes the fea-
2: Some registers and associated bits
TIMER1
tures of the dsPIC33FJXXXMCX06A/
X08A/X10A family of devices. How-
ever, it is not intended to be a compre-
hensive
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.
SOSCO/
SOSCI
Set T1IF
T1CK
16-BIT TIMER1 MODULE BLOCK DIAGRAM
reference
dsPIC33FJXXXMCX06A/X08A/X10A
TGATE
0
1
Reset
Equal
source.
SOSCEN
Comparator
TMR1
PR1
To
in
Q
Q
Gate
Sync
CK
T
CY
D
Timer1 also supports the following features:
• Timer gate operation
• Selectable prescaler settings
• Timer operation during CPU Idle and Sleep
• Interrupt on 16-bit Period register match or falling
Figure 12-1
timer module.
To configure Timer1 for operation, do the following:
1.
2.
3.
4.
5.
6.
modes
edge of external gate signal
Set the TON bit (= 1) in the T1CON register.
Select the timer prescaler ratio using the
TCKPS<1:0> bits in the T1CON register.
Set the Clock and Gating modes using the TCS
and TGATE bits in the T1CON register.
Set or clear the TSYNC bit in T1CON to select
synchronous or asynchronous operation.
Load the timer period value into the PR1
register.
If interrupts are required, set the interrupt enable
bit, T1IE. Use the priority bits, T1IP<2:0>, to set
the interrupt priority.
TSYNC
presents a block diagram of the 16-bit
1x
01
00
0
1
TON
TGATE
TCS
Sync
TCKPS<1:0>
1, 8, 64, 256
Prescaler
2
DS70594C-page 165

Related parts for TDGL007