26.2.7 Output Scan Mode
The Output Scan mode is selected when CCPxCON3.OUTM[2:0] = 110.
The Output Scan mode is similar to the Single Output Steerable mode, except that the Output Compare signal can be automatically sequenced among the available output pins. The MCCP output pins to be used during output scan are selected by setting the appropriate OCxEN Control bit in the CCPxCON2 register. If the OCAEN, OCBEN and OCEEN bits are set, for example, the MCCP module will automatically steer the Output Compare signal between the OCxA, OCxB and OCxE output pins.
If CCPxCON1.ON is set to ‘0’, the sequence logic is reset and the scan sequence will begin on the first enabled output pin after ON = 1. WhenCCPxCON1.ON = 1 and the time base is triggered or reset (sync_trig_in = 1), the Output Compare signal is moved to the next enabled output in the sequence.
Basic operation of the Output Scan mode is shown in Figure 26-7 and Figure 26-8 for the case of three enabled outputs. The operation is the same in each case, except for the state of each pin during an inactive time-base period. Note that the actual state of the output pin before the module is enabled will depend on the PORT control logic settings or an enabled peripheral of lower priority.