ARM LPC2292 Timers

ARM LPC2292 Timers - Microcontroller Timing Functions...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
Microcontroller Timing Functions Reference: LPC 2292 User Manual
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
LPC 2000 Timing Functions General purpose timer/counters (2 to 4) 32-bit counter + 32-bit prescaler 4 capture channels 4 match registers Watchdog Reset CPU if no SW reset within designated time Recover from program crashes Real Time Clock (RTC) Clock calendar Trigger events at designated date/time PWM modulator Generate up to 6 PWM signals Structure similar to general purpose timer
Background image of page 2
Timers and counters Very similar in most μCs: a timer is incremented by a clock/periodic signal; a counter is incremented by an asynchronous external signal. Rollover causes interrupt or sets a testable “flag” Programmable: count, prescale, operating mode binary counter detect rollover interrupt flag interrupt mask prescale clock or async signal SW testable external pin
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Timer uses Interval timer for measuring internal events Pulse width demodulator for external signals via “capture” events Signal generator via “match” events Free running timer External event/clock counter
Background image of page 4
General purpose timer 32-bit Prescaler (PC) 32-bit Timer Counter (TC) P clk Timer Control (TCR) Prescaler Register (PR) •Prescale counter increments on Pclk •Timer counter increments on Prescaler rollover VLSI Peripheral Clock Counter TC increments when prescale counter PC matches prescale register PR (prescaler resets to 0) Capture Registers (4) Match Registers (4) Pin Pin IRQ IRQ IRQ reset match CR3-CR0 MR3-MR0
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
LPC 2000 Timer
Background image of page 6
Timer Count (TC) : T0TC, T1TC 32-bit count Prescale Counter (PC) : T0PC, T1PC 32-bit prescale counter, increments on Pclk Resets and increment TC when PC = PR Prescale Register (PR): T0PR, T1PR
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/23/2011 for the course ELEC 6260 taught by Professor Nelson,v during the Summer '08 term at Auburn University.

Page1 / 27

ARM LPC2292 Timers - Microcontroller Timing Functions...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online