
147
8209A–AVR–08/09
ATmega16M1/32M1/64M1
18.15 Interrupts
This section describes the specifics of the interrupt handling as performed in
ATmega16M1/32M1/64M1.
18.15.1 Interrupt Vector
PSC provides 2 interrupt vectors:
• PSC_End (End of Cycle): When enabled and when a match with POCR_RB occurs
• PSC_Fault (Fault Event): When enabled and when a PSC input detects a Fault event.
18.15.2 PSC Interrupt Vectors in ATmega16M1/32M1/64M1
18.16 Register Description
Registers are explained for PSC module 0. They are identical for module 1 and module 2.
18.16.1 POC – PSC Output Configuration
• Bit 7:6 – Res: Reserved
These bits are reserved and will always read as zero.
• Bit 5 – POEN2B: PSC Output 2B Enable
When this bit is clear, I/O pin affected to PSCOUT2B acts as a standard port.
0 1 1 CLK I/O / 256
100CLK PLL
1 0 1 CLK PLL / 4
1 1 0 CLK PLL / 32
1 1 1 CLK PLL / 256
Table 18-6. Output Clock versus Selection and Prescaler
PCLKSELn PPREn1 PPREn0 CLKPSCn output
Table 18-7. PSC Interrupt Vectors
Vector
No.
Program
Address Source Interrupt Definition
-- --
5 0x0004 PSC_Fault PSC Fault event
6 0x0005 PSC_End PSC End of Cycle
-- --
-- --
Bit 76543210
- - POEN2B POEN2A POEN1B POEN1A POEN0B POEN0A POC
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Initial Value 0 0 0 0 0 0 0 0
Commenti su questo manuale