saf-xc866-4rri3v Infineon Technologies Corporation, saf-xc866-4rri3v Datasheet - Page 81

no-image

saf-xc866-4rri3v

Manufacturer Part Number
saf-xc866-4rri3v
Description
8-bit Single-chip Microcontroller
Manufacturer
Infineon Technologies Corporation
Datasheet
3.16
Timer 2 is a 16-bit general purpose timer (THL2) that has two modes of operation, a
16-bit auto-reload mode and a 16-bit one channel capture mode. If the prescalar is
disabled, Timer 2 counts with an input clock of PCLK/12. Timer 2 continues counting as
long as it is enabled.
Table 29
Mode
Auto-reload Up/Down Count Disabled
Channel
capture
Data Sheet
Timer 2
Timer 2 Modes
Description
• Count up only
• Start counting from 16-bit reload value, overflow at FFFF
• Reload event configurable for trigger by overflow condition only, or by
• Programmble reload value in register RC2
• Interrupt is generated with reload event
Up/Down Count Enabled
• Count up or down, direction determined by level at input pin T2EX
• No interrupt is generated
• Count up
• Count down
• Count up only
• Start counting from 0000
• Reload event triggered by overflow condition
• Reload value fixed at 0000
• Capture event triggered by falling/rising edge at pin T2EX
• Captured timer value stored in register RC2
• Interrupt is generated with reload or capture event
negative/positive edge at input pin T2EX as well
– Start counting from 16-bit reload value, overflow at FFFF
– Reload event triggered by overflow condition
– Programmble reload value in register RC2
– Start counting from FFFF
– Reload event triggered by underflow condition
– Reload value fixed at FFFF
RC2
H
77
, overflow at FFFF
H
H
, underflow at value defined in register
H
H
Functional Description
H
V1.2, 2007-10
H
XC866

Related parts for saf-xc866-4rri3v