161
4317I–AVR–01/08
AT90PWM2/3/2B/3B
16.24 Interrupts
T h i s s e c t i o n d e s c r i b e s t h e s p e c i f i c s o f t h e i n t e r r u p t h a n d l i n g a s p e r f o r m e d i n
AT90PWM2/2B/3/3B.
16.24.1
List of Interrupt Vector
Each PSC provides 2 interrupt vectors
•
PSCn EC (End of Cycle): When enabled and when a match with OCRnRB occurs
•
PSCn CAPT (Capture Event): When enabled and one of the two following events occurs :
retrigger, capture of the PSC counter or Synchro Error.
16.26.216.26.2See PSCn Interrupt Mask Register
and PSCn Interrupt Flag Register
16.24.2
PSC Interrupt Vectors in AT90PWM2/2B/3/3B
Table 16-9.
Output Clock versus Selection and Prescaler
PCLKSELn
PPREn1
PPREn0
CLKPSCn output
AT90PWM2/3
CLKPSCn output
AT90PWM2B/3B
0
0
0
CLK I/O
CLK I/O
0
0
1
CLK I/O / 4
CLK I/O / 4
0
1
0
CLK I/O / 16
CLK I/O / 32
0
1
1
CLK I/O / 64
CLK I/O / 256
1
0
0
CLK PLL
CLK PLL
1
0
1
CLK PLL / 4
CLK PLL / 4
1
1
0
CLK PLL / 16
CLK PLL / 32
1
1
1
CLK PLL / 64
CLK PLL / 256
Table 16-10. PSC Interrupt Vectors
Vector
No.
Program
Address
Source
Interrupt Definition
-
-
-
-
2
0x0001
PSC2 CAPT
PSC2 Capture Event or Synchronization Error
3
0x0002
PSC2 EC
PSC2 End Cycle
4
0x0003
PSC1 CAPT
PSC1 Capture Event or Synchronization Error
5
0x0004
PSC1 EC
PSC1 End Cycle
6
0x0005
PSC0 CAPT
PSC0 Capture Event or Synchronization Error
7
0x0006
PSC0 EC
PSC0 End Cycle
-
-
-
-
Содержание AT90PWM2
Страница 344: ...346 4317I AVR 01 08 AT90PWM2 3 2B 3B 31 1 SO24...
Страница 345: ...347 4317I AVR 01 08 AT90PWM2 3 2B 3B 31 2 SO32...
Страница 346: ...348 4317I AVR 01 08 AT90PWM2 3 2B 3B 31 3 QFN32...
Страница 347: ...349 4317I AVR 01 08 AT90PWM2 3 2B 3B...