9 psc input, 1 psc input configuration, 1 filter enable – Rainbow Electronics ATmega64C1 User Manual
Page 144

144
7647A–AVR–02/08
ATmega32/64/M1/C1
14.9
PSC Input
For detailed information on the PSC, please refer to Application Note ‘
AVR138: PSC Cookbook’,
available on the Atmel web site.
Each module 0, 1 and 2 of PSC has its own system to take into account one PSC input. Accord-
ing to PSC Module n Input Control Register (
See “PSC Module n Input Control Register –
), PSCINn input can act has a Retrigger or Fault input.
Each block A or B is also configured by this PSC Module n Input Control Register (PMICn).
Figure 14-10. PSC Input Module
14.9.1
PSC Input Configuration
The PSC Input Configuration is done by programming bits in configuration registers.
14.9.1.1
Filter Enable
If the “Filter Enable” bit is set, a digital filter of 4 cycles is inserted before evaluation of the signal.
The disable of this function is mainly needed for prescaled PSC clock sources, where the noise
cancellation gives too high latency.
Important: If the digital filter is active, the level sensitivity is true also with a disturbed PSC clock
to deactivate the outputs (emergency protection of external component). Likewise when used as
fault input, PSC Module n Input A or Input B have to go through PSC to act on PSCOUTn0/1/2
outputs. This way needs that CLK
PSC
is running. So thanks to PSC Asynchronous Output Con-
trol bit (PAOCnA/B), PSCINn input can desactivate directly the PSC outputs. Notice that in this
case, input is still taken into account as usually by Input Module System as soon as CLK
PSC
is
running.
Analog
Comparator
n Output
PSCINn
Digital
Filter
PISELnA
(PISELnB)
PFLTEnA
(PFLTEnB)
PAOCnA
(PAOCnB)
Input
Processing
(retriggering ...)
MPSC Core
(Counter,
Waveform
Generator, ...)
Control
of the
6 outputs
1
0
0
1
PSCOUTnA
PSCOUTnB
CLK
PSC
CLK
PSC
CLK
PSC
PELEVnA /
(PELEVnB)
PRFMnA3:0
(PRFMnB3:0)
PCAEnA
(PCAEnB)
2
4