26.4.3 Control Register Access

When the PTG module is enabled (ON = 1), writes are inhibited to the PTGDIV[4:0] bits in PTGCON. Other bits and control registers may be written to as long as PTGSTRT = 0. See PTGCON for more information. When the PTG module is actively executing code (ON = 1 and PTGSTART = 1), only the ON, PTGSWT, PTGSIDL, and PTGSTRT bits in PTGCON are writeable. All other bits in PTGCON and other control registers are read-only.

When the PTG module is enabled (ON = 1), reads can be performed from any control register at any time; however, the data read from certain control registers depends on the PTGSTRT and PTGIVIS bits.

When the PTG module is disabled (ON = 0), all control registers can be read and written to as normal. The PTGIVIS bit has no effect when ON = 0; all Timer/Counter registers will read as their Limit register values.