2.22.9 TCC Outputs
The TCC0/TCC1 output is not working as expected with PPS; output signals are not visible on output pins via PPS even though the TCC is working correctly. TCC2 cannot be used to drive external pins.
Work Around:
Use the CCL module to output up to 2 TCCx_WO[n] signals on CCL0_OUT and CCL1_OUT using PPS to the desired pins.
The required
configuration in CCL1/2:
Then, configure PPS for CCL output to desired pin.- CCL.CTRL.ENABLE=
1– To enable CCL - CCL.LUTCTRLx.ENABLE=
1– To enable LUT in CCL - CCL.LUTCTRLx.INSELx=
8– To select TCC as input source - CCL.LUTCTRLx.TRUTH – To match
the toggle of TCC
- CCL.LUTCTRLx.TRUTH=
0xAA– To match toggle on WO[0] - CCL.LUTCTRLx.TRUTH=
0xCC– To match toggle on WO[1] - CCL.LUTCTRLx.TRUTH=
0xF0– To match toggle on WO[2]
- CCL.LUTCTRLx.TRUTH=
- CFGCON1.CCL_OE=
1– To enable CCL output onto PADs
Note:
CCL0_OUT allows one instance of TCC0_WO[n], and CCL1_OUT allows one instance of TCC1_WO[n].
The work around is working in A2 and newer version.Affected Silicon Revisions
PIC32CX1012BZ25048/WBZ451
| A0 | A2 | |||||
|---|---|---|---|---|---|---|
| X |
| A2 | |||||
|---|---|---|---|---|---|
