154
AT90PWM216/316 [DATASHEET]
7710H–AVR–07/2013
15.25.3
PSC 2 Synchro and Output Configuration – PSOC2
Bit 7 – POS23 : PSCOUT23 Selection (PSC2 only)
When this bit is clear, PSCOUT23 outputs the waveform generated by Waveform Generator B.
When this bit is set, PSCOUT23 outputs the waveform generated by Waveform Generator A.
Bit 6 – POS22: PSCOUT22 Selection (PSC2 only)
When this bit is clear, PSCOUT22 outputs the waveform generated by Waveform Generator A.
When this bit is set, PSCOUT22 outputs the waveform generated by Waveform Generator B.
Bit 5:4 – PSYNCn1:0: Synchronization Out for ADC Selection
Select the polarity and signal source for generating a signal which will be sent to the ADC for synchronization.
Bit 3 – POEN2D : PSCOUT23 Output Enable (PSC2 only)
When this bit is clear, second I/O pin affected to PSCOUT23 acts as a standard port.
When this bit is set, I/O pin related to PSCOUT23 is connected to PSC2 waveform generator A or B output
(according to POS23 setting) and is set and clear according to PSC2 operation.
Bit 2 – POENnB: PSC n OUT Part B Output Enable
When this bit is clear, I/O pin affected to PSCOUTn1 acts as a standard port.
When this bit is set, I/O pin affected to PSCOUTn1 is connected to the PSC waveform generator B output and is
set and clear according to the PSC operation.
Bit 1 – POEN2C : PSCOUT22 Output Enable (PSC2 only)
When this bit is clear, second I/O pin affected to PSCOUT22 acts as a standard port.
Bit
7
654
3
2
1
0
POS23
POS22
PSYNC21
PSYNC20
POEN2D
POEN2B
POEN2C
POEN2A
PSOC2
Read/Write
R/W
Initial Value
0
Table 15-11. Synchronization Source Description in One/Two/Four Ramp Modes
PSYNCn1
PSYNCn0
Description
0
Send signal on leading edge of PSCOUTn0 (match with OCRnSA)
01
Send signal on trailing edge of PSCOUTn0 (match with OCRnRA or
fault/retrigger on part A)
1
0
Send signal on leading edge of PSCOUTn1 (match with OCRnSB)
11
Send signal on trailing edge of PSCOUTn1 (match with OCRnRB or
fault/retrigger on part B)
Table 15-12. Synchronization Source Description in Centered Mode
PSYNCn1
PSYNCn0
Description
00
Send signal on match with OCRnRA (during counting down of PSC). The
min value of OCRnRA must be 1.
01
Send signal on match with OCRnRA (during counting up of PSC). The
min value of OCRnRA must be 1.
1
0
no synchronization signal
1
no synchronization signal