AT90PWM2/3/2B/3B
16.8 PSC Inputs
Each part A or B of PSC has its own system to take into account one PSC input. According to
PSC n Input A/B Control Register (see description in “PSC n Input A Control Register –
PFRCnA” on page 169page 169), PSCnIN0/1 input can act has a Retrigger or Fault input.
This system A or B is also configured by this PSC n Input A/B Control Register (PFRCnA/B).
Figure 16-14. PSC Input Module
PAOCnA
(PAOCnB)
PSCINn
Analog
Comparator
n Output
0
1
PISELnA
(PISELnB)
Digital
Filter
CLK PSC
PELEVnA / PCAEnA
(PELEVnB) (PCAEnB)
PRFMnA3:0
(PRFMnB3:0)
0
1
PFLTEnA
(PFLTEnB)
2
4
CLK PSC
Input
Processing
(retriggering ...)
CLK PSC
PSC Core
(Counter,
Waveform
Generator, ...)
Output
Control
PSCOUTn0
(PSCOUTn1)
(PSCOUT22)
(PSCOUT23)
16.8.1
16.8.2
PSC Retrigger Behaviour versus PSC running modes
In centered mode, Retrigger Inputs have no effect.
In two ramp or four ramp mode, Retrigger Inputs A or B cause the end of the corresponding
cycle A or B and the beginning of the following cycle B or A.
In one ramp mode, Retrigger Inputs A or B reset the current PSC counting to zero.
Retrigger PSCOUTn0 On External Event
PSCOUTn0 ouput can be resetted before end of On-Time 0 on the change on PSCn Input A.
PSCn Input A can be configured to do not act or to act on level or edge modes. The polarity of
PSCn Input A is configurable thanks to a sense control block. PSCn Input A can be the Output of
the analog comparator or the PSCINn input.
As the period of the cycle decreases, the instantaneous frequency of the two outputs increases.
4317K–AVR–03/2013
145