
155
4378C–AVR–09/08
AT90PWM1
16.25.1
PSC 0 Synchro and Output Configuration – PSOC0
16.25.2
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, second I/O pin affected to PSCOUT23 is connected to the PSC waveform
generator B output and is set and clear according to the PSC operation.
Bit
7
6543
2
1
0
-
PSYNC01
PSYNC00
-
POEN0B
-
POEN0A
PSOC0
Read/Write
R/W
Initial Value
0
0000
0
Bit
7
6543
2
1
0
POS23
POS22
PSYNC21
PSYNC20
POEN2D
POEN2B
POEN2C
POEN2A
PSOC2
Read/Write
R/W
Initial Value
0
0000
0
Table 44. 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 45. 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