Microchip Technology Inc
 
Menu
 

Clocks and Timers

Integrated Analog Icon

Capture and count external events and use interrupts to trigger events even in power down mode.

RTCC has higher integration with no external chip and continues operation while in power saving modes. Quadrature Encoder Interface (QEI) obtains signed velocity and relative rotor position of the motor

16-bit Peripheral Integrated Analog Block Diagram
8/16-bit Timers
+

On 16-bit products, there are general-purpose 8/16-bit timer/counters with compare capability. Some are simple 8-bit timers with programmable period registers and are used as a clock source while others have user-configurable gating features. Learn more about these dedicated timers:

Family Reference Manual Section (FRM):

PIC24F FRM - General Purpose 8/16-Bit Timers

This is a Core Independent Peripheral. To read more click here.

32-bit Timer
+

A 32-bit timer module can be formed by combining Type B and Type C 16-bit timers. Each timer module is a 16-bit timer/counter with readable/writable registers and associated bits for interrupt control. Learn more about the 32-bit timer modules here:

Family Reference Manual Section (FRM):

dsPIC33E/ PIC24E FRM - 32-bit Timers

This is a Core Independent Peripheral. To read more, click here.

RTCC: Real-Time Clock and Calendar
+

Hardware Real-Time Clock and Calendar (RTCC) with Vbat provides clock, calendar and alarm functions. It has higher integration with no external chip and continues operation while in power saving modes. Learn more about the RTCC:

Family Reference Manual Section (FRM):

PIC24F FRM - Real-Time Clock and Calendar (RTCC)

dsPIC33/PIC24 FRM – RTCC with Timestamp

Videos:

PIC24 Peripherals The Real Time Clock Calendar

This is a Core Independent Peripheral. To read more, click here.

QEI: Quadrant Encoder Interface
+

QEI provides the interface to incremental encoders for obtaining mechanical position data. QEI also known as incremental encoders or optical encoders, detect position and speed of rotating motion systems. QEI’s enable closed loop control of motor control applications, such as Switched Reluctance (SR) motor, AC Induction Motor (ACIM), and sensored Brushed DC (BDC) and Brushless DC (BLDC). Learn more about Microchip’s innovative QEI:

Family Reference Manual Section (FRM):

dsPIC33F/PIC24H FRM - Quadrature Encoder Interface (QEI)

Application Notes:

AN532 - Servo Control of a DC-Brush Motor

AN908 - Using the dsPIC33F /dsPIC30F for Vector Control of an ACIM

Code Examples:

AN532 Source Code - Servo Control of a DC-Brush Motor

AN908 Source Code - Using the dsPIC30F / dsPIC33F for Vector Control of an ACIM

 

Key Attributes

  • High on-chip integration
  • Count and compare
  • Keep different time bases
  • Keep an RTC clock calendar
  • Obtain signed velocity

 

Target Applications

 

  • RPM indicators, sensors
  • Range finding
  • Protocol decode
  • Velocity calculation
  • Relative position detection

16-bit Video Channel