169
4317I–AVR–01/08
AT90PWM2/3/2B/3B
16.25.15 PSC n Input B Control Register – PFRCnB
The Input Control Registers are used to configure the 2 PSC’s Retrigger/Fault block A & B. The
2 blocks are identical, so they are configured on the same way.
• Bit 7 – PCAEnx : PSC n Capture Enable Input Part x
Writing this bit to one enables the capture function when external event occurs on input selected
as input for Part x (see PISELnx bit in the same register).
• Bit 6 – PISELnx : PSC n Input Select for Part x
Clear this bit to select PSCINn as input of Fault/Retrigger block x.
Set this bit to select Comparator n Output as input of Fault/Retrigger block x.
• Bit 5 –PELEVnx : PSC n Edge Level Selector of Input Part x
When this bit is clear, the falling edge or low level of selected input generates the significative
event for retrigger or fault function .
When this bit is set, the rising edge or high level of selected input generates the significative
event for retrigger or fault function.
• Bit 4 – PFLTEnx : PSC n Filter Enable on Input Part x
Setting this bit (to one) activates the Input Capture Noise Canceler. When the noise canceler is
activated, the input from the retrigger pin is filtered. The filter function requires four successive
equal valued samples of the retrigger pin for changing its output. The Input Capture is therefore
delayed by four oscillator cycles when the noise canceler is enabled.
• Bit 3:0 – PRFMnx3:0: PSC n Fault Mode
These four bits define the mode of operation of the Fault or Retrigger functions.
(see PSC Functional Specification for more explanations)
Table 16-17. Level Sensitivity and Fault Mode Operation
Bit
7
6
5
4
3
2
1
0
PCAEnB
PISELnB
PELEVnB
PFLTEnB
PRFMnB3
PRFMnB2
PRFMnB1
PRFMnB0
PFRCnB
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
PRFMnx3:0
Description
0000b
No action, PSC Input is ignored
0001b
PSC Input Mode 1: Stop signal, Jump to Opposite Dead-Time and Wait
0010b
PSC Input Mode 2: Stop signal, Execute Opposite Dead-Time and Wait
0011b
PSC Input Mode 3: Stop signal, Execute Opposite while Fault active
0100b
PSC Input Mode 4: Deactivate outputs without changing timing.
0101b
PSC Input Mode 5: Stop signal and Insert Dead-Time
0110b
PSC Input Mode 6: Stop signal, Jump to Opposite Dead-Time and Wait.
0111b
PSC Input Mode 7: Halt PSC and Wait for Software Action
1000b
Содержание 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...