Download eCOG1X User Manual V2

Transcript
Version 2.7
6.6
eCOG1X User Manual
Timer Interrupts
All of the timer modules can be programmed to generate interrupts depending on their
configuration, clock controls and asynchronous inputs. In addition the watchdog timer and
capture timers generate exception conditions when an error is detected.
Interrupts are listed below by timer:
Address
Timer
Interrupt
Description
0x20
TMR
tmr_exp
A TMR count strobe has occurred when the
TMR timer value is zero.
0x40
LTMR
ltmr_exp
An LTMR count strobe has occurred when
the LTMR timer value is zero.
0x2A
PWM1
pwm1_exp
A PWM1 count strobe has occurred when
the PWM1 timer value is zero.
0x2E
PWM1
pwm1_match
The PWM1 timer value is the same as the
tim.pwm2_val register.
0x2C
PWM2
pwm2_exp
A PWM2 count strobe has occurred when
the PWM2 timer value is zero.
0x30
PWM2
pwm2_match
The PWM2 timer value is the same as the
tim.pwm2_val register.
0x22
CNT1
cnt1_exp
A CNT1 count strobe has occurred when the
CNT1 timer/counter value is zero.
0x26
CNT1
cnt1_match
The CNT1 timer/counter value is the same
as the tim.cnt1_cmp register.
0x24
CNT2
cnt2_exp
A CNT2 count strobe has occurred when the
CNT2 timer/counter value is zero.
0x28
CNT2
cnt2_match
The CNT2 timer/counter value is the same
as the tim.cnt2_cmp register.
0x0A
WDOG
wdog_exp
A WDOG count strobe has occurred when
the watchdog timer value is zero.
This is a special exception case.
0x32
CAP
cap_exp
A CAP count strobe has occurred when the
CAP timer is at its maximum value.
0x34
0x36
0x38
0x3A
0x3C
0x3E
CAP
cap1
cap2
cap3
cap4
cap5
cap6
A trigger event has been detected on one of
the six asynchronous capture inputs and the
associated tim.cap_val* register has been
loaded with the current CAP count value.
0x10
CAP
cap1_ovwr
cap2_ovwr
cap3_ovwr
cap4_ovwr
cap5_ovwr
cap6_ovwr
A second trigger event has been detected on
a capture input before its associated
tim.cap_val* register has been read.
This is an exception.
Table 14: Timer interrupts
Page 6-8
Cyan Technology Ltd
21 October 2009